[all-commits] [llvm/llvm-project] 529aa4: [clang-format] Avoid adding space after the name o...
Marek Kurdej via All-commits
all-commits at lists.llvm.org
Thu Feb 3 09:46:05 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 529aa4b011c4ae808d658022ef643c44dd9b2c9c
https://github.com/llvm/llvm-project/commit/529aa4b011c4ae808d658022ef643c44dd9b2c9c
Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
Date: 2022-02-03 (Thu, 03 Feb 2022)
Changed paths:
M clang/lib/Format/UnwrappedLineParser.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Avoid adding space after the name of a function-like macro when the name is a keyword.
Fixes https://github.com/llvm/llvm-project/issues/31086.
Before the code:
```
#define if(x)
```
was erroneously formatted to:
```
#define if (x)
```
Reviewed By: HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D118844
More information about the All-commits
mailing list