summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/bool-compare.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Extend -Wtautological-constant-out-of-range-compare to handle boolean valuesRichard Trieu2014-04-041-0/+207
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. llvm-svn: 205608
OpenPOWER on IntegriCloud