You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mikir
changed the title
Fix MISRA C++ 2023 rule MISRACPP2023-15_0_1-a Class 'CppRuntimeException' shall have a protected non-virtual destructor because it is not unmovable and used as a public base
Fix MISRA C++ 2023 rule 15.0.1 "Special member functions shall be provided appropriately"
Jun 18, 2024
Since we inherit from std::exception, it's impossible to make the destructor protected non-virtual and it would be impossible to throw "unmovable" exception.
Zserio version and language
Zserio: latest from master
Commit date: 6 days ago (6/4/2024 7:12:28 PM)
Commit hash: b8cc6c0
Describe the bug
1 Misra warning getting reported
Please check possibility of fixing the same.
Steps to reproduce the behavior:
SCA run using MISRA 2023 configuration.
Expected behavior
No SCA warnings for MISRA 2023 ruleset
Additional context
N.A
@Roland-Homeier @mikir FYI.
The text was updated successfully, but these errors were encountered: