[cfe-commits] [patch] Copy diagnostic pragmas to the preprocessed output

Richard Osborne richard at xmos.com
Sat Jun 18 12:00:32 PDT 2011


This patch adds support for printing diagnostic pragmas to the preprocessed output. Previously they would be discarded (http://llvm.org/bugs/show_bug.cgi?id=5952).

Please let me know if this patch looks OK. Note diagnostic pragmas in the clang and GCC pragma namespaces will both be printed as "#pragma GCC diagnostic ...". I assumed this wouldn't matter as they should have the same behaviour.
 
Thanks,

Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pragma_diagnostic.patch
Type: application/octet-stream
Size: 5590 bytes
Desc: pragma_diagnostic.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110618/28a551be/attachment.obj>


More information about the cfe-commits mailing list