Fixes https://github.com/llvm/llvm-project/issues/31086.
Before the code:
#define if(x)
was erroneously formatted to:
#define if (x)
Paths
| Differential D118844
[clang-format] Avoid adding space after the name of a function-like macro when the name is a keyword. ClosedPublic Authored by curdeius on Feb 2 2022, 1:23 PM.
Details Summary Fixes https://github.com/llvm/llvm-project/issues/31086. Before the code: #define if(x) was erroneously formatted to: #define if (x)
Diff Detail
Event Timelinecurdeius added a child revision: D118879: [clang-format] Avoid merging macro definitions..Feb 3 2022, 12:00 AM This revision is now accepted and ready to land.Feb 3 2022, 12:14 AM This revision was landed with ongoing or failed builds.Feb 3 2022, 9:45 AM Closed by commit rG529aa4b011c4: [clang-format] Avoid adding space after the name of a function-like macro when… (authored by curdeius). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 405690 clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp
|