r372944 - [SortIncludesTest] Add SortPriority fields to fix -Wmissing-field-initializers after D64695/r372919

Mikael Holmen via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 25 23:49:37 PDT 2019


Author: uabelho
Date: Wed Sep 25 23:49:37 2019
New Revision: 372944

URL: http://llvm.org/viewvc/llvm-project?rev=372944&view=rev
Log:
[SortIncludesTest] Add SortPriority fields to fix -Wmissing-field-initializers after D64695/r372919

Modified:
    cfe/trunk/unittests/Format/SortIncludesTest.cpp

Modified: cfe/trunk/unittests/Format/SortIncludesTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/SortIncludesTest.cpp?rev=372944&r1=372943&r2=372944&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/SortIncludesTest.cpp (original)
+++ cfe/trunk/unittests/Format/SortIncludesTest.cpp Wed Sep 25 23:49:37 2019
@@ -519,7 +519,7 @@ TEST_F(SortIncludesTest, SupportCaseInse
 }
 
 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, NegativePriorit
 }
 
 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"




More information about the cfe-commits mailing list