summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-enum-compare.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Enhance -Wtautological-constant-out-of-range-compare to include the name of ↵Ted Kremenek2013-03-151-2/+2
| | | | | | | | the enum constant. This is QoI. Fixes <rdar://problem/13076064>. llvm-svn: 177190
* Improvements to my patch in r164143 perFariborz Jahanian2012-09-201-2/+2
| | | | | | Richard's comments. // rdar://12202422 llvm-svn: 164316
* c: warn when an integer value comparison with anFariborz Jahanian2012-09-181-2/+2
| | | | | | | | integral expression have the obvious result. Patch reviewed by John McCall off line. // rdar://12202422 llvm-svn: 164143
* Implement -Wenum-compare, which warns when comparing two enums ofChandler Carruth2011-02-171-0/+212
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. llvm-svn: 125739
OpenPOWER on IntegriCloud