================
@@ -582,6 +582,12 @@ class Lexer : public PreprocessorLexer {
/// sequence.
static bool isNewLineEscaped(const char *BufferStart, const char *Str);
+ /// Diagnose use of a delimited or named escape sequence.
+ static void DiagnoseDelimitedOrNamedEscapeSequence(SourceLocation Loc,
+ bool Named,
+ const LangOptions &Opts,
+ DiagnosticsEngine &Diags);
+
----------------
AaronBallman wrote:
It's called from LiteralSupport.cpp, so it could be a non-member function, but
I think it's a bit cleaner to scope it to the `Lexer` to make it clear this is
emitting lexer-based diagnostics. WDYT?
https://github.com/llvm/llvm-project/pull/131626
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits