[cfe-dev] Cleaning up the representation of Decls in the AST

Neil Booth neil at daikokuya.co.uk
Sat Aug 23 17:29:39 PDT 2008

Ted Kremenek wrote:-

> - RecordDecls would represent their fields as a group of DeclGroups.
>   This enables us to accurately represent:
> struct x {
>    struct y { int z; } a, b;
>    int c;
> };
> A field_iterator interface can provide the necessary abstraction to
> clients that just want to iterate over the FieldDecls of a struct.

This example has a different meaning in C and C++.  Would they
be represented the same?  How would one walk file-scope struct/
union/enum declarations for C?


More information about the cfe-dev mailing list