[cfe-dev] Fix for preprocessor paste bug

Andy Gibbs andyg1001 at hotmail.co.uk
Wed Jun 13 01:49:59 PDT 2012


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.

Cheers
Andy



-------------- next part --------------
A non-text attachment was scrubbed...
Name: paste-fix.diff
Type: application/octet-stream
Size: 1528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120613/758b8532/attachment.obj>


More information about the cfe-dev mailing list