[PATCH] D20734: [clang-format] insert new #includes into correct blocks when cleaning up Replacement with cleanupAroundReplacements().

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Mon May 30 09:54:07 PDT 2016


bkramer added inline comments.

================
Comment at: lib/Format/Format.cpp:1283
@@ +1282,3 @@
+  // Returns the priority of the category which \p IncludeName belongs to, and
+  // if \p CheckMainHeader is true and \p IncldueName is a
+  // main header, returns 0. Otherwise, returns INT_MAX if \p IncludeName does
----------------
Typo: IncldueName

================
Comment at: lib/Format/Format.cpp:1503
@@ +1502,3 @@
+  // we set its EndOffset to be AfterHeaderGuard. With this setup, the category
+  // with the highest priority has been intialized so that all other categories
+  // can find a category with higher priority and initialized EndOffset.
----------------
Typo: intialized


http://reviews.llvm.org/D20734





More information about the cfe-commits mailing list