From: Nico Weber Date: Tue, 21 May 2019 00:27:26 +0000 (+0000) Subject: Try to fix build with older gccs after r361152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc6493e85b03bc13560dfa6de1cd609b9ba7b4ec;p=clang Try to fix build with older gccs after r361152 Also merge the cmake change there to the gn build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361209 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Tooling/RangeSelectorTest.cpp b/unittests/Tooling/RangeSelectorTest.cpp index b04245fea8..ae323fc512 100644 --- a/unittests/Tooling/RangeSelectorTest.cpp +++ b/unittests/Tooling/RangeSelectorTest.cpp @@ -396,10 +396,11 @@ TEST(RangeSelectorTest, CallArgsOpEolComments) { )cc"; StringRef ID = "id"; TestMatch Match = matchCode(Code, callExpr().bind(ID)); - EXPECT_THAT_EXPECTED(select(callArgs(ID), Match), HasValue(R"( // Header + std::string ExpectedString = R"( // Header 1, // foo 2 // bar - )")); + )"; + EXPECT_THAT_EXPECTED(select(callArgs(ID), Match), HasValue(ExpectedString)); } TEST(RangeSelectorTest, CallArgsErrors) {