forked from OSchip/llvm-project
[clangd] Fix a "-Wdangling-else" compiler warning in the test.
llvm-svn: 339416
This commit is contained in:
parent
25efa0fad3
commit
1793bc9f78
|
@ -1393,8 +1393,9 @@ TEST(CompletionTest, FixItForArrowToDot) {
|
|||
ReplacementEdit.newText = ".";
|
||||
for (const auto &C : Results.Completions) {
|
||||
EXPECT_TRUE(C.FixIts.size() == 1u || C.Name == "AuxFunction");
|
||||
if (!C.FixIts.empty())
|
||||
if (!C.FixIts.empty()) {
|
||||
EXPECT_THAT(C.FixIts, ElementsAre(ReplacementEdit));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue