[cfe-commits] PATCH: Adds -Wenum-compare to Clang

Chandler Carruth chandlerc at google.com
Tue Feb 15 22:41:48 PST 2011


This patch implements most of -Wenum-compare in Clang. I know of at least on
difference between this implementation and GCC: this is currently on by
default for all languages. In GCC -Wenum-compare is only turned on with
-Wall in C/ObjC, but is on by default in C++. I'm happy either leaving as is
(and it always being on by default) or if someone has a suggestion for how
to model GCC's behavior I'm happy to do that. There may be other differences
in the nature of the implementation, I'm not familiar with GCC's.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110215/2119a939/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: warn_enum_compare.patch
Type: application/octet-stream
Size: 20140 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110215/2119a939/attachment.obj>


More information about the cfe-commits mailing list