Which standards does CppDepend support out of the box? Built-in rule sets cover MISRA C/MISRA C++, CWE, CERT C/CERT C++ and AUTOSAR C++14 — and no other standard. For any other standard mentioned on this page (ISO 26262, DO-178C, IEC 62304, IEC 61508, JSF++ AV, NIST SSDF, ASPICE…), compliance is enforced through custom CQLinq rules written for your project, plus architecture validation and CI quality gates.
Case Study: Scaling and Refactoring a C++ Game Engine with CppDepend
Industry: Game DevelopmentClient Profile: Independent AAA studio (undisclosed)Domain: In-house C++ game engine for a cross-platform open-world RPGTeam Size: 75+ developers (engineers, designers, QA)Languages: C++ (engine), Lua (scripting)Key Concerns: Performance, modularity, refactoring, technical debt
The Challenge
The studio had been developing its proprietary game engine for five years. As the codebase grew to over 2 million lines of C++, it became increasingly difficult to maintain clean boundaries between modules (e.g., rendering, physics, AI, and UI). The game was shipping on five platforms, including PC, consoles, and handheld devices, with platform-specific optimizations layered throughout the core engine.
Key Problems:
- Codebase entropy: Layering violations and circular dependencies were emerging, making code harder to test or modify without side effects.
- Lack of visibility: The team lacked clear metrics on code health and had no way to measure architectural decay or complexity trends over time.
- Refactoring paralysis: Senior engineers feared major refactors due to uncertainty around impact and coupling.
- Performance regressions: Hot paths in rendering and physics systems were difficult to isolate from surrounding dependencies.
Despite their strong engineering talent, the team was struggling to evolve the engine sustainably. They needed better architectural observability and tooling to manage technical debt without slowing down production.
The Solution: CppDepend
CppDepend was adopted as a strategic tool to support architectural governance, long-term maintainability, and performance optimizations.
Goals:
- Map and control dependencies between engine modules
- Detect complex and risky code early using code metrics
- Support safe, large-scale refactoring with impact analysis
- Provide real-time feedback to developers in CI
CppDepend stood out because of its interactive code maps, customizable rules, and trend-tracking features, which were particularly useful for internal engines with few formal standards but high architectural expectations.
Implementation Process
Week 1–2: Baseline Assessment
- Initial scan revealed:
- 300+ component-level layering violations
- Dozens of tightly coupled files across unrelated systems
- 140+ methods exceeding 30 lines and cyclomatic complexity of 25+
- A visual dependency matrix was used to identify circular references
Week 3–5: Rule & Dashboard Setup
- Defined rules such as:
- “No UI component should depend on Physics”
- “No cyclic dependencies between AI and Rendering”
- “Highlight all methods with complexity > 20 or fan-out > 10”
- Created developer dashboards with live tech debt indicators
Week 6–10: Refactoring Planning & Monitoring
- Used CppDepend’s “impact analysis” feature to simulate what would break before starting major refactors
- Prioritized cleanup of engine’s core layers with measurable KPIs
- Integrated into GitHub Actions CI flow for every pull request
Results After 3 Months
| Metric | Before CppDepend | After 3 Months |
|---|---|---|
| Architecture rule violations | 310 | 42 |
| Code with high complexity | 140+ methods | 36 |
| Codebase-level circular deps | 23 | 3 |
| CI build failures (quality gates) | 0 | 20+ (then none) |
| Performance regression issues | Weekly | Rare (pre-detected) |
Outcomes & Benefits
- Faster Feature Dev: Cleaner modular boundaries made it easier to build and test new features in isolation.
- Refactor with Confidence: Engineers used CppDepend to safely refactor core engine systems with full knowledge of downstream impact.
- Less Buggy Integrations: Architecture violations that previously slipped into production were now caught during PR reviews.
- Better Onboarding: New hires navigated the engine faster using visual maps and rule explanations.
Why CppDepend?
CppDepend brought clarity and discipline to a fast-moving codebase. While it wasn't used for formal compliance, it delivered immense value by giving the team control over architecture, real-time feedback on technical debt, and the freedom to evolve the engine without fear.
It acted as a “silent architect,” guiding developers toward best practices and modular thinking, without introducing friction.
Conclusion
For this game studio, CppDepend became an essential part of the dev toolkit — especially during crunch cycles when technical decisions had to be made quickly. It not only helped them reduce bugs and regressions, but also gave senior engineers the tools to steer long-term code health across multiple game releases.
