[cfe-dev] Tentative typeid Parser/AST implementation

Sebastian Redl sebastian.redl at getdesigned.at
Tue Nov 11 05:24:04 PST 2008


Doug Gregor wrote:
> On Tue, Nov 11, 2008 at 8:11 AM, Sebastian Redl
> <sebastian.redl at getdesigned.at> wrote:
>   
>> Also, we don't save anything for sizeof/alignof, because there's already a
>> boolean (isSizeof) there, and I can collapse that to a single bit, which
>> gives me plenty of space for the isTypeOperand bit.
>>     
>
> I guess that depends... if you're planning to make sizeof and alignof
> different AST nodes, then we can eliminate the bit for isSizeOf and
> make the structures smaller than they used to be. If sizeof and
> alignof are the same AST node with an isSizeOf bit, then of course the
> isTypeOperand bit is free.
>   
True. For now, I'm leaving them as the same node. If people think having 
separate nodes is better, I can do that, too.

Sebastian



More information about the cfe-dev mailing list