22-07-2021, 02:15 PM
Short answer 'No'
We stand by both replies, return b1 && b2; etc. are compliant, the example with f2 and k isn't.
We think the bit of explanation that's missing is that the rule was not intended to apply to short-cut expressions
This rule is under review for the next version
We stand by both replies, return b1 && b2; etc. are compliant, the example with f2 and k isn't.
We think the bit of explanation that's missing is that the rule was not intended to apply to short-cut expressions
This rule is under review for the next version
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group