Skip to content

Commit 0f29348

Browse files
committed
[FOLD] fix clangd tests
1 parent 7b69084 commit 0f29348

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -642,10 +642,7 @@ TEST_F(TargetDeclTest, RewrittenBinaryOperator) {
642642
bool x = (Foo(1) [[!=]] Foo(2));
643643
)cpp";
644644
EXPECT_DECLS("CXXRewrittenBinaryOperator",
645-
{"std::strong_ordering operator<=>(const Foo &) const = default",
646-
Rel::TemplatePattern},
647-
{"bool operator==(const Foo &) const noexcept = default",
648-
Rel::TemplateInstantiation});
645+
{"bool operator==(const Foo &) const noexcept = default"});
649646
}
650647

651648
TEST_F(TargetDeclTest, FunctionTemplate) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3091,7 +3091,7 @@ TEST(Hover, All) {
30913091
HI.NamespaceScope = "";
30923092
HI.Definition =
30933093
"bool operator==(const Foo &) const noexcept = default";
3094-
HI.Documentation = "Foo spaceship";
3094+
HI.Documentation = "";
30953095
}},
30963096
};
30973097

@@ -3894,7 +3894,7 @@ TEST(Hover, SpaceshipTemplateNoCrash) {
38943894
TU.ExtraArgs.push_back("-std=c++20");
38953895
auto AST = TU.build();
38963896
auto HI = getHover(AST, T.point(), format::getLLVMStyle(), nullptr);
3897-
EXPECT_EQ(HI->Documentation, "Foo bar baz");
3897+
EXPECT_EQ(HI->Documentation, "");
38983898
}
38993899

39003900
TEST(Hover, ForwardStructNoCrash) {

0 commit comments

Comments
 (0)