[cfe-dev] Fix for preprocessor paste bug

Richard Smith richard at metafoo.co.uk
Wed Jun 13 12:06:01 PDT 2012


On Wed, Jun 13, 2012 at 1:49 AM, Andy Gibbs <andyg1001 at hotmail.co.uk> wrote:

> Hi again,
>
> > In -fms-extension -Wno-invalid-token-paste mode, the patch
> > regresses this test, because we're no longer invoking
> > LookUpIdentifierInfo on the pasted 'ab' token:
> >
> >  #define foo a ## b ## = 0
> >  int foo;
> >
> > Switching out the 'return true' for a 'break' should resolve
> > that, I think. Your fix should also apply in the
> > AsmPreprocessor case.
>
> Your wish is my command!  Attached is a revised patch.
>

Many thanks, r158412. [I slightly tweaked your tests.]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120613/be69b409/attachment.html>


More information about the cfe-dev mailing list