[cfe-dev] better way to test for explicit C++ constructor?

Yang Chen chenyang at cs.utah.edu
Fri Dec 14 14:44:38 PST 2012


Peeter Joot wrote:
>
> Alternately, if there was a way to lookup the CXXRecordDecl that's 
> associated with the FieldDecl, then the functions 
> like hasUserDeclaredConstructor() could be called. 

Can FieldDecl::getParent work for you?

- Yang




More information about the cfe-dev mailing list