CxxRecordDecl Bug?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

CxxRecordDecl Bug?

Vladimir
Hello, everyone. I'm using a simple RecursiveASTVisitor and try to visit clang::CxxRecordDecl, calling the VisitCxxRecordDecl(...). But then i trying to access any member (or method) of clang::CxxRecordDecl class i get an exception(assert): Expression: DefinitionData && "queried property of class with no definition"? Why i get this? Other nodes in AST work good.
Reply | Threaded
Open this post in threaded view
|

Re: CxxRecordDecl Bug?

Vladimir
Ohh, thanks, i'm solve this problem :). The main thing is that clang put in AST special type "type_info", that have DefinitionData == NULL. Simple check solve this problem.