[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 09:11:02 PDT 2025


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

There are no tests that will handle recursive traits (AFAIK there weren't any recursive trait in the list before your changes).

Could you add tests for `tuple_element` to check if it will work correctly.

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


More information about the cfe-commits mailing list