Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 6-4-5 Is return as last statement of a switch-clause also compliant to this rule?
#4
Having multiple returns in a function violates 6-6-5 - which is required, so you cannot have a return in a case clause
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)