Issue 58228
Summary Consider using thousands-separator for large numeric values in diagnostics
Labels good first issue, clang:diagnostics
Assignees
Reporter tbaederr
    Consider:

```console
array.cpp:21:15: error: constexpr variable 'm' must be initialized by a constant _expression_
constexpr int m = 100'000 * 1'000'000;
              ^   ~~~~~~~~~~~~~~~~~~~
array.cpp:21:27: note: value 100000000000 is outside the range of representable values of type 'int'
constexpr int m = 100'000 * 1'000'000;
                          ^
```
Since the diagnostics are going to be read by humans, I think it could be useful to use a thousands-separator when displaying large values, in this case `100000000000`.

I'm not sure if a local-dependent one or simply a programming language dependent one make more sense.




_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to