diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2016-01-18 20:47:02 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2016-01-18 20:47:02 +0000 |
commit | 8359e5d527bb0dec97c54079200c4788331ffeee (patch) | |
tree | 06512ad6080217d0511afbf990598028087cfbfe /unittests | |
parent | 0003ec16f30751e7c01f68efc41134f65ba04498 (diff) | |
download | clang-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.cpp | 6 |
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) { |