GoBigorGoHome added a comment.




================
Comment at: clang/unittests/Format/FormatTest.cpp:995
 TEST_F(FormatTest, ForEachLoops) {
   verifyFormat("void f() {\n"
+               "  foreach (Item *item, itemlist) {\n"
----------------
MyDeveloperDay wrote:
> I'd like you to assert that short loops are off
You mean make sure that `AllowShortLoopsOnASingleLine` is false?
The default style of `verifyFormat` is LLVM style where 
`AllowShortLoopsOnASingleLine` is already false.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94955/new/

https://reviews.llvm.org/D94955

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to