[clang] [clang-format] Fix crash on numeric literals with an incomplete exponent (PR #206594)

Gustas JanuĊĦonis via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 1 06:09:07 PDT 2026


================
@@ -340,6 +340,17 @@ TEST_F(NumericLiteralCaseTest, UnderScoreSeparatorLanguages) {
   verifyFormat("o = 0o0_10_010;", "o = 0O0_10_010;", Style);
 }
 
+TEST_F(NumericLiteralCaseTest, IncompleteLiteralDoesNotCrash) {
----------------
LeGusto wrote:

moved

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


More information about the cfe-commits mailing list