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

Chris Lattner clattner at apple.com
Fri Apr 22 16:30:00 PDT 2011


On Apr 22, 2011, at 5:38 AM, Jonathan Sauer wrote:

> 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).

Applied in r130031, thanks!

-Chris



More information about the cfe-commits mailing list