Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 9.3.1 - iteration statement followed by 'try'
#2
You are right, your example is non-compliant with 9.3.1.

Whilst 'try' is always followed by a compound statement, there are now a number of compound statements after the 'while', the 'try' and an arbitrary number of 'catch'es. For simplicity, we prefer 'while' followed by a single compound statement.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: Rule 9.3.1 - iteration statement followed by 'try' - by misra cpp - 28-03-2025, 01:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)