]> granicus.if.org Git - clang/commit
Catch more cases with -Wenum-compare
authorRichard Trieu <rtrieu@google.com>
Sat, 9 Sep 2017 00:25:05 +0000 (00:25 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 9 Sep 2017 00:25:05 +0000 (00:25 +0000)
commit74973037ebfc7d071c32e4dcfde822c411274a44
tree21c8b45273635537436efe25e60424468baa7841
parent5c4cc68ec0bab7873a32528a91d866f748fe9d9b
Catch more cases with -Wenum-compare

Treat typedef enum as named enums instead of anonymous enums.  Anonymous enums
are ignored by the warning, so previously, typedef enums were ignored as well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312842 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
lib/Sema/SemaStmt.cpp
test/SemaCXX/warn-enum-compare.cpp