Request a PoCDownload
Product

Platform

All features32 capabilities, from IDE to CICompliance KitsISO 26262, DO-178C, IEC 62304...AI GovernanceControl AI-generated C/C++ codeWhat’s new in 2026Latest version highlightsScreenshotsSee the product in action

Analyze & improve

Coding standardsMISRA, CERT, CWE, AUTOSARArchitecture & dependenciesGraphs, matrix, cyclesTechnical debtMeasured in hours and dollarsQuality gatesStop regressions in CISmart Code CityYour codebase in 3D

Integrations

IDE pluginsVisual Studio, VS Code, CLion...CI/CD pipelinesJenkins, Azure DevOps, GitHub, GitLabSonarQube pluginC/C++ results in SonarQubeExternal analyzersClang-Tidy, Cppcheck, coverageFeature on Demand
Solutions

By need

Functional safetyCompliance kits per standardCoding standardsMISRA, CERT, AUTOSAR, ISO...Legacy modernizationRefactor large C/C++ safelyCode auditExpert review of your codebaseM&A due diligenceAssess technical health fast

By role

DevelopersSoftware architectsTech leadsDevOps engineersEngineering managersProject managers

CTOsCIOs / IT leadersQA engineersSecurity leadersComplianceConsultantsRequest a guided PoC
Industries

Safety-critical

AutomotiveISO 26262, MISRA, AUTOSARAerospace & DefenseDO-178C programsMedical DevicesIEC 62304 softwareEnergy & UtilitiesIEC 61508 systemsEmbedded SystemsFirmware and devices

Enterprise

Financial ServicesTrading and paymentsGame DevelopmentEngines and large C++Software VendorsCommercial C/C++ productsGovernmentAgencies and contractorsAll industries & case studies
Resources

Learn

DocumentationGuides, rules and CI setupKnowledge baseFrequently asked questionsBlogC and C++ code quality articlesRelease notesEvery version since 2009

Customers

Case studiesSuccess storiesTestimonialsWhat users sayOur customersCompanies using CppDependGold Code QualityOpen source projects we rate

Programs & company

Feature on DemandMissing features built for freeFree for open sourceLicenses for OSS and studentsContact usSales and supportEULALicense agreement
DocsPricing
Documentation

Guides

CppDepend Guide: Analyzing Game Engines via .sln or compile_commands.json

Workflow Overview

When working with modern C++ game engines like Unreal Engine, CryEngine, Godot, or proprietary studio engines, CppDepend requires a complete view of source files, include directories, preprocessor definitions, and compiler flags.

You can feed your codebase into CppDepend using two main workflows:

  • Visual Studio Solution (.sln): the quickest option when your engine setup generates standard Visual Studio projects.
  • JSON Compilation Database (compile_commands.json): the most accurate option for CMake-based engines and custom build systems like UnrealBuildTool (UBT).

Method 1: Analyzing via Visual Studio Solution (.sln)

If your game engine setup or custom build script generates a .sln and associated .vcxproj files (e.g., standard Unreal/CryEngine generated solutions), CppDepend can parse them directly.

Steps:

  • 1.Launch CppDepend.
  • 2.Click Create a new CppDepend Project.
  • 3.Under Analysis Inputs, click Add Visual Studio Projects.
  • 4.Select Visual Studio Solution (.sln) or Projects (.vcxproj).
  • 5.Select the target Build Configuration (e.g., Development_Editor | x64 or DebugGame | Win64).

Configure Scope & Filters

Game Modules Only: to analyze only your gameplay code and bypass third-party libraries, go to Filters / Exclude Files and add exclusions (e.g., *\Engine\Source\ThirdParty\* or *\SDKs\*).

Method 2: Analyzing via JSON Compilation Database (compile_commands.json)

For engines built with CMake (like CryEngine or Godot C++ modules) or custom build setups like UnrealBuildTool, exporting a JSON compilation database provides 100% flag precision.

Step 1: Generate the compile_commands.json File

A. For CMake-based Engines (CryEngine V, O3DE, Godot C++):

Run CMake with the export flag enabled:

cmake -B build -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

This generates compile_commands.json inside your build/ directory.

B. For Unreal Engine:

Refer to the dedicated guide: How to Analyze an Unreal Engine Project with CppDepend.

Step 2: Import into CppDepend

  • 1.Open CppDepend.
  • 2.Create a new project and under Analysis Inputs, select Import CMake / Clang JSON Compilation Database (compile_commands.json).
  • 3.Browse to and select the generated compile_commands.json file.

Step 3: Run Analysis & Inspect Engine Architecture

Click Run Analysis (F5).

CppDepend reads the input configurations, parses the AST, calculates metrics, and builds the code model. You can then inspect the engine architecture with the dependency graph, the dependency matrix and the interactive dashboard.

ApproachBest Used ForKey Advantage
Visual Studio (.sln)Native MSVC projects, standard Visual Studio setups, engine sln files.Plug-and-play setup directly inside the IDE or standalone tool.
JSON (compile_commands.json)CMake builds, Unreal Engine (UBT), cross-platform setups, Ninja/Clang toolchains.Exact compiler state capture; highly accurate across custom build systems.
Was this page helpful?Give feedbackRequest a feature