[clang] [C2y] Add octal prefixes, deprecate unprefixed octals (PR #131626)

via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 17 10:00:55 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff e0223fa24aedf14895ea31beb87dac6d5a2137f0 b2315a141312ee7a33d211938b4fabc2d8cac41c --extensions c,h,cpp -- clang/test/C/C2y/n3353.c clang/include/clang/Lex/Lexer.h clang/lib/Lex/Lexer.cpp clang/lib/Lex/LiteralSupport.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index d2afbf30f1..7d16a106fd 100644
--- a/clang/lib/Lex/Lexer.cpp
+++ b/clang/lib/Lex/Lexer.cpp
@@ -3422,7 +3422,6 @@ void Lexer::DiagnoseDelimitedOrNamedEscapeSequence(SourceLocation Loc,
   Diags.Report(Loc, DiagId) << Named << !Opts.CPlusPlus;
 }
 
-
 std::optional<uint32_t> Lexer::tryReadNumericUCN(const char *&StartPtr,
                                                  const char *SlashLoc,
                                                  Token *Result) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/131626


More information about the cfe-commits mailing list