[clang] 170de3d - [ParserTest] Move raw string literal out of macro
David Green via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 5 03:27:46 PST 2020
Author: David Green
Date: 2020-01-05T11:24:04Z
New Revision: 170de3de2eea8eb7f514dfa64d3f845ef10d8425
URL: https://github.com/llvm/llvm-project/commit/170de3de2eea8eb7f514dfa64d3f845ef10d8425
DIFF: https://github.com/llvm/llvm-project/commit/170de3de2eea8eb7f514dfa64d3f845ef10d8425.diff
LOG: [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.
Added:
Modified:
clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp b/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp
index 67fc70790296..6c07c8390256 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());
}
}
More information about the cfe-commits
mailing list