[clang] [Clang] allow `` `@$ `` in raw string delimiters in C++26 (PR #93216)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 13 04:48:45 PDT 2024
================
@@ -2261,8 +2261,17 @@ bool Lexer::LexRawStringLiteral(Token &Result, const char *CurPtr,
unsigned PrefixLen = 0;
- while (PrefixLen != 16 && isRawStringDelimBody(CurPtr[PrefixLen]))
+ while (PrefixLen != 16 && isRawStringDelimBody(CurPtr[PrefixLen])) {
++PrefixLen;
+ if (!isLexingRawMode() &&
+ llvm::is_contained({'$', '@', '`'}, CurPtr[PrefixLen])) {
----------------
AaronBallman wrote:
Good catch, thank you! I've fixed this in 4f09ac7705b3b24492d521a97571404c2e9a1f8e
https://github.com/llvm/llvm-project/pull/93216
More information about the cfe-commits
mailing list