ASTVisitor: Lifetime of CXXRecordDecl

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ASTVisitor: Lifetime of CXXRecordDecl

shirley breuer via cfe-dev
Hi,

first of all Happy New Year to everyone!

I have a strange SEGV in my tool.

I store inside a

ASTVisitor::VisitCXXRecordDecl(CXXRecordDecl*Declaration)

the Declaration in a std::vector for later processing.

After traversing the AST the Declaration pointer in the vector seems to
be invalid.

Any idea?


Thanks

Marcel
_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev