From: Mikael Holmen Date: Thu, 26 Sep 2019 06:49:37 +0000 (+0000) Subject: [SortIncludesTest] Add SortPriority fields to fix -Wmissing-field-initializers after... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a35874f8780a9235e3e602ff31e63e519d44fe3;p=clang [SortIncludesTest] Add SortPriority fields to fix -Wmissing-field-initializers after D64695/r372919 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372944 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Format/SortIncludesTest.cpp b/unittests/Format/SortIncludesTest.cpp index ef67586f1f..a33e440abf 100644 --- a/unittests/Format/SortIncludesTest.cpp +++ b/unittests/Format/SortIncludesTest.cpp @@ -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"