[PATCH] D137181: [clang-format] Don't use 'PPIndentWidth' inside multi-line macros
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 2 22:27:59 PDT 2022
owenpan added a comment.
With `ColumnLimit: 16` and `IndentPPDirectives: BeforeHash`, the format should be:
#ifdef foo
#define bar() \
if (A) { \
B(); \
} \
C();
#endif
With `IndentPPDirectives: AfterHash`, it should look like:
#ifdef foo
# define bar() \
if (A) { \
B(); \
} \
C();
#endif
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137181/new/
https://reviews.llvm.org/D137181
More information about the cfe-commits
mailing list