Warn about the use of unparenthesized |= in conditionals (which may be
commit73ea74cffbffc38a6b4cb04153e599b8eee9a978
authorDouglas Gregor <doug.gregor@gmail.com>
Wed, 19 Jan 2011 16:50:08 +0000 (19 16:50 +0000)
committerDouglas Gregor <doug.gregor@gmail.com>
Wed, 19 Jan 2011 16:50:08 +0000 (19 16:50 +0000)
tree8aa282a17c24cd6659392c07d93b76226de96dae
parentb4195ae6ff4db1a9a9eaf9c2545df9a0570144de
Warn about the use of unparenthesized |= in conditionals (which may be
a typo for !=). Fixes PR9001, from Hans Wennborg!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123836 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/SemaCXX/warn-assignment-condition.cpp