Hello dear users.
One more batch of MISRA C++:2023 rules for the MISRA Compliance Early Access.
It gets us closer to completion with 84% coverage. We now have 150 MISRA C++:2023 rules. The newly added are:
- Rule M23_001 (Rule 0.0.1): A function shall not contain “unreachable” statements
- Rule M23_011 (Rule 0.2.2): A named function parameter shall be “used” at least once
- Rule M23_171 (Rule 15.1.1): An object’s dynamic type shall not be used from within its constructor or destructor
- Rule M23_172 (Rule 15.1.2): All constructors of a class should explicitly initialize all of its virtual base classes and immediate base classes
- Rule M23_193 (Rule 18.3.1): There should be at least one exception handler to catch all otherwise unhandled exceptions
- Rule M23_364 (Rule 18.4.1): “Exception-unfriendly” functions shall be “noexcept”
- Rule M23_370 (Rule 19.3.3): The argument to a “mixed-use macro parameter” shall not be subject to further expansion
- Rule M23_393 (Rule 4.1.3): There shall be no occurrence of “undefined” or “critical unspecified behaviour”
- Rule M23_409 (Rule 28.3.1): “Predicates” shall not have “persistent side effects”
All these rules are available in SonarQube Server 2025.5 Enterprise Edition and Data Center Edition when the MISRA Early Access feature is enabled.
Cheers