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

Andy MacGregor via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 2 15:46:57 PDT 2025


================
@@ -3872,6 +3887,10 @@ reformat(const FormatStyle &Style, StringRef Code,
     return IntegerLiteralSeparatorFixer().process(Env, Expanded);
   });
 
+  Passes.emplace_back([&](const Environment &Env) {
----------------
30Wedge wrote:

I ended up putting it in `NumericLiteralCaseFixer` so it is in the same function that checks if `Style.Language` is relevant.

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


More information about the cfe-commits mailing list