[all-commits] [llvm/llvm-project] 573a5b: Revert "[clang-format] Fix WhitespaceSensitiveMacr...
Marek Kurdej via All-commits
all-commits at lists.llvm.org
Tue May 17 22:28:02 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 573a5b58001d6dd86d404832b7b1c45a1b4f4c55
https://github.com/llvm/llvm-project/commit/573a5b58001d6dd86d404832b7b1c45a1b4f4c55
Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
Date: 2022-05-18 (Wed, 18 May 2022)
Changed paths:
M clang/lib/Format/FormatTokenLexer.cpp
M clang/lib/Format/UnwrappedLineParser.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
Revert "[clang-format] Fix WhitespaceSensitiveMacros not being honoured when macro closing parenthesis is followed by a newline."
This reverts commit 50cd52d9357224cce66a9e00c9a0417c658a5655.
It provoked regressions in C++ and ObjectiveC as described in https://reviews.llvm.org/D123676#3515949.
Reproducers:
```
MACRO_BEGIN
#if A
int f();
#else
int f();
#endif
```
```
NS_SWIFT_NAME(A)
@interface B : C
@property(readonly) D value;
@end
```
More information about the All-commits
mailing list