[cfe-dev] proposal: every warning should have a -W flag

Ted Kremenek kremenek at apple.com
Thu Aug 11 13:27:32 PDT 2011


On Aug 10, 2011, at 9:25 PM, Miles Bader wrote:

> Clang's gcc-compatibility [both for source and invocation] is absolutely
> brilliant for users, and it's done a great job of it so far.  But of
> course for every new feature added, there's potential for divergence,
> and it would be nice to at keep that in check as much as possible...
> 
> Is there some established mechanism for coordinating interface changes
> with gcc where it would make sense?

For existing warnings, we try and match GCC's flag names.  For new warnings being added to Clang that (to our knowledge) aren't being added to GCC, there is no dialog with the GCC developers to support the same warning flag.  I think dialog between the communities would be helpful in this regard, but I'm not interested in establishing an official process here for coordinating warnings between the two compilers.  Generally speaking it hasn't been a problem at all, and that formal process would likely burden both communities.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110811/6918d97b/attachment.html>


More information about the cfe-dev mailing list