[clang-tools-extra] [clang-tidy] Don't suggest tuple_size_v in constraints in type-traits (PR #235257)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 25 02:23:03 PDT 2026


zwuis wrote:

> ... The other value traits handled by this check are defined for every argument, so replacing them with their _v form does not change their behavior in constraints and remains safe to suggest.

What does “defined for every argument” mean? Did you mean that most `std::XXX_v` traits are SFINAE-friendly except `std::tuple_size_v` and `std::variant_size_v`?

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


More information about the cfe-commits mailing list