aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unittests/ASTMatchers/ASTMatchersTraversalTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp b/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
index 52ab54467e..713fb5a592 100644
--- a/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
+++ b/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
@@ -1322,7 +1322,7 @@ TEST(IgnoringImplicit, MatchesImplicit) {
}
TEST(IgnoringImplicit, MatchesNestedImplicit) {
- EXPECT_TRUE(matches(R"(
+ StringRef Code = R"(
struct OtherType;
@@ -1348,8 +1348,8 @@ int main()
{
SomeType i = something();
}
-)"
- , varDecl(
+)";
+ EXPECT_TRUE(matches(Code, varDecl(
hasName("i"),
hasInitializer(exprWithCleanups(has(
cxxConstructExpr(has(expr(ignoringImplicit(cxxConstructExpr(