Page 1 of 1

Clarification for 5-0-20 (operands to a binary bitwise operator)

Posted: Tue Feb 05, 2019 3:52 pm
by udi
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.

Re: Clarification for 5-0-20 (operands to a binary bitwise operator)

Posted: Wed Apr 10, 2019 2:49 pm
by misra cpp
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.