aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2016-06-09 21:13:39 +0000
committerTim Shen <timshen91@gmail.com>2016-06-09 21:13:39 +0000
commit17b3deeff3f0b246789c37911a445dbd4ad3456f (patch)
treee03729ec0980541f07ba560ef329fb47b3443254 /clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
parentee2ce4a50e16548cd4274e8532491cc8b06d7a8d (diff)
downloadllvm-17b3deeff3f0b246789c37911a445dbd4ad3456f.zip
llvm-17b3deeff3f0b246789c37911a445dbd4ad3456f.tar.gz
llvm-17b3deeff3f0b246789c37911a445dbd4ad3456f.tar.bz2
Revert "[Temporary] Add an ExprWithCleanups for each C++ MaterializeTemporaryExpr."
This reverts r272296, since there are clang-tidy failures that appear to be caused by this change. llvm-svn: 272310
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp')
-rw-r--r--clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
index c659c6a..4bbc0a4 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
+++ b/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
@@ -999,8 +999,8 @@ TEST(ExprWithCleanups, MatchesExprWithCleanups) {
EXPECT_TRUE(matches("struct Foo { ~Foo(); };"
"const Foo f = Foo();",
varDecl(hasInitializer(exprWithCleanups()))));
- EXPECT_FALSE(matches("struct Foo { }; Foo a;"
- "const Foo f = a;",
+ EXPECT_FALSE(matches("struct Foo { };"
+ "const Foo f = Foo();",
varDecl(hasInitializer(exprWithCleanups()))));
}