[clang] bad error message on incorrect string literal #18079 (PR #81670)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 14 11:36:48 PST 2024
================
@@ -2270,9 +2270,11 @@ bool Lexer::LexRawStringLiteral(Token &Result, const char *CurPtr,
const char *PrefixEnd = &CurPtr[PrefixLen];
if (PrefixLen == 16) {
Diag(PrefixEnd, diag::err_raw_delim_too_long);
- } else {
+ } else if (*PrefixEnd != '\n') {
----------------
akshaykumars614 wrote:
Great! Thanks, I will flip the conditions. and update the testcases.
https://github.com/llvm/llvm-project/pull/81670
More information about the cfe-commits
mailing list