Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clarification for 5-0-20 (operands to a binary bitwise operator)
#1
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.
<t></t>
Reply
#2
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.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)