Enhance -Wtautological-constant-out-of-range-compare to include the name of the enum constant.
This is QoI. Fixes <rdar://problem/13076064>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177190 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Sema/SemaChecking.cpp 15 additions, 2 deletionslib/Sema/SemaChecking.cpp
- test/Sema/compare.c 8 additions, 8 deletionstest/Sema/compare.c
- test/SemaCXX/compare.cpp 8 additions, 8 deletionstest/SemaCXX/compare.cpp
- test/SemaCXX/warn-enum-compare.cpp 2 additions, 2 deletionstest/SemaCXX/warn-enum-compare.cpp
Loading
Please register or sign in to comment