summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2019-02-16 11:19:04 +0000
committerDavid Green <david.green@arm.com>2019-02-16 11:19:04 +0000
commit87992de487362c64720710caaa14f404e06746c6 (patch)
tree5c596cbfe5a2ad1f7ff4fc954552e680884ff087
parent099cbc3e468d7ab583a0de85e06c14e5838f9414 (diff)
downloadbcm5719-llvm-87992de487362c64720710caaa14f404e06746c6.tar.gz
bcm5719-llvm-87992de487362c64720710caaa14f404e06746c6.zip
Move multiline raw string literal out of macro. NFC
Certain combinations of gcc and ccache fail when the raw string literal is preprocessed. This just moves the string out as is done elsewhere in the same file. llvm-svn: 354201
-rw-r--r--clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp34
1 files changed, 16 insertions, 18 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
index 7006361b4c5..bdd476091af 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
+++ b/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
@@ -491,16 +491,15 @@ TEST(MatcherCXXMemberCallExpr, On) {
EXPECT_TRUE(matches(Snippet2, MatchesX));
// Parens are ignored.
+ auto Snippet3 = R"cc(
+ struct Y {
+ void m();
+ };
+ Y g();
+ void z(Y y) { (g()).m(); }
+ )cc";
auto MatchesCall = cxxMemberCallExpr(on(callExpr()));
- EXPECT_TRUE(matches(
- R"cc(
- struct Y {
- void m();
- };
- Y g();
- void z(Y y) { (g()).m(); }
- )cc",
- MatchesCall));
+ EXPECT_TRUE(matches(Snippet3, MatchesCall));
}
TEST(MatcherCXXMemberCallExpr, OnImplicitObjectArgument) {
@@ -527,16 +526,15 @@ TEST(MatcherCXXMemberCallExpr, OnImplicitObjectArgument) {
EXPECT_TRUE(notMatches(Snippet2, MatchesX));
// Parens are not ignored.
+ auto Snippet3 = R"cc(
+ struct Y {
+ void m();
+ };
+ Y g();
+ void z(Y y) { (g()).m(); }
+ )cc";
auto MatchesCall = cxxMemberCallExpr(onImplicitObjectArgument(callExpr()));
- EXPECT_TRUE(notMatches(
- R"cc(
- struct Y {
- void m();
- };
- Y g();
- void z(Y y) { (g()).m(); }
- )cc",
- MatchesCall));
+ EXPECT_TRUE(notMatches(Snippet3, MatchesCall));
}
TEST(Matcher, HasObjectExpr) {
OpenPOWER on IntegriCloud