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?
Ive looked for uses of isStructureType() in the sources, expecting to
see it before getting its members and so far I haven't found any
examples.
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?
RecordDecl::field_begin and RecordDecl::field_end.
Ive looked for uses of isStructureType() in the sources, expecting to
see it before getting its members and so far I haven't found any
examples.
I'm a bit confused, these elements I'm iterating over(FieldDecls) cant
also be VarDecls? Also I'm getting much more output than I was
expecting/thought possible from my code. Anyone mind taking a look?