[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
Thu Jul 31 14:46:49 PDT 2025


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

Add a check, if any option is not `Leave` (I'd add a member function to the struct), so that the people who don't use this feature don't pay for it.

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


More information about the cfe-commits mailing list