[cfe-dev] Fix for preprocessor paste bug

Andy Gibbs andyg1001 at hotmail.co.uk
Tue Jun 12 07:01:17 PDT 2012


Attached is a patch fixing a preprocessor paste bug.

The bug manifests itself by swallowing up the remainder of the file 
following an invalid paste operation.  In terms of technical details, 
TokenLexer::PasteTokens was returning tok::eof in this case, effectively 
stopping any further processing.  The bug includes a test-case demonstrating 
the fix.  No other regressions are noted.


P.S. For Richard Smith, who is keeping my wits sharp on the "-verify" 
enhancement, this solves one of the unnecessary test-case changes!  ;o)

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

More information about the cfe-dev mailing list