cpp-coding-standards
C++ coding standards based on the C++ Core Guidelines (isocpp.github.io). Use when writing, reviewing, or refactoring C++ code to enforce modern, safe, and idiomatic practices.
Target: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- C++ Coding Standards (C++ Core Guidelines)
- When to Use
- When NOT to Use
- Cross-Cutting Principles
- Philosophy & Interfaces (P., I.)
- Key Rules
- DO
- DON'T
Comprehensive coding standards for modern C++ (C++17/20/23) derived from the C++ Core Guidelines. Enforces type safety, resource safety, immutability, and clarity. Writing new C++ code (classes, functions, templates) Reviewing or refactoring existing C++ code Making architectural decisions in C++ projects Enforcing consistent style across a C++ codebase Choosing between language features (e.g., enum vs enum class, raw pointer vs smart pointer) Non-C++ projects Legacy C codebases that cannot adopt modern C++ features Embedded/bare-metal contexts where specific guidelines conflict with hardware constraints (adapt selectively) These themes recur across the entire guidelines and form the foundation: 1. RAII everywhere (P.8, R.1, E.6, CP.20): Bind resource lifetime to object lifetime 2. Immutability by default (P.10, Con.1-5, ES.25): Start with const/constexpr; mutability is the exception 3. Type safety (P.4, I.4, ES.46-49, Enum.3): Use the type system to prevent errors at compile time 4. Express intent (P.3, F.1, NL.1-2, T.10): Names, types, and concepts should communicate purpose 5. Minimize complexity (F.2-3, ES.5, Per.4-5): Simple code is correct code 6. Value semantics over pointer
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- pi/core/skills/cpp-coding-standards/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T15:01:42.919Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.