[PATCH] D13228: clang-format: Extend #include sorting functionality

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 29 00:48:55 PDT 2015


djasper marked an inline comment as done.

================
Comment at: lib/Format/Format.cpp:1677
@@ +1676,3 @@
+        unsigned Category;
+        if (LookForMainHeader &&! Matches[1].startswith("<")) {
+          Category = 0;
----------------
klimek wrote:
> Run clang-format.
> 
> Also, shouldn't we try to figure out whether the name matches, instead of simply assuming the first one is the main header?
Ran clang-format and added a comment.


http://reviews.llvm.org/D13228





More information about the cfe-commits mailing list