[clang-tools-extra] [clang-tidy] Teach `modernize-type-traits` about more type traits (PR #147074)

Victor Chernyakin via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 4 11:10:46 PDT 2025


localspook wrote:

I've changed the tests to use `-std=c++17-or-later`, but I don't think we need to add tests for the new traits because they wouldn't exercise any new codepaths. It's not like we only match on `compare_three_way_result_t` if compiling in C++20, no, we match on all traits in all modes.

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


More information about the cfe-commits mailing list