22-03-2022, 11:00 AM
10-3-2 requires that overriding virtual functions are marked as 'override' or 'final'
10-3-3 requires that overriding virtual functions of a final class should be marked 'final'
(its not explicit, but clear from the examples - where a function marked 'override' is shown Non-Compliant)
Your static analyser should be accepting 'final'
For the next version of MISRA C++, we are likely to revise these requirements.
10-3-3 requires that overriding virtual functions of a final class should be marked 'final'
(its not explicit, but clear from the examples - where a function marked 'override' is shown Non-Compliant)
Your static analyser should be accepting 'final'
For the next version of MISRA C++, we are likely to revise these requirements.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group