From: Nico Weber Date: Tue, 22 Dec 2015 22:42:56 +0000 (+0000) Subject: Disable include sorting by default for Chromium style. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4be5ac759f747946853fecfe12a82704dccb17f4;p=clang Disable include sorting by default for Chromium style. 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 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index c7d1abd2b2..364f4983a2 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -607,6 +607,7 @@ FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language) { ChromiumStyle.BinPackParameters = false; ChromiumStyle.DerivePointerAlignment = false; } + ChromiumStyle.SortIncludes = false; return ChromiumStyle; }