[cfe-dev] Access to the field of a structure

Alberto Barbaro barbaro.alberto at gmail.com
Sat Feb 14 13:15:56 PST 2015


Hi All,
in my .c file I have a struct like this:

typedef struct var {
    int x;
    int y;
} point;


Overriding the VisitTypedefDecl method I can access to the structure using
a TypedefNameDecl variable. How can I access to the fields of the struct?

Thanks,
Alberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150214/00030b08/attachment.html>


More information about the cfe-dev mailing list