Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 0.2.4 non-compliant reason
#2
0.2.4 is marked as a 'System' rule, meaning that the whole program needs to be considered when determining compliance.
For System rules, either the example text represents the whole of the program or it can be assumed that there are no relevant references to the example code in the rest of the program.

In the example code there are no uses of B:: swap, so it is marked as non-compliant.

In contrast, A:: swap is used in f5, so is compliant.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
Rule 0.2.4 non-compliant reason - by danix800 - 15-03-2024, 02:20 PM
RE: Rule 0.2.4 non-compliant reason - by misra cpp - 12-04-2024, 01:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)