summaryrefslogtreecommitdiff
path: root/test/SemaCXX/bool-compare.cpp
Commit message (Collapse)AuthorAge
* Extend -Wtautological-constant-out-of-range-compare to handle boolean valuesRichard Trieu2014-04-04
better. This warning will now trigger on the following conditionals: bool b; int i; if (b > 1) {} // always false if (0 <= (i > 5)) {} // always true if (-1 > b) {} // always false Patch by Per Viberg. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205608 91177308-0d34-0410-b5e6-96231b3b80d8