This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MetaC++ announcement


Florian Weimer schrieb:

The tree is a representation of language constructs, not a syntax tree.


Does it include representation information, e.g. offsets of class
members?  Unfortunately, the XML sample is too unwieldy to tell. 8-/


it does preserve order of members, so processed source is compatible with unprocessed source.
it does not read any variable alignment information(except c++ bitfield size) and I don't see a reason to do that.
but in case you need that it can be added quite easily, search for "Parse(object<MemberVariable" in gcc/parse.cpp. there's a switch which also handles FIELD_DECLs you can get alignment info from.




--
Stefan Strasser


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]