[cfe-commits] [PATCH] Reimplement __pragma support

Peter Collingbourne peter at pcc.me.uk
Sun Feb 20 18:00:10 PST 2011


This patch series reimplements __pragma using a TokenLexer and reusing
the original tokens.  This makes diagnostics look better and also
fixes a bug where we would accept things like __pragma(o n c e).
It's still not perfect but IMHO an improvement on what we had before.

I don't have access to the Microsoft headers so it would be good if
someone (Francois?) could test for regressions against those headers.

OK to commit?

Thanks,
-- 
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-TokenLexer-capable-of-storing-preprocessor-dire.patch
Type: text/x-diff
Size: 3285 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110221/706d489d/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Reimplement-__pragma-support-using-a-TokenLexer.patch
Type: text/x-diff
Size: 5052 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110221/706d489d/attachment-0001.patch>


More information about the cfe-commits mailing list