|
@@ -734,9 +734,9 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) {
|
|
|
LLVMStyle.ForEachMacros.push_back("Q_FOREACH");
|
|
|
LLVMStyle.ForEachMacros.push_back("BOOST_FOREACH");
|
|
|
LLVMStyle.IncludeStyle.IncludeCategories = {
|
|
|
- {"^\"(llvm|llvm-c|clang|clang-c)/", 2},
|
|
|
- {"^(<|\"(gtest|gmock|isl|json)/)", 3},
|
|
|
- {".*", 1}};
|
|
|
+ {"^\"(llvm|llvm-c|clang|clang-c)/", 2, 0},
|
|
|
+ {"^(<|\"(gtest|gmock|isl|json)/)", 3, 0},
|
|
|
+ {".*", 1, 0}};
|
|
|
LLVMStyle.IncludeStyle.IncludeIsMainRegex = "(Test)?$";
|
|
|
LLVMStyle.IncludeStyle.IncludeBlocks = tooling::IncludeStyle::IBS_Preserve;
|
|
|
LLVMStyle.IndentCaseLabels = false;
|
|
@@ -818,8 +818,10 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
|
|
|
GoogleStyle.AlwaysBreakTemplateDeclarations = FormatStyle::BTDS_Yes;
|
|
|
GoogleStyle.ConstructorInitializerAllOnOneLineOrOnePerLine = true;
|
|
|
GoogleStyle.DerivePointerAlignment = true;
|
|
|
- GoogleStyle.IncludeStyle.IncludeCategories = {
|
|
|
- {"^<ext/.*\\.h>", 2}, {"^<.*\\.h>", 1}, {"^<.*", 2}, {".*", 3}};
|
|
|
+ GoogleStyle.IncludeStyle.IncludeCategories = {{"^<ext/.*\\.h>", 2, 0},
|
|
|
+ {"^<.*\\.h>", 1, 0},
|
|
|
+ {"^<.*", 2, 0},
|
|
|
+ {".*", 3, 0}};
|
|
|
GoogleStyle.IncludeStyle.IncludeIsMainRegex = "([-_](test|unittest))?$";
|
|
|
GoogleStyle.IncludeStyle.IncludeBlocks = tooling::IncludeStyle::IBS_Regroup;
|
|
|
GoogleStyle.IndentCaseLabels = true;
|