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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to