diff options
| author | Tim Shen <timshen91@gmail.com> | 2016-06-21 20:29:17 +0000 |
|---|---|---|
| committer | Tim Shen <timshen91@gmail.com> | 2016-06-21 20:29:17 +0000 |
| commit | 4a05bb8d8db64eedca81dea4493cae59d9c78d75 (patch) | |
| tree | 7ba2166506bd4aa950e5d0a82d17f791ca843ba6 /clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp | |
| parent | a4d156980e69fd3787a8a3948d4f1da16b1abf32 (diff) | |
| download | llvm-4a05bb8d8db64eedca81dea4493cae59d9c78d75.zip llvm-4a05bb8d8db64eedca81dea4493cae59d9c78d75.tar.gz llvm-4a05bb8d8db64eedca81dea4493cae59d9c78d75.tar.bz2 | |
Re-commit "[Temporary] Add an ExprWithCleanups for each C++ MaterializeTemporaryExpr."
Since D21243 fixes relative clang-tidy tests.
This reverts commit a71d9fbd41e99def9159af2b01ef6509394eaeed.
llvm-svn: 273312
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp')
| -rw-r--r-- | clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp index 4bbc0a4..c659c6a 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 { };" - "const Foo f = Foo();", + EXPECT_FALSE(matches("struct Foo { }; Foo a;" + "const Foo f = a;", varDecl(hasInitializer(exprWithCleanups())))); } |
