[cfe-dev] CXXConstructorDecl::isImplicitlyDefined vs. CXXMethodDecl::isDefaulted

Jordan Rose jordan_rose at apple.com
Tue Aug 6 09:15:47 PDT 2013


Hi, Richard. Is there any reason not to unify the "implicitly defined" bits on CXXConstructorDecl and CXXDestructorDecl with the "IsDefaulted" bit already in CXXMethodDecl (actually in FunctionDecl)? It seems like an easy simplification that collapses two checks into one in many places.

(I'm guessing that the bits for constructors and destructors predated the generic notion of defaulted, even with implicit special member functions.)

Jordan



More information about the cfe-dev mailing list