krasimir added a comment.

Looks good! Just a few nits:



================
Comment at: lib/Format/Format.cpp:1570
         IncludesInBlock.push_back({IncludeName, Line, Prev, Category});
+      } else if (Style.IncludeBlocks > FormatStyle::IBS_Preserve &&
+                 Trimmed.empty()) {
----------------
Please replace this with two explicit checks for the expected styles. Plus, an 
`else if` with an empty body is super awkward.


================
Comment at: unittests/Format/SortIncludesTest.cpp:357
+                 "#include \"c.h\"\n",
+                 "a.cc"));
+}
----------------
What is this testing?


Repository:
  rL LLVM

https://reviews.llvm.org/D40288



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

Reply via email to