summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/warn-bitwise-negation-bool.c
Commit message (Collapse)AuthorAgeFilesLines
* [Diagnostics] Emit better -Wbool-operation's warning message if we known ↵David Bolvansky2019-10-071-3/+3
| | | | | | that the result is always true llvm-svn: 373973
* [Diagnostics] Use Expr::isKnownToHaveBooleanValue() to check bitwise ↵David Bolvansky2019-10-051-0/+2
| | | | | | | | negation of bool in languages without a bool type Thanks for this advice, Richard Trieu! llvm-svn: 373817
* Further improve -Wbool-operation bitwise negation messageSam McCall2019-10-041-3/+3
| | | | llvm-svn: 373749
* [NFCI] Improve the -Wbool-operation's warning messageDavid Bolvansky2019-10-041-2/+4
| | | | | | Based on the request from the post commit review. Also added one new test. llvm-svn: 373743
* [Diagnostics] Bitwise negation of a boolean expr always evaluates to true; ↵David Bolvansky2019-10-031-0/+20
warn with -Wbool-operation Requested here: http://lists.llvm.org/pipermail/cfe-dev/2019-October/063452.html llvm-svn: 373614
OpenPOWER on IntegriCloud