MISRA Discussion Forums

Full Version: Clarification for 5-0-20 (operands to a binary bitwise operator)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Just to clarify what seems to be a mistake in the implementation of the static analysis tool I use:
According to the rationale, I believe that this rule does not refer to the shift operators, but only to following 6 operators:
&
|
^
&=
|=
^=
Am I right about this?

Thanks,
Udi.
We agree that it is undesirable for 5-0-20 to apply to shift operators, however the current wording may be regarded as ambiguous and could be taken to include shifts. This is being looked at for the next version.