Cppdepend

Last updated
CppDepend
Developer(s) CppDepend
Stable release
2025.1.0 / March 3, 2025;2 months ago (2025-03-03) [1]
Operating system Multiplatform
Type Software quality
License Commercial Proprietary
Website www.cppdepend.com

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.

Contents

Features

The main features of CppDepend are:

New features in v2025.1

Code Rule through LINQ Query (CQLinq)

CQLinq editor and query result displayed CQLinq Editor Overview.png
CQLinq editor and query result displayed

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

References

  1. "CppDepend - Release Notes". cppdepend.com. Retrieved 2025-03-03.