[clang] [llvm] [clang] Use separator for large numeric values in overflow diagnostic (PR #80939)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 29 04:46:09 PST 2024


================
@@ -329,9 +329,10 @@ inline std::string itostr(int64_t X) {
 }
 
 inline std::string toString(const APInt &I, unsigned Radix, bool Signed,
-                            bool formatAsCLiteral = false) {
+                            bool formatAsCLiteral = false,
+                            bool upperCase = true, bool addSeparators = false) {
----------------
AaronBallman wrote:

Same suggestion here as above (amusing that `upperCase` changed styles...).

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


More information about the cfe-commits mailing list