================
Comment at: lib/Format/UnwrappedLineFormatter.cpp:479
@@ -478,1 +478,3 @@
     }
+    if (TheLine.Type == LT_Invalid && ShouldFormat && IncompleteFormat) {
+      *IncompleteFormat = true;
----------------
djasper wrote:
> No braces.
Done.

================
Comment at: unittests/Format/FormatTest.cpp:25-27
@@ +24,5 @@
+  enum IncompleteCheck {
+    IFA_ExpectComplete,
+    IFA_ExpectIncomplete,
+    IFA_DoNotCheck
+  };
----------------
djasper wrote:
> IFA?
Done.

================
Comment at: unittests/Format/FormatTest.cpp:40
@@ +39,3 @@
+    if (CheckIncomplete != IFA_DoNotCheck)
+      EXPECT_EQ(CheckIncomplete == IFA_ExpectIncomplete, IncompleteFormat)
+          << Code << "\n\n";
----------------
djasper wrote:
> I suspect that this looks a bit complicated in the test output when it 
> actually triggers. Might be better to pull out the comparison into a local 
> variable.
Done.

http://reviews.llvm.org/D9532

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to