05-10-2015, 02:02 PM
In foo() and bar():
- The first return is compliant with 7-5-1 but breaks 7-5-3.
- The second return is compliant as the object is global.
- The third return is non-compliant.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group