Inspectopedia 2024.3 Help

Bitwise operation issues

Bitwise expression can be simplified   New in this release

Reports an expression that includes and with zero, or by zero, or shifting by zero.

Bitwise operator usage   New in this release

Reports a suspicious usage of a bitwise AND ("&") or OR ("|") operator.

Incompatible bitwise mask operation   New in this release

Reports a bitwise mask expression which for sure evaluates to true or false.

Shift operation by possibly wrong constant   New in this release

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