# Install clang-include-graph with Homebrew

Simple tool for visualizing and analyzing C/C++ project include graph. Version 0.2.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:clang-include-graph
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install clang-include-graph
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:clang-include-graph
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/clang-include-graph>
- **Version:** 0.2.0
- **Source summary:** Simple tool for visualizing and analyzing C/C++ project include graph
- **Homepage:** <https://github.com/bkryza/clang-include-graph>
- **Repository:** <https://github.com/bkryza/clang-include-graph>
- **Upstream docs:** <https://github.com/bkryza/clang-include-graph#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/bkryza/clang-include-graph/archive/refs/tags/0.2.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- clang-include-graph (cli)
- clang-include-graph (alias)

## Dependencies

- boost
- llvm

## Build dependencies

- cmake
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.2.0
- Local data: ok
- Upstream repository: https://github.com/bkryza/clang-include-graph
- Upstream latest detected: 0.2.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

clang-include-graph is a small Clang-based command-line tool for inspecting C and C++ include relationships and exporting those relationships as textual, JSON, Graphviz, GraphML, or PlantUML output.

### Project history

The public GitHub repository was created in 2022 and the first GitHub release was tagged as 0.1.1 in July 2022. The README positions the project as a simple include-graph analyzer built around LLVM/Clang compilation database inputs.

The project stayed narrow by design: its documented feature set is include-tree printing, reverse trees, topological order, cycle listing, dependant lookup, and graph export rather than a broader static-analysis platform.

### Adoption history

Homebrew packages clang-include-graph from GitHub release archives and ships bottles for macOS and Linux. Homebrew analytics showed 412 installs over the prior 365 days for the formula, indicating niche but real command-line distribution.

### How it is used

The tool expects a compile_commands.json database or compile_flags.txt, then lets users select translation units and choose output formats such as JSON, Graphviz, GraphML, PlantUML, tree views, cycles, or dependency queries.

### Why package nerds care

For package-manager users it is a compact example of a modern LLVM-dependent C++ analysis CLI: the formula tracks tagged GitHub tarballs, depends on boost and llvm, and exists primarily to make source-tree architecture inspection scriptable.

### Timeline

- 2022: GitHub repository created.
- 2022: Initial GitHub release 0.1.1 published.
- 2025: Release 0.2.0 published and packaged by Homebrew as the stable version.

### Related projects

- The project is closely related to clang-uml, another bkryza Clang-based diagramming tool, but clang-include-graph focuses only on include relationships.
- It also relies on the Clang JSON compilation database convention used by CMake, Bear, and other C/C++ build tooling.

### Sources

- <https://github.com/bkryza/clang-include-graph#readme>
- <https://api.github.com/repos/bkryza/clang-include-graph>
- <https://api.github.com/repos/bkryza/clang-include-graph/releases>
- <https://formulae.brew.sh/api/formula/clang-include-graph.json>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** clang-include-graph
- **Version Scheme:** 0
- **Revision:** 2
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [llvm](https://www.automicvault.com/pkg/brew/llvm/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [clang-uml](https://www.automicvault.com/pkg/brew/clang-uml/) - Shares av.db curated category or tags: clang, cli, code-analysis, cpp, developer-tools.
- [include-what-you-use](https://www.automicvault.com/pkg/brew/include-what-you-use/) - Shares av.db curated category or tags: clang, cli, code-analysis, cpp, developer-tools.
- [clangql](https://www.automicvault.com/pkg/brew/clangql/) - Shares av.db curated category or tags: clang, cli, cpp, developer-tools.
- [clazy](https://www.automicvault.com/pkg/brew/clazy/) - Shares av.db curated category or tags: clang, cli, cpp, developer-tools.
- [boost-bcp](https://www.automicvault.com/pkg/brew/boost-bcp/) - Shares av.db curated category or tags: cli, cpp, developer-tools.
- [cabin](https://www.automicvault.com/pkg/brew/cabin/) - Shares av.db curated category or tags: cli, cpp, developer-tools.
- [cargo-llvm-lines](https://www.automicvault.com/pkg/brew/cargo-llvm-lines/) - Shares av.db curated category or tags: cli, code-analysis, developer-tools.
- [castxml](https://www.automicvault.com/pkg/brew/castxml/) - Shares av.db curated category or tags: clang, cli, code-analysis, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/clang-include-graph.yml](https://github.com/automic-vault/db/blob/main/combined/clang-include-graph.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
