curdeius added inline comments.

================
Comment at: clang/lib/Format/TokenAnnotator.cpp:3054
+      return true;
+    // & // comment
+    if (Right.is(TT_BlockComment))
----------------
Block, not line, comment


================
Comment at: clang/unittests/Format/FormatTest.cpp:1947
   verifyFormat("int&& c = f3();", Style);
+  verifyFormat("for (auto a = 0, b = 0; const auto& c : {1, 2, 3})", Style);
 
----------------
How about pointers/references in the init? Also, please test sth else than 
auto, both in init and as the loop variable.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115050

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

Reply via email to