-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
clang-formatinvalid-code-generationTool (e.g. clang-format) produced invalid code that no longer compilesTool (e.g. clang-format) produced invalid code that no longer compiles
Description
Expected formatting:
#define ASSEMBLER_INSTRUCTION_LIST(V) \
V(and) \
V(not) \
V(other)
Actual formatting:
#define ASSEMBLER_INSTRUCTION_LIST(V) \
V(and) \
V(not ) \
V(other)
This can even change the meaning of some code in rare circumstances:
#define ASSEMBLER_INSTRUCTION_LIST(V) \
V(and) \
V(not !) /* was not! before formatting*/ \
V(other)
#define STRINGIFY(X) #X
const char* foo = ASSEMBLER_INSTRUCTION_LIST(STRINGIFY);
/* foo was "andnot!other" before formatting
and is "andnot !other" after formatting */
Metadata
Metadata
Assignees
Labels
clang-formatinvalid-code-generationTool (e.g. clang-format) produced invalid code that no longer compilesTool (e.g. clang-format) produced invalid code that no longer compiles