[PATCH] D145262: [clang-format] Treat AttributeMacros more like attribute macros
Jared Grubb via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 3 12:38:40 PST 2023
jaredgrubb added a comment.
For background, the current clang-format results in the following (`-style="{BasedOnStyle: LLVM, ColumnLimit: 0, AttributeMacros: [MACRO]}`):
MACRO MACRO(A)
@interface Foo
@end
MACRO(A)
MACRO
@interface Foo
@end
This patch improves it (removes the indention and makes both cases have same wrapping):
MACRO MACRO(A)
@interface Foo
@end
MACRO(A) MACRO
@interface Foo
@end
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145262/new/
https://reviews.llvm.org/D145262
More information about the cfe-commits
mailing list