[clang] [llvm] [clang] Use separator for large numeric values in overflow diagnostic (PR #80939)
Timm Baeder via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 14 21:29:52 PST 2024
================
@@ -2187,6 +2188,12 @@ void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix, bool Signed,
}
}
+ // Number of digits in a group between separators.
+ unsigned Grouping = (Radix == 8 || Radix == 10) ? 3 : 4;
+ if (Radix == 8 || Radix == 10) {
+ Grouping = 3;
+ }
+
----------------
tbaederr wrote:
This code block is now unnecessary.
https://github.com/llvm/llvm-project/pull/80939
More information about the llvm-commits
mailing list