Skip to content

Formatting duplicates comments #57

@akberg

Description

@akberg

When formatting with glsl_analyzer, multiline block comments seem to duplicate.

/** Some 
 * long 
 * multiline comment
 */


/** Remapping from input array to output array.
 * m_primitive_list[primitive_remap_index[i]] = m_primitive_list_in[i] */
layout(binding = 4, std430) buffer primitivesRemapSSBOOut {
	uint primitive_remap_index[];
};

becomes

/** Some
 * long
 * multiline comment
/** Some 
 * long 
 * multiline comment
 */

/** Remapping from input array to output array.
/** Remapping from input array to output array.
 * m_primitive_list[primitive_remap_index[i]] = m_primitive_list_in[i] */
layout(binding = 4, std430) buffer primitivesRemapSSBOOut {
    uint primitive_remap_index[];
};

This is not an issue with multiple lines of C++ style line comments.

Same goes for multiline defines:

#define SNIPPET(x) \
do { \
x ++; \
} while (0)

becomes

#define SNIPPET(x) \
do { \
x ++; \
#define SNIPPET(x) \
do { \
x ++; \
} while (0)

This might be connected to line endings, as these two cases are syntax which ignore line endings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions