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 Query

CQLinq: Query Your Code Like a Database

Write LINQ Queries to Explore, Analyze, and Enforce Code Quality

CppDepend revolutionizes code analysis with its integration of Linq, a feature that allows querying the code base using LINQ queries. For instance, the following Linq query identifies all public methods exceeding 30 lines of code.

cqlinq query example

When creating a new CppDepend project, you receive 120 default queries and rules, which are easily customizable to suit your requirements.

Writing Linq queries and constraints is straightforward both because it is C# LINQ syntax and because CppDepend provides a Linq editor which supports:

  • ✓Code completion / intellisense
  • ✓Live compile error description
  • ✓Integrated tooltip documentation
cqlinq query editor

Also, once the query is compiled, it gets executed immediately and its result is well displayed and browsable:

cqlinq query result

Powerful and elaborated queries and rules can be written with Linq, like the following one for example:

cqlinq elaborated query

Query Examples

Short Linq queries can be written (or even generated) to get some immediate answers to questions about a code base:

Is the code layered correctly?

short cqlinq query

Which methods have been refactored since the last release?

browse source code with linq

Which classes inherit from a particular class?

browse for classes with linq

What are the 10 most complex methods?

browse for most complex methods with linq

Which methods assign a particular field?

browse for methods with linq

Which complex method is not enough commented?

browse for not commented methods with linq

Code Rules

You can also be warned automatically when a Linq query returns a certain result. Such a Linq code query is actually a code rule such as:

I don't want that my User Interface layer to depend directly on the DataBase layer:

be warned when a linq query returns a result

Methods out of MyProject1 and MyProject2 should not have more than 30 lines of code:

methods should not have more than a specific lines of code warning

Static fields should not be named m_XXX (Custom naming conventions):

Custom naming conventions

Public methods should not be removed to avoid API breaking changes:

Public methods should not be removed to avoid API breaking changes

Related Link: Linq Performance.