[clang] [C2y] Add octal prefixes, deprecate unprefixed octals (PR #131626)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 17 10:07:22 PDT 2025
================
@@ -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);
+
----------------
cor3ntin wrote:
This could just be a non-member static function Lexer.cpp
https://github.com/llvm/llvm-project/pull/131626
More information about the cfe-commits
mailing list