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

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


================
@@ -130,6 +149,12 @@ static const llvm::StringSet<> TypeTraits = {
     "result_of",
     "invoke_result",
     "type_identity",
+    "tuple_element",
----------------
vbvictor wrote:

Please remove other recursive traits as well, `variant_alternative` is also one of them.

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


More information about the cfe-commits mailing list