[PATCH] D137762: [clang-format] avoid breaking )( with BlockIndent
Gedare Bloom via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 9 21:09:58 PST 2022
gedare added a comment.
Something about this is still a bit off though. This change seems to prevent any more breaking on the line. For example, the test example given in GitHub Issue https://github.com/llvm/llvm-project/issues/57250 when formatted with this change becomes:
`clang-format -style="{BasedOnStyle: LLVM, AlignAfterOpenBracket: BlockIndent}" test.c
int foo(void) {
int x =
(int)(100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000);
int y = 100000 + 200000 + 100000 + 200000 + 100000 + 200000 + 100000 +
200000 + 100000 + 200000 + 100000 + 200000 + 100000 + 200000 +
100000 + 200000 + 100000 + 200000;
}
`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137762/new/
https://reviews.llvm.org/D137762
More information about the cfe-commits
mailing list