[clang] [clang-format] Fix mismatched break in BlockIndent (PR #124998)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 30 18:34:04 PST 2025
================
@@ -9608,6 +9608,10 @@ TEST_F(FormatTest, AlignsAfterOpenBracket) {
" \"a aaaaaaa aaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaa aaaaaaaaaaaaa\"\n"
");",
Style);
+ verifyFormat("aaaaaaaaaaaaaaaaaaaaaaa(\n"
+ " &bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\n"
----------------
owenca wrote:
```suggestion
" &bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\n"
```
Better still, trim another 20 `b`s and move the test case to the end of the unit test.
https://github.com/llvm/llvm-project/pull/124998
More information about the cfe-commits
mailing list