]> granicus.if.org Git - clang/commit
Implemented a warning when an input several bitwise operations are
authorSam Panzer <espanz@gmail.com>
Thu, 28 Mar 2013 19:07:11 +0000 (19:07 +0000)
committerSam Panzer <espanz@gmail.com>
Thu, 28 Mar 2013 19:07:11 +0000 (19:07 +0000)
commit25ffbef84450f0c666957a2d00cdf928c61b44d7
tree86e16039dce641e2df92c0276e93bf126283ef5b
parent577bb0a2335295958b3b0f88bc9cdedf6551c17f
Implemented a warning when an input several bitwise operations are
likely be implicitly truncated:

  * All forms of Bitwise-and, bitwise-or, and integer multiplication.
  * The assignment form of integer addition, subtraction, and exclusive-or
  * The RHS of the comma operator
  * The LHS of left shifts.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178273 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/Sema/constant-conversion.c