PricingDownload
Product

Platform

All features44 capabilities, from IDE to CICompliance KitsISO 26262, DO-178C, IEC 62304...AI GovernanceControl AI-generated C/C++ codeWhat’s new in 2027Latest 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
Docs
Documentation

Analysis & Report

Analysis Inputs

2 min readAnalysis & ReportCppDepend 2027

How to analyze your C/C++ Project with CppDepend

Numerous build systems for managing C/C++ projects exist, such as Makefile, CMake, SCon, and Visual Studio. CppDepend requires comprehensive information about compilation and linking commands to conduct its analysis. CppDepend utilizes Clang for parsing source files, and it requires the following inputs for code analysis:

  • Source files.
  • Include paths.
  • Defines.
  • Forced includes.

The emphasis is on creating a comprehensive compilation database, which allows for in-depth analysis of the project's structure, dependencies, and other critical aspects.

C Projects

For C projects, creating a CMake compilation database is recommended.

If this is not feasible with your build system, our project maker tool can be employed to determine project sources and include paths.

Alternatively, Build Monitor on Windows or Bear on Linux can be used to capture compilation commands.

Visual Studio Projects

CppDepend supports Visual Studio projects from 2010 to 2022, accommodating files with extensions like .sln, .vcproj, and .vcxproj.

CMake JSON Compilation Database

A compilation database acts as a central storage for compilation configurations, documenting the precise settings used during the compilation of a project's files.

This database can be created using tools such as CMake or Ninja, along with several other techniques for generating a compilation database as described here.

Qt Projects

For Qt projects, the preferred analysis method is to generate a CMake compilation database directly via the QtCreator IDE.

CLion Projects

Analyzing CLion projects is most effective when the compilation database is produced according to the specified method.

Source Folders

Our project maker tool allows you to define source folders and files, as well as set include paths.

Eclipse Projects

Effective Eclipse project analysis requires a compilation database, ideally created with Bear for Linux or Build Monitor for Windows.

In cases where build specifications are unattainable, our project maker tool can be utilized to define project sources and include paths.

SCon

For SCon projects, we recommend creating a compilation database by following the provided instructions.

Ninja

Generating a compilation database for Ninja projects is advised, as detailed in the specified method.

Makefile

Creating a compilation database with Bear on Linux or Build Monitor on Windows is suggested for Makefile projects.

If building a specification is not possible, our project maker tool can be used to outline project sources and include paths.

Unreal Engine Projects

For Unreal Engine projects, CppDepend integrates directly with your project files to give you deep insight into the engine and game code structure — dependencies, complexity, technical debt and rule violations.

See the dedicated guide: How to analyze an Unreal Engine project with CppDepend.

Other projects

For any C/C++ project, the ideal approach is to create a compilation database as detailed.

If this is not achievable, our project maker tool can be used to specify project sources and include paths.

Alternatively, Build Monitor on Windows or Bear on Linux can intercept compilation commands.

Was this page helpful?
Evaluating CppDepend on a production codebase?Get a guided proof of concept with our static analysis architects.
Request a PoC