diff options
author | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-09-26 06:49:37 +0000 |
---|---|---|
committer | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-09-26 06:49:37 +0000 |
commit | 43fd14caa060d7467ccb186ef8dd485665c737bf (patch) | |
tree | e1e26163f85331cff86d9c421b23f209bbb57845 /clang/unittests/Format/SortIncludesTest.cpp | |
parent | 957e090ac958d55092b9bcebc4abf896fc01b712 (diff) | |
download | bcm5719-llvm-43fd14caa060d7467ccb186ef8dd485665c737bf.tar.gz bcm5719-llvm-43fd14caa060d7467ccb186ef8dd485665c737bf.zip |
[SortIncludesTest] Add SortPriority fields to fix -Wmissing-field-initializers after D64695/r372919
llvm-svn: 372944
Diffstat (limited to 'clang/unittests/Format/SortIncludesTest.cpp')
-rw-r--r-- | clang/unittests/Format/SortIncludesTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Format/SortIncludesTest.cpp b/clang/unittests/Format/SortIncludesTest.cpp index ef67586f1f0..a33e440abfb 100644 --- a/clang/unittests/Format/SortIncludesTest.cpp +++ b/clang/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" |