]> granicus.if.org Git - clang/commit
Improve -Wtautological-constant-out-of-range-compare by taking into account
authorRichard Trieu <rtrieu@google.com>
Wed, 14 Nov 2012 22:50:24 +0000 (22:50 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 14 Nov 2012 22:50:24 +0000 (22:50 +0000)
commit526e627d2bd7e8cbf630526d315c90864898d9ff
treeaa81e4aba048ad8e3efa245484c60dccb3d956a7
parent1cef45955d87dde48c78b6878dc0ee67a3404b6c
Improve -Wtautological-constant-out-of-range-compare by taking into account
type conversion between integers.  This allows the warning to be more accurate.

Also, turned the warning off in an analyzer test.  The relavent test cases
are covered by the tests in Sema.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167992 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Analysis/additive-folding.cpp
test/SemaCXX/compare.cpp