To get a trial key
fill out the form below
Team License (standard version)
Enterprise License (extended version)
* By clicking this button you agree to our Privacy Policy statement

** This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
GBP
RUB
* By clicking this button you agree to our Privacy Policy statement

** This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Message submitted.

Your message has been sent. We will email you at


If you haven't received our response, please do the following:
check your Spam/Junk folder and click the "Not Spam" button for our message.
This way, you won't miss messages from our team in the future.

>
>
Interview with Issam Lahlali, one of th…

Interview with Issam Lahlali, one of the CppDepend tool creators

June 6, 2010
Author:

The article presents answers to the questions asked to Issam Lahlali that concern the developer tool CppDepend.

Introduction

In this article, you will read an interview with one of the developers of the CppDepend tool for analyzing software product structure.

The questions are asked by (the questions are in bold):

Andrey Nikolaevich Karpov. One of the founders of the "Program Verification Systems" company. Participates in development of the PVS-Studio package intended for detecting defects in application source code.

The questions are answered by:

Issam Lahlali. One of the developers of the CppDepend and VBDepend packages.

Questions and answers

Tell us more about yourself and CppDepend please. How did the product evolve?

I'm Issam Lahlali, MCSD and MCSD.NET certified, I worked with several software editors in rance, my last job was in Sophis as software architect. Two years ago, I had the oportunity to meet Patrick Smacchia, the developer of NDepend, and he convinced me to work in partnership with his company to develop CppDepend and VBDepend.

What's CppDepend?

CppDepend is a tool for C++ developers and architects. Code bases are very complex things and CppDepend is a tool that helps get information from the source code.

For example, with CppDepend, knowing if your code base is correctly layered, knowing what has changed since the last release or assessing the code quality represent some immediate tasks that might take hours or days with traditional tools.

How would you compare CppDepend with other popular tools?

CppDepend complements other static analysis tools, it focus more on architecture and design rather than implementation like other tools. With CppDepend, we have a deep view of coupling, cohesion, abstractness, instability and so on.

How does one get started using CppDepend? What is the recommended path?

First, download CppDepend and analyze your code base. Once the analysis done, the VisualCppDepend UI displays several panels to browse analysis results.

At this point, the user needs to choose if he wants to browse dependencies, browse metrics, query the code base with the CQL language, compare 2 analyses etc... More or less, each feature has its dedicated panel.

There is also an embedded help section that contains some 'Getting Started' explanations. Some screencasts are also linked. They explain how to achieve each particular task.

Finally, our website contains advanced documentation such as the complete CQL specifications.

What do you consider to be the most powerful or best feature of CppDepend? And why?

Personally I use the matrix every day to browse dependencies and make sure the architecture remains clean.

I am also addict to the comparison feature. I often use it to review code that is changing. I really believe that the devil lies in changes. CQL is also very useful to query the code base, it adds more flexibility to CppDepend.

How does CppDepend fit in the Software Development Process? What is CQL and how does it relate to the product?

CppDepend is all about understanding and controlling what really happens in your development shop. The idea is to fetch relevant information from the code itself.

The tool has 2 sides: The Visual side where the VisualCppDepend UI lets you analyze live your code base, with graph, matrix, metrics panel. These visual panels with dependency graph, matrix and metric treemap, help a lot churning the code.

VisualCppDepend comes also with Code Query Language CQL. CQL is really at the heart of the product. CQL is to your code what SQL is to your data.

You can ask, for example, which method has more than 30 lines of code by writing the CQL query:

SELECT METHODS WHERE NbLinesOfCode > 30

And if you want to be warned of such big methods, you can transform this CQL query into a CQL rule this way:

WARN IF Count > 0 IN SELECT METHODS WHERE NbLinesOfCode > 30

CQL covers a wide range of possibilities, from 60 code metrics to dependencies, encapsulation, mutability, code changes/diff/evolution.

For example, asking for methods that have been changed recently is as easy as writing:

SELECT METHODS WHERE CodeWasChanged

CppDepend comes with more than 100 rules by default and you can modify existing rules and add new rules at whim to fit your needs.

The other side of CppDepend is its integration into the Continuous Integration/Build server process. The idea is to get a daily and highly customized HTML report where you can see at a glance if some CQL rules have been violated and to get also some metrics about quality or structuring. This is how one can master what is really happening in one's development shop.

What technologies did you use to develop CppDepend? (Languages, libraries, parsers)

For parser we adapt doxygen parser to our needs. doxygen is open source, so our modified parser named CppDependency is also open source, and is available from SourceForge website. CQL engine and UI are developed with DotNet technology.

Does CppDepend work on Linux and Mac?

We used DotNet technology, so it works only on Windows machine. We plan to adapt our software to work with Mono. But with CppDepend we can analyze any C++ project - the drawback of analyzing C++ project existing in Linux or Mac machine is that we have to copy the source code to Windows machine.

References

Popular related articles
The Evil within the Comparison Functions

Date: 05.19.2017

Author: Andrey Karpov

Perhaps, readers remember my article titled "Last line effect". It describes a pattern I've once noticed: in most cases programmers make an error in the last line of similar text blocks. Now I want t…
The Last Line Effect

Date: 05.31.2014

Author: Andrey Karpov

I have studied many errors caused by the use of the Copy-Paste method, and can assure you that programmers most often tend to make mistakes in the last fragment of a homogeneous code block. I have ne…
Appreciate Static Code Analysis!

Date: 10.16.2017

Author: Andrey Karpov

I am really astonished by the capabilities of static code analysis even though I am one of the developers of PVS-Studio analyzer myself. The tool surprised me the other day as it turned out to be sma…
PVS-Studio for Java

Date: 01.17.2019

Author: Andrey Karpov

In the seventh version of the PVS-Studio static analyzer, we added support of the Java language. It's time for a brief story of how we've started making support of the Java language, how far we've co…
How PVS-Studio Proved to Be More Attentive Than Three and a Half Programmers

Date: 10.22.2018

Author: Andrey Karpov

Just like other static analyzers, PVS-Studio often produces false positives. What you are about to read is a short story where I'll tell you how PVS-Studio proved, just one more time, to be more atte…
The Ultimate Question of Programming, Refactoring, and Everything

Date: 04.14.2016

Author: Andrey Karpov

Yes, you've guessed correctly - the answer is "42". In this article you will find 42 recommendations about coding in C++ that can help a programmer avoid a lot of errors, save time and effort. The au…
PVS-Studio ROI

Date: 01.30.2019

Author: Andrey Karpov

Occasionally, we're asked a question, what monetary value the company will receive from using PVS-Studio. We decided to draw up a response in the form of an article and provide tables, which will sho…
Static analysis as part of the development process in Unreal Engine

Date: 06.27.2017

Author: Andrey Karpov

Unreal Engine continues to develop as new code is added and previously written code is changed. What is the inevitable consequence of ongoing development in a project? The emergence of new bugs in th…
Characteristics of PVS-Studio Analyzer by the Example of EFL Core Libraries, 10-15% of False Positives

Date: 07.31.2017

Author: Andrey Karpov

After I wrote quite a big article about the analysis of the Tizen OS code, I received a large number of questions concerning the percentage of false positives and the density of errors (how many erro…
The way static analyzers fight against false positives, and why they do it

Date: 03.20.2017

Author: Andrey Karpov

In my previous article I wrote that I don't like the approach of evaluating the efficiency of static analyzers with the help of synthetic tests. In that article, I give the example of a code fragment…

Comments (0)

Next comments

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
This website uses cookies and other technology to provide you a more personalized experience. By continuing the view of our web-pages you accept the terms of using these files. If you don't want your personal data to be processed, please, leave this site.
Learn More →
Accept