]> granicus.if.org Git - clang/commitdiff
[SortIncludesTest] Add SortPriority fields to fix -Wmissing-field-initializers after...
authorMikael Holmen <mikael.holmen@ericsson.com>
Thu, 26 Sep 2019 06:49:37 +0000 (06:49 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Thu, 26 Sep 2019 06:49:37 +0000 (06:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372944 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Format/SortIncludesTest.cpp

index ef67586f1f0a7a8fdd2090409f9f6e83d6997dc3..a33e440abfba7e0980b24aac3c216c1543ea75f2 100644 (file)
@@ -519,7 +519,7 @@ TEST_F(SortIncludesTest, SupportCaseInsensitiveMatching) {
 }
 
 TEST_F(SortIncludesTest, NegativePriorities) {
-  Style.IncludeCategories = {{".*important_os_header.*", -1}, {".*", 1}};
+  Style.IncludeCategories = {{".*important_os_header.*", -1, 0}, {".*", 1, 0}};
   EXPECT_EQ("#include \"important_os_header.h\"\n"
             "#include \"c_main.h\"\n"
             "#include \"a_other.h\"\n",
@@ -539,7 +539,7 @@ TEST_F(SortIncludesTest, NegativePriorities) {
 }
 
 TEST_F(SortIncludesTest, PriorityGroupsAreSeparatedWhenRegroupping) {
-  Style.IncludeCategories = {{".*important_os_header.*", -1}, {".*", 1}};
+  Style.IncludeCategories = {{".*important_os_header.*", -1, 0}, {".*", 1, 0}};
   Style.IncludeBlocks = tooling::IncludeStyle::IBS_Regroup;
 
   EXPECT_EQ("#include \"important_os_header.h\"\n"