Skip to content

Commit c4df893

Browse files
authored
Merge pull request #4754 from apple/eng/5.7-fix-clangd-tests
Fix the clangd test build
2 parents d336db2 + 9714d10 commit c4df893

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3328,14 +3328,14 @@ TEST(CompletionTest, Concepts) {
33283328
std::vector<Symbol> Syms = {conceptSym("same_as")};
33293329
for (auto P : Code.points("tparam")) {
33303330
ASSERT_THAT(completions(TU, P, Syms).Completions,
3331-
AllOf(Contains(named("A")), Contains(named("same_as")),
3332-
Contains(named("class")), Contains(named("typename"))))
3331+
AllOf(Contains(Named("A")), Contains(Named("same_as")),
3332+
Contains(Named("class")), Contains(Named("typename"))))
33333333
<< "Completing template parameter at position " << P;
33343334
}
33353335

33363336
for (auto P : Code.points("other")) {
33373337
EXPECT_THAT(completions(TU, P, Syms).Completions,
3338-
AllOf(Contains(named("A")), Contains(named("same_as"))))
3338+
AllOf(Contains(Named("A")), Contains(Named("same_as"))))
33393339
<< "Completing 'requires' expression at position " << P;
33403340
}
33413341
}

clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,7 @@ TEST_F(SymbolCollectorTest, Concepts) {
18581858
runSymbolCollector("", Header, {"-std=c++20"});
18591859
EXPECT_THAT(Symbols,
18601860
UnorderedElementsAre(AllOf(
1861-
qName("A"), hasKind(clang::index::SymbolKind::Concept))));
1861+
QName("A"), hasKind(clang::index::SymbolKind::Concept))));
18621862
}
18631863

18641864
} // namespace

0 commit comments

Comments
 (0)