[PATCH] D135557: Add needsImplicitDefaultConstructor and friends
Roy Jacobson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 20 14:41:38 PDT 2022
royjacobson added a comment.
I would be more comfortable with exposing something like `clang_CXXRecord_hasAnyNonDeletedDefaultConstructor`. It's better than the confusing `clang_CXXRecord_needsImplicitDefaultConstructor` but it would still be different from the usual type traits in a subtle way. For the other special member functions that would be enough, we can use `!CXXMethod::isIneligibleOrNotSelected()` to know if their constraints are satisfied and there's no SFINAE problems because except for default constructors they're not allowed to be templates.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135557/new/
https://reviews.llvm.org/D135557
More information about the cfe-commits
mailing list