Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++17 [[fallthrough]]; attribute and (Rule 6-4-3 and Rule 6-4-5)
#1
Given the response from:  Rule 6-2-3 and C++17 [[fallthrough]]; attribute (misra.org.uk)
Should Rule 6-4-3(A switch statement shall be a well-formed switch statement) and Rule 6-4-5(An unconditional throw or break statement shall terminate every non-empty switch-clause) also have an exception for the [[fallthrough]]; attribute when used in an empty switch case?
Reply


Messages In This Thread
C++17 [[fallthrough]]; attribute and (Rule 6-4-3 and Rule 6-4-5) - by mshawa - 22-04-2024, 06:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)