[cfe-dev] Syntactic order of CXXBaseOrMemberInitializers

Abramo Bagnara abramo.bagnara at gmail.com
Wed May 19 04:40:16 PDT 2010


As currently the initializers are reordered to match member order in
record declaration there is no easy way for an AST consumer to know in
which order the initializers were written in the source file.

I'd suggest to insert an index field to each CXXBaseOrMemberInitializer
that is 1 for the first initializer, 2 for the second and so no. The
index is 0 for the initializers that are not present in source file.

Can we proceed in this direction?



More information about the cfe-dev mailing list