- Run VisualCppDepend.exe for windows or launchVisualCppDepend.sh for Linux.
- Select the option: Create New Project
- Populate the data grid with your projects by using the browse button.
The following projects are managed by CppDepend:
- .vcproj,.vcxproj,.sln: Visual Studio projects.
- .build : The recommended way to analyse C\C++ projects other than VS ones, is to use BuildMonitor to intercept all compilation and link commands.
- .proj,.sl: These kind of files are generated by ProjectMaker, they are useful for two main reasons:
- To refine External symbols, the idea is to create a project with ProjectMaker and add to it include files concerning the external project,
so after analysis, CppDepend will put the symbols concerned in the corresponding external project unstead in the generic External project.
- For not compiled projects like templated libraries, where you can create a project and add all files to be analyzed.
- Click OK.
Click F5 to analyze your projects and code source by CppDepend.Console.exe.
This analysis will take a few seconds to a few minutes depending on the size of the projects.
- Once the analysis done, the result is displayed in the VisualCppDepend.exe UI.
What does the CppDepend report tell me about my code?
This section gives you an idea of the topology of your application.
This section gives you an idea of the size of each project within your
application in terms of code line and others metrics.
This section illustrates the size of your projects, namespaces, types
and methods in terms of code line. You can browse this view
dynamically by clicking the Launch Visual CppDepend on this Project icon
in the CppDepend.Project UI.
Project Abstracness vs. Instability:
This section illustrate the Abstracness/Instability principle explained in the projects metrics section.
This section shows all dependencies between project of your
application in a table.
Project Dependency Diagram:
This section shows all dependencies between projects of your
application in a diagram
Project build order:
This section gives you one of the possible build order for your projects.
If a cycle exists in your projects dependencies graph, this section
will report it.
CQL Queries and Constraints:
This section reports default CQL constraints which have been violated.
More about the CQL language and CQL constraints here.
You can build your own CQL constraints with VisualCppDepend.
This section recaps type metrics in a table. A link to the documentation
is provided for each metric.
How can I master CppDepend Features?
You can begin with theses ScreenCasts,and look at CppDepend analysis for some known C++ projects.
Last Version: 3.1.0
CppDepend accelerate the process of your developement, migration and maintenance.
These Cases Studies shows the utility of CppDepend to have a deep view of your architecture, design and implementation.
CQL language provides more flexibility to request code base, so you can customize your analysis and reports .