Some versions of gcc, especially when invoked through ccache (-E), can have
trouble with raw string literals inside macros. This moves the string out of
the macro.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339759
91177308-0d34-0410-b5e6-
96231b3b80d8
}
TEST(IgnoringImplicit, MatchesNestedImplicit) {
- EXPECT_TRUE(matches(R"(
+ StringRef Code = R"(
struct OtherType;
{
SomeType i = something();
}
-)"
- , varDecl(
+)";
+ EXPECT_TRUE(matches(Code, varDecl(
hasName("i"),
hasInitializer(exprWithCleanups(has(
cxxConstructExpr(has(expr(ignoringImplicit(cxxConstructExpr(