[cfe-commits] [Patch][Review request] Suppress warning about empty macro parameters in C++0x

Jonathan Sauer jonathan.sauer at gmx.de
Fri Apr 22 05:38:02 PDT 2011


Hello,

according to N3290 16.3p11, empty macro parameters are allowed (by not being disallowed anymore, as they
were in C++98 (and most likely 03; unfortunately I don't have access to the 03 standard)). Nevertheless,
when using "-pedantic", clang warns about empty macro parameters: "Empty macro arguments were standardized
in C99".

The attached patch fixes this by suppressing the warning not only in C99 mode, but also in C++0x mode
(diff from inside the directory tools/clang).


Jonathan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: EmptyArgs.diff
Type: application/octet-stream
Size: 714 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110422/60382283/attachment.obj>
-------------- next part --------------




More information about the cfe-commits mailing list