]> granicus.if.org Git - clang/commit
[Diagnostics] Bitwise negation of a boolean expr always evaluates to true; warn with...
authorDavid Bolvansky <david.bolvansky@gmail.com>
Thu, 3 Oct 2019 15:17:59 +0000 (15:17 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Thu, 3 Oct 2019 15:17:59 +0000 (15:17 +0000)
commiteef8c44f96699ab841d07e4f193063779fc1739a
treeb9a87f0315e279cf7edd0f8b2202f8d10efa0f3e
parentc0fc42a970aa51697535fca51886cccad066329b
[Diagnostics] Bitwise negation of a boolean expr always evaluates to true; warn with -Wbool-operation

Requested here:
http://lists.llvm.org/pipermail/cfe-dev/2019-October/063452.html

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373614 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/Sema/warn-bitwise-negation-bool.c [new file with mode: 0644]