Bitwise operation issues
- Bitwise expression can be simplified
Reports an expression that includes and with zero, or by zero, or shifting by zero.
- Bitwise operator usage
Reports a suspicious usage of a bitwise AND ("&") or OR ("|") operator.
- Incompatible bitwise mask operation
Reports a bitwise mask expression which for sure evaluates to true or false.
- Shift operation by possibly wrong constant
Reports a shift operation where the second operand is a constant outside the reasonable range, for example, an integer shift operation outside the range 0..31, shifting by negative or overly large values.
Last modified: 11 September 2024