[PATCH] D128619: [Clang] Implement P0848 (Conditionally Trivial Special Member Functions)
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 22 22:41:50 PDT 2022
shafik added inline comments.
================
Comment at: clang/lib/AST/DeclCXX.cpp:899
+ // triviality properties of the class until selecting a destructor and
+ // computing the eligibility of SMFs. This is because those member
+ // functions may have constraints that we need to evaluate and compare
----------------
I think we should spell out `Special Member Function` instead of using `SMF`
================
Comment at: clang/lib/Sema/SemaDecl.cpp:17875
+ return true;
+ if (!Context.hasSameType(M1->getParamDecl(0)->getType(),
+ M2->getParamDecl(0)->getType()))
----------------
What happens if we have further parameters with default arguments? Unless I am missing something they are still special member functions but the proposal does not seem to cover them.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128619/new/
https://reviews.llvm.org/D128619
More information about the cfe-commits
mailing list