Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A5-2-6 about operands consisting of a sequence of only `&&` or `||`
#3
From the wording of the Autosar rule, you are right that additional parentheses are required.

However, Autosar inherited this rule from MISRA C++:2008 5-2-1, and in MISRA there was an explicit exception for sequences of && and || (but not a mixture).

This is being reviewed for the next version.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: A5-2-6 about operands consisting of a sequence of only `&&` or `||` - by misra cpp - 07-10-2022, 11:41 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)