[cfe-dev] Syntactic order of CXXBaseOrMemberInitializers
Anders Carlsson
andersca at mac.com
Thu May 20 10:04:52 PDT 2010
On May 20, 2010, at 9:52 AM, Douglas Gregor wrote:
>
>
> Sent from my iPhone
>
> On May 19, 2010, at 4:40 AM, Abramo Bagnara <abramo.bagnara at gmail.com> wrote:
>
>>
>> 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.
>
> Originally, I had imagined that we would compare based on source locations, and perhaps add an "implicit" bit for implicitly-generated initializers. Does that not work?
>
If comparing based on source locations works then we don't need an implicit bit - the source location for implicit initializers is always invalid.
- Anders
More information about the cfe-dev
mailing list