Query module BoolValueInBitOp
- Boolean value in bitwise operation
- A Boolean value (i.e. something that has been coerced to have a value of either 0 or 1) is used in a bitwise operation. This commonly indicates missing parentheses or mistyping logical operators as bitwise operators.
Provides classes and predicates for working with C/C++/ObjC/ObjC++ code.
It’s common in some projects to use “non-short-circuit logic”, i.e. to apply the bitwise and, or and xor operators to Boolean values. Such use, while considered bad practice, is usually not incorrect.