Clarification for 5-0-20 (operands to a binary bitwise operator) - Printable Version +- MISRA Discussion Forums (https://forum.misra.org.uk) +-- Forum: MISRA C++ (https://forum.misra.org.uk/forumdisplay.php?fid=18) +--- Forum: MISRA C++:2008 rules (https://forum.misra.org.uk/forumdisplay.php?fid=19) +---- Forum: 6.5 Expressions (C++) (https://forum.misra.org.uk/forumdisplay.php?fid=134) +---- Thread: Clarification for 5-0-20 (operands to a binary bitwise operator) (/showthread.php?tid=1468) |
Clarification for 5-0-20 (operands to a binary bitwise operator) - udi - 05-02-2019 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) - misra cpp - 10-04-2019 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. |