Skip to content

Latest commit

 

History

History
137 lines (88 loc) · 3.81 KB

File metadata and controls

137 lines (88 loc) · 3.81 KB

🚀 Getting Started with CppDepend on Windows

CppDepend is a powerful tool to analyze, improve, and maintain your C and C++ codebases. This guide walks you through setting it up on Windows, including Visual Studio integration, your first analysis, and understanding the results.


📥 Download and Install CppDepend

  1. Download: CppDepend Download
  2. Unzip it in a folder outside of Program Files (e.g., C:\CppDepend)
  3. Launch VisualCppDepend.exe

⚠️ Avoid installing in Program Files due to Windows permission issues.


🎞️ 3-Minute Getting Started Video

📺 Watch the video on YouTube


🔍 Analyze Your C/C++ Code

Step 1 — Launch and Create a Project

Launch VisualCppDepend.exe and create a new project:

New CppDepend Project

Step 2 — Choose Codebase View Structure

You can structure your view by:

  • Logical structure (by namespaces):

    Logical Structure
  • Physical structure (by folders/files):

    Physical Structure

Step 3 — Add Your Projects

CppDepend supports:

  • .sln, .vcxproj (Visual Studio)
  • QtCreator projects
  • compile_commands.json (CMake/Ninja)
  • Custom builds via BuildMonitor
  • Manual setup via ProjectMaker
Add Projects

Step 4 — Run the Analysis

Press F5 to start the analysis.

You’ll get an interactive dashboard with detailed metrics, graphs, and navigation tools.

Analysis Dashboard

🔌 Install the Visual Studio Add-in

Run the following installer:

CppDepend.VisualStudioExtension.Installer.exe

Or use the in-app installer via VisualCppDepend.exe.

Then:

  • Open Visual Studio
  • Attach the CppDepend project to your .sln
  • Launch analysis and view results inside Visual Studio

🧾 What You Learn from the Report

CppDepend provides insights such as:

  • 🔢 Code and project-level metrics
  • 🧠 Interactive dependency and architecture graphs
  • 🔄 Build order and cycle detection
  • 📉 Abstractness vs. Instability visualization
  • ❌ Rule violations (CQLinq)
  • 📈 Maintainability trends and quality evolution

⚙️ Go Further with Full Control

  • Customize rules using CQLinq
  • Configure quality gates
  • Filter metrics and tailor dashboards
  • Understand how metrics relate to maintainability

📚 Additional Resources


🎯 Start Now