[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
Sat Jul 5 11:21:03 PDT 2025


================
@@ -130,6 +155,10 @@ static const llvm::StringSet<> TypeTraits = {
     "result_of",
     "invoke_result",
     "type_identity",
+    "compare_three_way_result",
+    "common_comparison_category",
----------------
localspook wrote:

> We usually don't care if there would be a warning inside system headers, we only check user-code. It's okay if internal implementation would give a warning - it is usually filtered out.

Ah, that's what I was missing!

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


More information about the cfe-commits mailing list