diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-02-17 08:37:06 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2011-02-17 08:37:06 +0000 |
| commit | 543cb655b174087f6c2d22009934c9fed6c32114 (patch) | |
| tree | 61c99e83fd8f8c1bf5683f7ba470c7a92fa74f16 /lib/CodeGen/CGExprComplex.cpp | |
| parent | 8755836379a3f8e9848b5e770aa60d00e1fbb990 (diff) | |
| download | clang-543cb655b174087f6c2d22009934c9fed6c32114.tar.gz clang-543cb655b174087f6c2d22009934c9fed6c32114.tar.bz2 clang-543cb655b174087f6c2d22009934c9fed6c32114.tar.xz | |
Implement -Wenum-compare, which warns when comparing two enums of
different types. We omit the warning when the enum types are anonymous.
Unlike GCC, this warning does not distinguish between C++ and C/ObjC for
controling whether it is on by default, it is always on by default.
Original patch contributed by Richard Trieu (@ Google), I fixed some
style issues, and cleaned it up for submission.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
0 files changed, 0 insertions, 0 deletions
