diff options
author | Vlad Serebrennikov <serebrennikov.vladislav@gmail.com> | 2025-05-01 17:03:47 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-01 17:03:47 +0400 |
commit | 001cc34275111df842edbaa874b7319eef930c81 (patch) | |
tree | 73c89d65330a850bc2a2b9718e5bdcc5c27c6e22 /clang/unittests/Serialization/ModuleCacheTest.cpp | |
parent | a6459debc06f9cb86940ff5cdae35a1f52e1ed19 (diff) | |
download | llvm-001cc34275111df842edbaa874b7319eef930c81.zip llvm-001cc34275111df842edbaa874b7319eef930c81.tar.gz llvm-001cc34275111df842edbaa874b7319eef930c81.tar.bz2 |
[clang] Add scoped enum support to `StreamingDiagnostic` (#138089)
This patch adds templated `operator<<` for diagnostics that pass scoped
enums, saving people from `llvm::to_underlying()` clutter on the side of
emitting the diagnostic. This eliminates 80 out of 220 usages of
`llvm::to_underlying()` in Clang.
I also backported `std::is_scoped_enum_v` from C++23.
Diffstat (limited to 'clang/unittests/Serialization/ModuleCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions