diff options
author | David Green <david.green@arm.com> | 2020-01-05 11:23:35 +0000 |
---|---|---|
committer | David Green <david.green@arm.com> | 2020-01-05 11:24:04 +0000 |
commit | 170de3de2eea8eb7f514dfa64d3f845ef10d8425 (patch) | |
tree | 57d77b613dce1d727c7fe1c3457083f8f58439fa /clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp | |
parent | 4e37d60f2a6b66ce95a039e6c929e7e38af30cd1 (diff) | |
download | bcm5719-llvm-170de3de2eea8eb7f514dfa64d3f845ef10d8425.tar.gz bcm5719-llvm-170de3de2eea8eb7f514dfa64d3f845ef10d8425.zip |
[ParserTest] Move raw string literal out of macro
Some combinations of gcc and ccache do not deal well with raw strings in
macros. Moving the string out to attempt to fix the bots.
Diffstat (limited to 'clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp')
-rw-r--r-- | clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp b/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp index 67fc7079029..6c07c839025 100644 --- a/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp +++ b/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp @@ -437,9 +437,9 @@ decl()))matcher"; )matcher"; M = Parser::parseMatcherExpression(Code, nullptr, nullptr, &Error); EXPECT_FALSE(M.hasValue()); - EXPECT_EQ(R"error(1:1: Error parsing argument 1 for matcher varDecl. -2:3: Matcher not found: doesNotExist)error", - Error.toStringFull()); + StringRef Expected = R"error(1:1: Error parsing argument 1 for matcher varDecl. +2:3: Matcher not found: doesNotExist)error"; + EXPECT_EQ(Expected, Error.toStringFull()); } } |