CppDepend revolutionizes code analysis with its integration of CQLinq, a feature that allows querying the code base using LINQ queries. For instance, the following CQLinq query identifies all public methods exceeding 30 lines of code.
When creating a new CppDepend project, you receive 120 default queries and rules, which are easily customizable to suit your requirements.
Writing CQLinq queries and constraints is straightforward both because it is C# LINQ syntax and because CppDepend provides a CQLinq editor which supports:
Also, once the query is compiled, it gets executed immediately and its result is well displayed and browsable:
Powerful and elaborated queries and rules can be written with CQLinq, like the following one for example:
Short CQLinq queries can be written (or even generated) to get some immediate answers to questions about a code base:
You can also be warned automatically when a CQLinq query returns a certain result. Such a CQLinq code query is actually a code rule such as: