HazardyKnusperkeks added a comment.

Please mark comments as done.



================
Comment at: clang/lib/Format/Format.cpp:1270
   LLVMStyle.AllowShortLoopsOnASingleLine = false;
+  LLVMStyle.AllowShortRequiresExpressionOnASingleLine = true;
   LLVMStyle.AlwaysBreakAfterReturnType = FormatStyle::RTBS_None;
----------------
Please initialize to false, because that is what we are doing right now.


================
Comment at: clang/unittests/Format/FormatTest.cpp:2904
+  FormatStyle Style = getLLVMStyle();
+  EXPECT_TRUE(Style.AllowShortRequiresExpressionOnASingleLine);
+  verifyFormat("template <typename T>\n"
----------------
Please add a test where the clause is too long and will still be wrapped. 
Reduce the column limit and use some longer identifiers.


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

https://reviews.llvm.org/D139786

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

Reply via email to