[cfe-dev] Fix for preprocessor CommentHandler bug

Andy Gibbs andyg1001 at hotmail.co.uk
Tue Jun 12 09:04:55 PDT 2012


Following hot on the heels of my previous preprocessor patch, here is one 
that solves issues related to the fact that the CommentHandler interface is 
not invoked if comments follow #else and #endif preprocessor directives, 
since it can be that the preprocessor is still in skip (i.e. raw) mode while 
processing the directive line.

This fix solves this problem by bringing the preprocessor out of raw mode 
while it processes to the end of the directive line.

The patch causes no test-suite regressions.


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

More information about the cfe-dev mailing list