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 | 9e373df2f7e48f9861569ab827739becf7519986 (patch) | |
tree | b883f0789b56218cb81005c20d8d7653df0b53ea /clang/unittests/ASTMatchers/ASTMatchersTest.cpp | |
parent | 7aae9b37826b52d0cbf1aeae689e85b4b4b4755b (diff) | |
download | bcm5719-llvm-9e373df2f7e48f9861569ab827739becf7519986.tar.gz bcm5719-llvm-9e373df2f7e48f9861569ab827739becf7519986.zip |
The destructor name should be matched to ~Foo instead of Foo.
llvm-svn: 258077
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersTest.cpp')
-rw-r--r-- | clang/unittests/ASTMatchers/ASTMatchersTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp index 5fde0ff504f..1e5401d9bf3 100644 --- a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp +++ b/clang/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) { |