[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 08:14:31 PDT 2025


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

The `TypeTraits` are already not in alphabetical order (`ValueTraits` are though), and I didn't want to reorder them in this PR because it would make it harder to see which traits were being added.

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


More information about the cfe-commits mailing list