MISRA C++202x: It ain't your grandpa's MISRA any more
summary
MISRA C++202x updates MISRA C++2008 with concrete, tool-checkable rules: it mandates use nullptr never NULL, requires named function parameters to be used (unnamed parameters remain explicit exceptions), replaces a blanket ban on dynamic allocation with a four-part memory management regime and smart pointers and rule of five/zero guidance, drops the old single-exit prohibition, prefers high-level algorithms over ad hoc for/while loops, adds checks for surprising integral promotions and implicit conversions, and is being rolled out with public reviews and vendor tool integration (SonarSource planning support).
AI-written summary · about
chapters (6)
- 0:00Start
- 0:59What is MISRA
- 3:38Simplified history of MISRA
- 8:06Design goals for MISRA 2/2
- 16:45Unused function parameters (2008)
- 26:18Single entry - Single Exit (202x)
related talks
01h 20mSafer C++: MISRA-C++ : 202X Rules and Beyond
51mMISRA C and C++ in OSS: Yes, We Can!
01h 02mA Critical Look at the Coding Standards Landscape
01h 41mWriting Good C++14
55mWhen C++ Style Guides Contradict
01h 25mMove Slow and Break Things - Upgrading to C++26
01h 11mDynamic Memory Allocation Challenges in C++ Safety Critical Systems
24mC++17 and 20 Goodies
