r224012 - Emit warning if define or undef reserved identifier or keyword.

Serge Pavlov sepavloff at gmail.com
Fri Dec 12 09:10:52 PST 2014


Probably, on the other hand the pattern '#define inline' often make
troubles, - code with inline functions starts producing link errors when
'inline is removed by such define.

Are there objection to excluding the pattern '#define inline' to this
warning? It would require different -W flag.

Thanks,
--Serge

2014-12-12 21:02 GMT+06:00 Joerg Sonnenberger <joerg at britannica.bec.de>:
>
> On Fri, Dec 12, 2014 at 04:48:40PM +0600, Serge Pavlov wrote:
> > Thank you for feedback.
> >
> > I removed warning on #undef keyword, and changed wording in r224100.
>
> Similar, it should not warning about #define inline inline, which is
> also a very common pattern.
>
> Joerg
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141212/55738934/attachment.html>


More information about the cfe-commits mailing list