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

Code Diff

Reporting Code Diff

Managing Code Changes with Effective Difference Reporting in CppDepend

This document explains how to use the CppDepend build comparison features, in the context of reporting. The document Advanced Code Diff explains how to use the CppDepend build comparison features, in the context of the interactive UI.

CppDepend can report Code Diff in the report. To report Code Diff, there are two steps:

  • First, define the baseline for comparison
  • Second, define the CQLinq queries and rules related to Code Diff

Defining the Baseline

To define the Baseline, go into the CppDepend Project Properties panel in the interactive UI. In the Analysis tab of this panel, there is an option named Baseline for Comparison. The Baseline for Comparison represents the previous code base snapshot. The current code base snapshot will be compared to this previous code base snapshot.

Two different Baselines for Comparison can be defined: one to be used in the interactive UI, one to be used at analysis and reporting time. It is recommended to define the same Baseline for Comparison for both interactive UI and reporting scenarios.

baseline define

CQLinq Queries for Code Diff

After having defined the Baseline for Comparison, have a look at the standard CQLinq groups named:

  • Code Quality Regression
  • API Breaking Changed
  • Code Diff Summary

Here, many CQLinq queries and rules related to code diff are already defined. You can use them straight, or customize them to your needs.

code diff queries

Notice that it is also possible to report only code rules violations that occur on code elements added or refactored since the baseline for comparison. This is explained in the CppDepend report customization documentation.

Was this page helpful?Give feedbackRequest a feature