You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With IndentPPDirectives: AfterHash, preprocessor directives are indented, but only relative to other preprocessor directives, not to the surrounding code. So code that is intended to look like:
voidfoo() {
if (bar) {
A;
# ifdef D
# defineE
B;
# endif
C;
}
}
is clang-formatted to:
voidfoo() {
if (bar) {
A;
#ifdef D
# defineE
B;
#endif
C;
}
}
This is a follow-up from bug #17736
Related feature: llvm/llvm-bugzilla-archive#36019