]> granicus.if.org Git - clang/commit
[Sema] Extend -Wenum-compare to handle mixed enum comparisons in switch statements
authorGabor Horvath <xazax.hun@gmail.com>
Wed, 9 Aug 2017 08:57:09 +0000 (08:57 +0000)
committerGabor Horvath <xazax.hun@gmail.com>
Wed, 9 Aug 2017 08:57:09 +0000 (08:57 +0000)
commit490148872567dc6c2c05abbfcab085fd4e404084
tree0c184f1d8ba6c9d4352fbfb1022a4f1169e2b27b
parent5ba2bdede3dca10922bf1ab31d181435067a619c
[Sema] Extend -Wenum-compare to handle mixed enum comparisons in switch statements

Patch by: Reka Nikolett Kovacs

Differential Revision: https://reviews.llvm.org/D36407

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