[cfe-dev] accessing struct's members

Joshua Cranmer Pidgeot18 at gmail.com
Mon Oct 24 13:17:11 PDT 2011

On 10/24/2011 3:04 PM, ret val wrote:
> I'm using a RecursiveASTVisitor and implementing its VisitDecl()
> method. Once I find one thats a stuct(by calling isStructureType()),
> how can I iterate over its members?

All structs should be RecordDecls; the iterator for the fields is 

Joshua Cranmer
News submodule owner
DXR coauthor

More information about the cfe-dev mailing list