From 170de3de2eea8eb7f514dfa64d3f845ef10d8425 Mon Sep 17 00:00:00 2001 From: David Green Date: Sun, 5 Jan 2020 11:23:35 +0000 Subject: [PATCH] [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. --- clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp b/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp index 67fc707..6c07c83 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()); } } -- 2.7.4