PricingDownload
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 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

User Guides

Analyze your first project

From an empty start page to a full quality dashboard in five steps. The screenshots follow a real run of CppDepend 2027.1 on the open-source Cppcheck 2.22 code base (about 69,000 lines of C++).

5 min readUser GuidesCppDepend 2027

1. Start from the Start Page

When no project is loaded, CppDepend opens on the Start Page. It gathers the three entry points you need on day one:

CardUse it to
New ProjectCreate a CppDepend project (.cdproj) that points to your sources. This guide follows this path.
Open ProjectReload a project created earlier. Recent projects are also listed below, with their issue count and quality gates; double-click one to open it.
Compare BuildsCompare two analysis results, for example two releases of the same product.

Not ready to analyze your own code yet? Explore a sample project loads a ready-made analysis so you can discover the dashboard and the rules first.

CppDepend Start Page with the New Project, Open Project and Compare Builds cards
The Start Page: create, open or compare, plus the compliance kits on the right.

2. Create the project

Click New Project. The Create New Project dialog asks for a few settings:

FieldWhat to enter
Language / StandardC or C++, and the language standard the parser should assume (C++23 by default).
StructureLogical groups code by namespaces and types; the physical layout follows folders.
Project NameA short name shown in the title bar and in reports, here cppcheck-2.22.
CppDepend Project PathWhere the .cdproj file should be saved. Known issue in 2027.1: the typed path is ignored; the project file and its analysis results are always saved under Documents\CppDepend Projects. Look there if you cannot find your project.
Compliance kit (optional)Pick a safety standard (ISO 26262, DO-178C, IEC 61508...) to apply its rules, level and coverage policy in one go. See Compliance Kits.
Coding standardsTick the rule sets to switch on. MISRA C++ 2023, CERT C++ and CWE are on by default.

The Summary box restates what will be enabled; with the defaults it reads that MISRA C++ 2023, CERT C++ and CWE are switched on, and that nothing is created next to the project file. Click Create the new project.

Create New Project dialog filled in for cppcheck-2.22
The Create New Project dialog, filled in for Cppcheck 2.22.

3. Tell CppDepend what to scan

The new project opens on Projects To Scan. Choose how your code is built:

SourceWhen to use it
VS Project(s)Visual Studio solutions (.sln) or projects (.vcxproj). Include paths, defines and configurations are read from the projects.
CMakeA CMake build (CppDepend uses its compilation database).
Qt Projects, EclipseQt .pro files and Eclipse CDT projects.
Source FolderAny folder of sources, when there is no build description.
Project Maker, Build MonitorDescribe a project by hand, or record the compiler calls of any build system.

For Cppcheck we click VS Project(s), then Choose Solution or Project... and select cppcheck.sln. CppDepend lists the projects of the solution; untick the ones you do not want (here the testrunner test project) and click Ok. Select All and Unselect All tick or untick every project at once; Cancel closes the dialog without changing the project.

Cppcheck 2.22 has three projects: cli\cli.vcxproj (the command line), lib\cppcheck.vcxproj (the analysis engine) and test\testrunner.vcxproj (the unit tests). Only the first two are analyzed here. Note: in 2027.1 the list drops the first underscore of each path (CppDependwin_x64_2027.1 instead of CppDepend_win_x64_2027.1); the real path is used for the analysis.

Visual Studio Projects dialog listing cli, cppcheck and testrunner projects, testrunner unticked
The projects of cppcheck.sln: testrunner is unticked.

Back on Projects To Scan (also reachable later from Settings > Code To Analyze), the solution is listed with its folder and its build configuration (Debug|x64, chosen in the drop-down). Edit reopens the project selection, Remove takes the solution out of the project. Below, Include Paths adds include folders that are not found in the projects, and Excluded Projects And Paths leaves out projects, folders, files or paths matching a regular expression. The top bar holds Upload to server when done, Run incremental analysis and Run full analysis.

Projects To Scan page with cppcheck.sln in Debug|x64
The project is ready: one solution to scan, in Debug|x64.

4. Run the analysis

Click Run full analysis. The Analysis Logs panel shows the progress: CppDepend parses every source file with Clang, builds the code model, computes the metrics and runs the rules. On Cppcheck (two projects, about 69,000 lines) the full run took about nine minutes on a 4-core machine.

Later runs can use Run incremental analysis, which re-parses only what changed. Switch on Upload to server when done to publish each result to CppDepend Server for your team.

5. Read the Quality Dashboard

When the analysis ends, the Quality Dashboard opens. Each tile is a door to a detailed view:

TileWhat it tells you (Cppcheck 2.22)
Project Info / BaselineWhich result you are looking at (cppcheck-2.22, analyzed by CppDepend v2027.1.0.17), and the baseline it is compared with. Pick another baseline (4h, 8h, 1d... 90d, or define) or click Code Diff to see what changed. After a first analysis there is no older result: the baseline is the analysis itself (the default setting, in Settings > General, is 30 days), so every tile shows a no diff badge.
LOC69,282 lines of code (estimated development effort 1,410 days) in 2 projects, 46 namespaces, 460 types, 4,858 methods, 1,705 fields and 972 third-party elements. Shortcuts open Smart Code City, Treemap, Code Insight and Code Quest.
Technical DebtThe debt rating (A to E) and the effort to reach the next rating: Cppcheck is rated E, and 491 days of work would bring it to D. Debt Hotspots lists where to start, Issues lists the violations, and How to fix using AI and CppDepend? explains the AI-assisted workflow.
Comment / ComplexityComment ratio (14.45%, 11,699 lines of comments) and cyclomatic complexity: maximum 452, average 7.22 per method.
IssuesAll rule violations (51,711), split by severity (critical, high...).
Quality GatesThe pass/fail checks that decide if a build is good enough to ship: 66.7% pass (3 fail, 1 warn, 8 pass out of 12). Configure opens their settings.

The badges in the top bar (51,711 issues, 3 failed, 1 warned and 8 passed quality gates) stay visible on every page. If a CppDepend Server is configured but not running, a band at the top of the dashboard says that the server cannot be reached, with a Retry button; it does not affect local analysis.

Quality Dashboard of cppcheck-2.22 with LOC, technical debt, issues and quality gates
The Quality Dashboard after the first analysis of Cppcheck 2.22.

Where to go next

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