The l_brace token in a macro definition should not be set to TT_FunctionLBrace.
This patch could have fixed https://github.com/llvm/llvm-project/issues/42087.
Differential D118969
[clang-format][NFC] Fix a bug in setting type FunctionLBrace owenpan on Feb 3 2022, 9:49 PM. Authored by
Details The l_brace token in a macro definition should not be set to TT_FunctionLBrace. This patch could have fixed https://github.com/llvm/llvm-project/issues/42087.
Diff Detail
Event TimelineComment Actions Well, I thought about this approach but actually a macro line should never be merged together with a preceding line, so I went for a generic approach. Comment Actions That's why I didn't say yours would be obsolete. :)
This is exactly why we should not set the type to FunctionLBrace.
Done. |