Cppdepend

Uses your system voice; voice and rate in settings.

Snapshot

≈ 2 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

CppDepend is a static analysis tool for C/C++ code. This tool supports a large number of code metrics, allows for visualization of dependencies using directed graphs and dependency matrix. The tools also performs code base snapshots comparison, and validation of architectural and quality rules. User-defined rules can be written using LINQ queries. This possibility is named CQLinq. The tool also comes with a large number of predefined CQLinq code rules.

Features

edit edit source

The main features of CppDepend are:

  • Support for Coding Standards: Misra C++, Misra C, Cert C, Cert C++, CWE, Autosar
  • Support for C++23, C++20, C++17
  • Declarative code rule over LINQ query (CQLinq)
  • Dependency Visualization (using dependency graphs, and dependency matrix)
  • Software metrics (CppDepend currently supports 82 code metrics: Cyclomatic complexity; Afferent and Efferent Coupling; Relational Cohesion; Percentage of code covered by tests, etc.)
  • CppDepend can tell you what has been changed between 2 builds

New features in v2026.1

  • Smart Code City
  • Intellij Idea, VSCode and Eclipse Support
  • Java Support

Code Rule through LINQ Query (CQLinq)

edit edit source

The tool proposes live code query and code rule through LINQ query. This is one of the innovations of CppDepend. For example:

- Classes inherit from a particular class:

// <Name>classes inherit from a particular class</Name> from t in Types where t.IsClass && t.DeriveFrom ("CBase") select t

- The 10 most complex methods (Source Code Cyclomatic complexity)

// <Name>The 10 most complex methods</Name> (from m in Methods orderby m.CyclomaticComplexity select new { m, m.CyclomaticComplexity }).Take(10)

In addition, the tool proposes a live CQLinq query editor with code completion and embedded documentation.

See also

edit edit source

References

edit edit source
  1. ^ "CppDepend - Release Notes". cppdepend.com. Retrieved 2025-02-03.
edit edit source

Text derived from https://en.wikipedia.org/w/index.php?oldid=1359711375 under CC BY-SA 4.0; modifications have been made.