[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 18 02:49:10 PDT 2025


================
@@ -77,7 +77,7 @@ static std::optional<std::string> formatIfNeeded(StringRef IntegerLiteral,
         transformComponent(IntegerLiteral.take_front(1 + N.BaseLetterPos),
                            Style.NumericLiteralCase.Prefix);
   }
-  // reformat this slice as HexDigit whether or not the digit has hexadecimal
+  // Reformat this slice as HexDigit whether or not the digit has hexadecimal
   // characters because binary/decimal/octal digits are unchanged
----------------
HazardyKnusperkeks wrote:

```suggestion
  // characters because binary/decimal/octal digits are unchanged.
```
Comments end in full stop.

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


More information about the cfe-commits mailing list