[cfe-commits] patch: add flag to warn_redecl_library_builtin

Nick Lewycky nlewycky at google.com
Wed Jan 23 18:27:07 PST 2013


On 22 December 2012 16:34, Dmitri Gribenko <gribozavr at gmail.com> wrote:

> Hi Nick,
>
> On Fri, Dec 21, 2012 at 11:01 PM, Nick Lewycky <nicholas at mxc.ca> wrote:
> > The attached patch adds a flag to control warn_redecl_library_builtin,
> > -Wlibrary-redeclaration. I also update Misc/warning-flags.c. Please
> review!
>
> Seems like the point of this review is to bikeshed on the warninig
> group name, so, here goes.
>

More or less. I was hoping a clang code owner would express an opinion, and
that's what I would commit.

Nick


>
> -Wlibrary-redeclaration seems to suggest that we will warn on any
> redecl of a library function, like "it'd be better to use #include
> <foo.h> instead of declaring foo() directly".  I'd suggest
> -Wincompatible-library-redeclaration or -Wbad-library-redeclaration.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130123/250e3def/attachment.html>


More information about the cfe-commits mailing list