curdeius added a comment.
You shouldn't have added the outer quotes as `#str` adds them.
This works:
// clang-format off
#define MyRawString(str) R#str
void foo()
{
const auto * s1 = MyRawString((" Hello \ world "));
const auto * s2 = MyRawString(abc(" Hello \ world ")abc);
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115938/new/
https://reviews.llvm.org/D115938
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits