]> granicus.if.org Git - clang/commit
Improve -Wtautological-overlap-compare
authorRichard Trieu <rtrieu@google.com>
Sat, 21 Sep 2019 02:37:10 +0000 (02:37 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 21 Sep 2019 02:37:10 +0000 (02:37 +0000)
commite92c0a12959f88b63b2a6346be0fe1a98d6aa8c5
treec09bfd755e64022d8aed071019e435d6979f937d
parent69a791e52bc48b4e626b7d64bd81f3e34a6fd853
Improve -Wtautological-overlap-compare

Allow this warning to detect a larger number of constant values, including
negative numbers, and handle non-int types better.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372448 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ReleaseNotes.rst
lib/Analysis/CFG.cpp
lib/Analysis/ReachableCode.cpp
test/Analysis/cfg.cpp
test/Sema/warn-overlap.c
test/Sema/warn-unreachable.c
test/SemaCXX/warn-unreachable.cpp