summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2016-01-18 20:47:02 +0000
committerAaron Ballman <aaron@aaronballman.com>2016-01-18 20:47:02 +0000
commit8359e5d527bb0dec97c54079200c4788331ffeee (patch)
tree06512ad6080217d0511afbf990598028087cfbfe /unittests
parent0003ec16f30751e7c01f68efc41134f65ba04498 (diff)
downloadclang-8359e5d527bb0dec97c54079200c4788331ffeee.tar.gz
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
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ASTMatchers/ASTMatchersTest.cpp6
1 files changed, 3 insertions, 3 deletions
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) {