[cfe-dev] Macro expansion weirdness (or bug?)

Abramo Bagnara abramo.bagnara at gmail.com
Fri Mar 26 01:44:01 PDT 2010


Il 26/03/2010 00:32, Abramo Bagnara ha scritto:
> Il 25/03/2010 20:43, Chris Lattner ha scritto:
>>
>> On Mar 25, 2010, at 12:08 PM, Abramo Bagnara wrote:
>>
>>>
>>> From your message it seems you're expecting *more* callback
>>> invocations in the first sample, while I'd expect *less* callback
>>> invocations in the second sample.
>>>
>>> Could you explain better your position?
>>
>> My position is basically that the preprocessor is incredibly
>> scary/confusing and implementing it damaged me.  :)
>>
>> I don't recall enough of the details to really say which way is right
>> or wrong, but tokens coming out at -E is a good indicator that the
>> right thing is happening.
> 
> Indeed it was missing further expansion disabling in a case where
> isTrivialSingleTokenExpansion is true.

Please apply also this unrelated patch fixing a typo in paste avoidance
code.

-- 
Abramo Bagnara

Opera Unica                          Phone: +39.0546.656023
Via Borghesi, 16
48014 Castel Bolognese (RA) - Italy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TokenConcatenation.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100326/cf7ede33/attachment.bin>


More information about the cfe-dev mailing list