diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-09-30 06:33:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-30 06:33:29 +0200 |
commit | 32baec4483d8723f594e04918d6a22d9d1423606 (patch) | |
tree | 409062d76a019fe7a1c1ebbd76d145f874ee05dc /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 56d920d5868596f48a3a779dc88825594a646af3 (diff) | |
download | llvm-32baec4483d8723f594e04918d6a22d9d1423606.zip llvm-32baec4483d8723f594e04918d6a22d9d1423606.tar.gz llvm-32baec4483d8723f594e04918d6a22d9d1423606.tar.bz2 |
[clang][Diags] Automatically format AP(S)Int values with separators (#161047)
This adds an `operator<<` overload for `StreamingDiagnostic` that takes
an `APInt`/`APSInt` and formats it with default options, including
adding separators.
This is still an opt-in mechanism since all callers that want to use
this feature need to be changed from
```c++
Diag() << toString(MyInt, 10);
```
to
```c++
Diag() << MyInt;
```
This patch contains one example of a diagnostic making use of this.
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions