Try to fix build with older gccs after r361152

Also merge the cmake change there to the gn build.

llvm-svn: 361209
This commit is contained in:
Nico Weber 2019-05-21 00:27:26 +00:00
parent f1b29723ce
commit 4522e26696
2 changed files with 4 additions and 2 deletions

View File

@ -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) {

View File

@ -14,6 +14,7 @@ unittest("ToolingTests") {
"//clang/lib/Tooling",
"//clang/lib/Tooling/Core",
"//clang/lib/Tooling/Refactoring",
"//llvm/lib/Testing/Support",
"//llvm/lib/Support",
"//llvm/lib/Target:TargetsToBuild",
]