[clang-tools-extra] [clang-tidy] Don't suggest tuple_size_v in constraints in type-traits (PR #235257)
Yash Aggarwal via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 25 03:40:39 PDT 2026
yashaggarwal85d 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`?
> > ... 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`?
Hey @zwuis, you want me to change the wording? Since you resolved the comment I am assuming that you are okay with it.
https://github.com/llvm/llvm-project/pull/235257
More information about the cfe-commits
mailing list