[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:08:12 PDT 2025
================
@@ -130,6 +149,12 @@ static const llvm::StringSet<> TypeTraits = {
"result_of",
"invoke_result",
"type_identity",
+ "tuple_element",
----------------
localspook wrote:
Good catch -- recursive traits are indeed problematic, the check fires on the recursive use in the definition. Unfortunately I'm not confident fixing it (that's kinda why I'm not addressing `treat_as_floating_point_v` or `is_clock_v` either...), so I've just removed `tuple_element` and added a `FIXME`.
https://github.com/llvm/llvm-project/pull/147074
More information about the cfe-commits
mailing list