r178671 - [preprocessor] Allow comparing two macro definitions syntactically instead of only lexically.
Reid Kleckner
rnk at google.com
Wed Apr 3 17:46:56 PDT 2013
On Wed, Apr 3, 2013 at 5:20 PM, Argyrios Kyrtzidis <akyrtzi at gmail.com>wrote:
> On Apr 3, 2013, at 12:44 PM, Reid Kleckner <rnk at google.com> wrote:
>
> Nice! I've also observed redefinition warnings from clang in various
> winsock headers that might require more work.
>
> I see things like:
> #define SOME_CONSTANT (ULONG)0xffff
> ...
> #define SOME_CONSTANT (u_long)0xffff
>
> We may want to avoid warning on that. Or I could adjust my flags so that
> the winsock headers become "system" headers and the warning is suppressed.
>
>
> Does MSVC not warn for these ?
>
I believe not, but it may be hitting a different pre-processor path or
using one of their pragma warning push/pops to disable it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130403/21c3f2f2/attachment.html>
More information about the cfe-commits
mailing list