[cfe-dev] clang::CXXRecordDecl::data __assert_fail. Clang problem, or bug in my VisitCXXRecordDecl() implementation?

Richard Smith richard at metafoo.co.uk
Mon Dec 10 16:28:30 PST 2012


On Mon, Dec 10, 2012 at 4:20 PM, Yang Chen <chenyang at cs.utah.edu> wrote:
> Peeter Joot wrote:
>>
>> Thanks Yang,
>>
>> How would I determine if this CXXRecordDecl is a definition or not?
>
>
> You can use isThisDeclarationADefinition member function.

You can actually use these members for any class which is defined (no
matter which declaration is the definition); use hasDefinition to
check that.



More information about the cfe-dev mailing list