]> granicus.if.org Git - clang/commitdiff
[clang-format] Add ext/ to google include categories
authorKrasimir Georgiev <krasimir@google.com>
Tue, 26 Sep 2017 14:58:29 +0000 (14:58 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Tue, 26 Sep 2017 14:58:29 +0000 (14:58 +0000)
Summary: This adds an ext/ header include category for google style.

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits, klimek

Differential Revision: https://reviews.llvm.org/D38243

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

lib/Format/Format.cpp

index 0b70ce2e671aa9fcf5c0cbbb9a04ad73c05fb06b..cb0a0105127824db4cf99a432563b38c414cd212 100644 (file)
@@ -665,7 +665,8 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
   GoogleStyle.AlwaysBreakTemplateDeclarations = true;
   GoogleStyle.ConstructorInitializerAllOnOneLineOrOnePerLine = true;
   GoogleStyle.DerivePointerAlignment = true;
-  GoogleStyle.IncludeCategories = {{"^<.*\\.h>", 1}, {"^<.*", 2}, {".*", 3}};
+  GoogleStyle.IncludeCategories = {
+      {"^<ext/.*\\.h>", 2}, {"^<.*\\.h>", 1}, {"^<.*", 2}, {".*", 3}};
   GoogleStyle.IncludeIsMainRegex = "([-_](test|unittest))?$";
   GoogleStyle.IndentCaseLabels = true;
   GoogleStyle.KeepEmptyLinesAtTheStartOfBlocks = false;