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)
commit560910c9b8b1f2c14e2d2112ff0384261f02214c
tree1a8e4a92259735e8271498f3f43de2ddb6992908
parentab0139cb907423ef6d7928ab293451bf60d6117a
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.

llvm-svn: 167992
clang/lib/Sema/SemaChecking.cpp
clang/test/Analysis/additive-folding.cpp
clang/test/SemaCXX/compare.cpp