================
@@ -2297,7 +2284,7 @@ TEST_F(FormatTestJS, WrapAfterParen) {
                "    });",
                getGoogleJSStyleWithColumns(40));
   verifyFormat("while (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa &&\n"
-               "       bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) {\n}");
+               "       bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) {}");
----------------
rudolflovrencic wrote:

I think Google style guide might need changing since it sets   
`AllowShortLoopsOnASingleLine: true`. Now, it should be set to `false` since 
[Google discourages single line 
loops](https://google.github.io/styleguide/cppguide.html#Formatting_Looping_Branching).
 Same for `if`s.


https://github.com/llvm/llvm-project/pull/196021
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to