Open isolansky opened 2 years ago
@llvm/issue-subscribers-clang-format
Smaller repro with LLVM style:
#if SOMETHING
if (var == 1) {
} else
#endif //
if (var == 2) {
} else if (var == 3) {
}
or
#if SOMETHING
if (var == 1) {
} else
#endif /**/
if (var == 2) {
} else if (var == 3) {
}
But without comment on #endif
, it's ok:
#if SOMETHING
if (var == 1) {
} else
#endif
if (var == 2) {
} else if (var == 3) {
}
@llvm/issue-subscribers-bug
Any update? I see no milestone has been assigned yet
code:
clang-format 12.0.0
clang-format 13.0.0, 14RC4
.clang-config:
Issue is obvious, it formats following code differently