🍺 BREW Explorer

← all formulae

clang-include-graph

brew install clang-include-graph v0.2.0_2 Apache-2.0

Simple tool for visualizing and analyzing C/C++ project include graph

20
30-day installs · #6768
91
90-day · #5814
413
365-day · #5546
116
★ GitHub stars · updated 6mo ago

Runtime dependencies

Build dependencies

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "cmake",
    "pkgconf"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "boost",
    "llvm"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Simple tool for visualizing and analyzing C/C++ project include graph",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:24+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "clang-include-graph",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-02-03T23:02:46Z",
  "github_readme_excerpt": "# clang-include-graph - simple tool for analyzing C++ include graphs\n\n[![Build status](https://github.com/bkryza/clang-include-graph/actions/workflows/build.yml/badge.svg)](https://github.com/bkryza/clang-include-graph/actions)\n[![Build status](https://github.com/bkryza/clang-include-graph/actions/workflows/macos.yml/badge.svg)](https://github.com/bkryza/clang-include-graph/actions)\n[![Version](https://img.shields.io/badge/version-0.2.0-blue)](https://github.com/bkryza/clang-include-graph/releases)\n[![Version](https://img.shields.io/badge/LLVM-12..20-orange)](https://github.com/bkryza/clang-include-graph/releases)\n\n`clang-include-graph` provides several simple commands for analyzing and visualizing C++ project include graphs.\n\nMain features include:\n* Generating include graph in several formats:\n  * Graphviz\n  * PlantUML\n  * GraphML\n  * JSON\n* Topologically ordered include list\n* Printing include tree and reverse include tree\n* Printing include graph cycles list\n* Listing of all dependants of specified header file\n\n## Installation\n\nSee [INSTALLATION](./INSTALLATION.md).\n\n## Usage\n### Generating compile commands database\n`clang-include-graph` requires an up-to-date\n[compile_commands.json](https://clang.llvm.org/docs/JSONCompilationDatabase.html)\nfile, containing the list of commands used for compiling the source code\nor alternatively a list of compilation flags in a file called\n`compile_flags.txt`\n(see [here](https://clang.llvm.org/docs/JSONCompilationDatabase.html#alternatives)).\n\nSee also [here](https://blog.bkryza.com/posts/compile-commands-json-gallery/)\nfor instructions on how to generate `compile_commands.json` using some of the\nexisting C++ build systems.\n\n### Basic usage\n\n`clang-include-graph` provides the following command line options:\n\n```\n\u276f release/clang-include-graph -h\nclang-include-graph options:\n  -h [ --help ]                         Print help message and exit\n  -V [ --version ]                      Print program version and exit\n  -v [ --verbose ] ",
  "github_repo": "bkryza/clang-include-graph",
  "github_stars": 116,
  "github_topics": [],
  "homepage": "https://github.com/bkryza/clang-include-graph",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 20,
  "installs_365d": 413,
  "installs_90d": 91,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "clang-include-graph",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 6768,
  "rank_365d": 5546,
  "rank_90d": 5814,
  "raw_hash": "d322c79ce2711942",
  "recommended_dependencies": [],
  "revision": 2,
  "ruby_source_path": "Formula/c/clang-include-graph.rb",
  "tap": "homebrew/core",
  "test_dependencies": [
    "cmake"
  ],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "0.2.0",
  "versioned_formulae": [],
  "why_use_this": null
}