Code Query – Explore and Analyze Your Codebase

Code Quest: Ask Questions to Your Codebase

Large codebases contain a wealth of information, but extracting the right insight at the right time can be challenging. Code Query allows developers to quickly query the codebase and get precise, actionable answers.

Whether you are exploring architecture, hunting for problem areas, or preparing a refactoring, Code Query turns static analysis data into a powerful exploration tool.


quality insights

Query the Codebase in Seconds

Code Query lets developers express questions directly against the analyzed code model. Queries can target types, methods, namespaces, dependencies, metrics, and rules.

  • Find code elements matching specific criteria
  • Combine structural rules with metric thresholds
  • Instantly navigate from results to source and insights

Metrics on Query Results

Query results are not just lists of elements. Code Query computes aggregated and per-element metrics on the returned set.

  • Size, complexity, and maintainability metrics
  • Issue counts and severity distribution
  • Technical debt estimation for the result set

This allows teams to quantify the impact of a problem area or measure progress over time.

Filter Results by Scope

Code Query supports scope-based filtering to focus on what matters.

  • Restrict results to a specific project, assembly, or namespace
  • Compare different scopes within the same codebase
  • Exclude generated or third-party code

Scoped queries help keep results relevant and actionable.

Multiple Export Formats

Code Query results can be exported in several formats, making them easy to share, automate, or visualize.

  • Text – For quick reviews and reports
  • XML – For integration with external tools and pipelines
  • CSV – For analysis in spreadsheets and dashboards
  • Call Graph – To visualize runtime relationships
  • Code Map – To explore structure and size visually

This flexibility makes Code Query a natural fit for both interactive analysis and automated quality checks.

From Questions to Insight

Code Query bridges the gap between raw analysis data and real-world questions. Developers can quickly explore hypotheses, validate assumptions, and identify hotspots without leaving their workflow.

By combining expressive queries, rich metrics, scoping, and powerful exports, Code Query transforms static analysis into an interactive exploration engine.

CppDepend offers a wide range of features. It is often described as a Swiss Army Knife for C and C++ developers.

Start Free Trial