The Misra C++:2023 Guidelines
summary
MISRA C++:2023 updates MISRA to modern C++ and explicitly allows standard library containers while still forbidding raw new/delete and flagging unsafe patterns like C arrays, implicit numeric narrowing, mixed access specifiers, globals, and hidden/hard-to-check conversions. Tooling examples include Parasoft and Cppcheck used to run checks. The guideline set totals about 180–280 rules, the presenter demonstrates ~20–30 with concrete code examples (initializer lists, enum class, nullptr, nodiscard, smart pointers) and discusses practical exceptions and allocation caveats.
AI-written summary · about
chapters (12)
- 0:00MISRA C++:2023 intro
- 3:03MISRA vs C++ Core Guidelines
- 6:15Evolution to C++:2023
- 13:07Modern C++ features encouraged
- 21:12Dynamic memory and smart pointers
- 26:07Class member init rules
- 30:30Embedded type and style rules
- 36:36Init lists and type safety
- 41:42Compiler features aligning
- 45:24Forbidden C libraries
- 46:54MISRA rule count
- 47:15Q&A
related talks
01h 20mSafer C++: MISRA-C++ : 202X Rules and Beyond
01h 05mSafer C++ with MISRA-C++ 2023
58mMisra Parallelism Safety-critical Guidelines for C++11, 17, Then C++20, 23
53mFrom Chaos to Control: Overcoming C and C++’s Inherent Unsafety
01h 29mC++ Safety And Security Panel 2024
49mC++ (Core) Guidelines - Safer C++
01h 02mHow to deal with static analysis findings: MISRA
27mThe Core C++ Guidelines for Safer Code
