]> granicus.if.org Git - clang/commitdiff
Disable include sorting by default for Chromium style.
authorNico Weber <nicolasweber@gmx.de>
Tue, 22 Dec 2015 22:42:56 +0000 (22:42 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 22 Dec 2015 22:42:56 +0000 (22:42 +0000)
Include sorting generally can break .cc files, especially on Windows.  Make
this opt-in for Chromium style to give us some more time to roll this out.

(Given that the Google style guide is used by many companies, some of them
probably writing code on Windows, one could argue this should be opt-in in
general...)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256288 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index c7d1abd2b244cd98be5887daec7575880ea81067..364f4983a2ca2b0afcccdc1cf0edff64b8d0e724 100644 (file)
@@ -607,6 +607,7 @@ FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language) {
     ChromiumStyle.BinPackParameters = false;
     ChromiumStyle.DerivePointerAlignment = false;
   }
+  ChromiumStyle.SortIncludes = false;
   return ChromiumStyle;
 }