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

Reply via email to