r258077 - The destructor name should be matched to ~Foo instead of Foo.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 18 12:47:03 PST 2016
Author: aaronballman
Date: Mon Jan 18 14:47:02 2016
New Revision: 258077
URL: http://llvm.org/viewvc/llvm-project?rev=258077&view=rev
Log:
The destructor name should be matched to ~Foo instead of Foo.
Modified:
cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp
Modified: cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp?rev=258077&r1=258076&r2=258077&view=diff
==============================================================================
--- cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp (original)
+++ cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp Mon Jan 18 14:47:02 2016
@@ -1815,10 +1815,10 @@ TEST(IsExternC, MatchesExternCFunctionDe
}
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) {
More information about the cfe-commits
mailing list