[clang] [clang-format] Add xxxMaxDigitsNoSeparator (PR #164286)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 3 00:49:01 PST 2025
=?utf-8?q?Björn_Schäpers?= <bjoern at hazardy.de>,
=?utf-8?q?Björn_Schäpers?= <bjoern at hazardy.de>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/164286 at github.com>
owenca wrote:
When I designed [`IntegerLiteralSeparator`](https://clang.llvm.org/docs/ClangFormatStyleOptions.html#integerliteralseparator), I included "if negative, remove separators" for completeness because of the virtually zero overhead, even though I didn't think anyone would use it. After I added `BinaryMinDigits`, etc. integer literals having fewer digits than the minimum would have all separators removed. I guess you are trying to set a maximum number of digits for removing separators?
https://github.com/llvm/llvm-project/pull/164286
More information about the cfe-commits
mailing list