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
Missing a feature?With a Team license, we build it for free, in one week to one month.Request it →

Code Quality

Discover Diverse Code Metrics with CppDepend

80+ Code Metrics for Comprehensive Analysis

Evaluating a code base involves various approaches, with the most common one being the measurement of lines of code. This metric offers a rough estimate of the development effort put into the code base while identifying bloated methods and classes to achieve a quality level agreement.

CppDepend goes beyond just counting lines of code by offering more than 80 diverse code metrics. These metrics cover aspects such as code organization (e.g., the number of classes or namespaces, methods declared within a class), code quality (e.g., complexity, comment percentage, parameter count, class cohesion), and code structure (e.g., most-used types, inheritance depth). By harnessing the power of CppDepend, developers can gain invaluable insights into their code base, paving the way for improved overall code quality.

Metrics on Application (8 metrics)

NbLinesOfCode, NbLinesOfComment, PercentageComment, NbProjects, NbNamespaces, NbTypes, NbMethods, NbFields

Metrics on Projects (14 metrics)

NbLinesOfCode, NbLinesOfComment, PercentageComment, NbNamespaces, NbTypes, NbMethods, NbFields, Assembly level, Afferent coupling (Ca), Efferent coupling (Ce), Relational Cohesion (H), Instability (I), Abstractness (A), Distance from main sequence (D)

Metrics on Namespaces (9 metrics)

NbLinesOfCode, NbLinesOfComment, PercentageComment, NbTypes, NbMethods, NbFields, Project level, Afferent coupling at namespace level (NamespaceCa), Efferent coupling at namespace level (NamespaceCe)

Metrics on Types (16 metrics)

NbLinesOfCode, NbLinesOfComment, PercentageComment, NbMethods, NbFields, Type level, Type rank, Afferent coupling at type level (TypeCa), Efferent coupling at type level (TypeCe), Lack of Cohesion Of Methods (LCOM), LCOM HS, Code Source Cyclomatic Complexity, Size of instance, Association Between Class (ABC), Number of Children (NOC), Depth of Inheritance Tree (DIT)

Metrics on Methods (11 metrics)

NbLinesOfCode, NbLinesOfComment, PercentageComment, Method level, Method rank, Afferent coupling at method level (MethodCa), Efferent coupling at method level (MethodCe), Code Source Cyclomatic Complexity, NbParameters, NbVariables, NbOverloads

Metrics on Fields (2 metrics)

Size of instance, Afferent coupling at field level (FieldCa)

Halstead Metrics (11 metrics)

Total Operators, Total Operands, Distinct Operators, Distinct Operands, Halstead Program Length, Halstead Program Volume, Halstead Program Level, Halstead Program Difficulty, Halstead Programming Effort, Halstead Programming Time, Halstead Intelligent Content

Code Metrics Details: View Full Code Metrics Documentation