From: Aaron Ballman Date: Mon, 18 Jan 2016 20:47:02 +0000 (+0000) Subject: The destructor name should be matched to ~Foo instead of Foo. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8359e5d527bb0dec97c54079200c4788331ffeee;p=clang The destructor name should be matched to ~Foo instead of Foo. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258077 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ASTMatchers/ASTMatchersTest.cpp b/unittests/ASTMatchers/ASTMatchersTest.cpp index 5fde0ff504..1e5401d9bf 100644 --- a/unittests/ASTMatchers/ASTMatchersTest.cpp +++ b/unittests/ASTMatchers/ASTMatchersTest.cpp @@ -1815,10 +1815,10 @@ TEST(IsExternC, MatchesExternCFunctionDeclarations) { } TEST(IsDefaulted, MatchesDefaultedFunctionDeclarations) { - EXPECT_TRUE( - notMatches("class A { ~A(); };", functionDecl(hasName("A"), isDefaulted()))); + EXPECT_TRUE(notMatches("class A { ~A(); };", + functionDecl(hasName("~A"), isDefaulted()))); EXPECT_TRUE(matches("class B { ~B() = default; };", - functionDecl(hasName("B"), isDefaulted()))); + functionDecl(hasName("~B"), isDefaulted()))); } TEST(IsDeleted, MatchesDeletedFunctionDeclarations) {