[clang] [clang-format] Disable short blocks if brace is on the new line (PR #196021)
Gedare Bloom via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 13 12:24:36 PDT 2026
================
@@ -2297,7 +2284,7 @@ TEST_F(FormatTestJS, WrapAfterParen) {
" });",
getGoogleJSStyleWithColumns(40));
verifyFormat("while (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa &&\n"
- " bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) {\n}");
+ " bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) {}");
----------------
gedare wrote:
That is a separate issue. The problem here is that the change compacts the empty block, but the loop is not on a single line.
https://github.com/llvm/llvm-project/pull/196021
More information about the cfe-commits
mailing list