summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-12-22 22:42:56 +0000
committerNico Weber <nicolasweber@gmx.de>2015-12-22 22:42:56 +0000
commitb10423ad495b011d6f2a039cc5f75c6b113e3a9b (patch)
treec8dce75e04ae83219570af14bc4c57796ef93924 /clang/lib/Format/Format.cpp
parenta7f56ab893f36065c83d8af87fb51bc6a554980e (diff)
downloadbcm5719-llvm-b10423ad495b011d6f2a039cc5f75c6b113e3a9b.tar.gz
bcm5719-llvm-b10423ad495b011d6f2a039cc5f75c6b113e3a9b.zip
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...) llvm-svn: 256288
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index c7d1abd2b24..364f4983a2c 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -607,6 +607,7 @@ FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language) {
ChromiumStyle.BinPackParameters = false;
ChromiumStyle.DerivePointerAlignment = false;
}
+ ChromiumStyle.SortIncludes = false;
return ChromiumStyle;
}
OpenPOWER on IntegriCloud