macOS
brew install include-what-you-uselocal Homebrew formula metadata
sudo port install include-what-you-useMacPorts ports tree · devel/include-what-you-use/Portfile · Quelle: api.github.com
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für include-what-you-use in AI-Agent-Workflows.
Installation
brew install include-what-you-uselocal Homebrew formula metadata
sudo port install include-what-you-useMacPorts ports tree · devel/include-what-you-use/Portfile · Quelle: api.github.com
sudo apk add include-what-you-useAlpine Linux edge package indexes · include-what-you-use · Quelle: dl-cdn.alpinelinux.org
nix profile install nixpkgs#include-what-you-usenixpkgs package indexes · include-what-you-use · Quelle: raw.githubusercontent.com
sudo zypper install include-what-you-useopenSUSE Tumbleweed package metadata · include-what-you-use · Quelle: download.opensuse.org
sudo dnf install iwyuFedora Rawhide package metadata · iwyu · Quelle: dl.fedoraproject.org
Überblick
Tool to analyze #includes in C and C++ source files
Verlauf
Include What You Use, often abbreviated IWYU, is a Clang-based C and C++ include analyzer. It tells developers which headers a source file should include directly and which includes can be removed or replaced with forward declarations.
The project site announced a very-alpha 0.1 release in February 2011 and described an open-source release-early approach after Google-internal origins. Early releases tracked specific LLVM and Clang versions because IWYU depends heavily on Clang internals.
The release notes show a steady pattern: each IWYU release follows an LLVM/Clang line, updates mappings, and improves analysis of C, C++, templates, standard-library headers, and platform-specific headers. Version 0.5 in December 2015 marked migration to GitHub, updated documentation, improved testing infrastructure, and added Boost and Qt mappings.
IWYU spread through C++ build culture because include hygiene directly affects compile time, rebuild fan-out, and refactoring safety. The official documentation explicitly frames the tool around large codebases, where transitive includes make it hard to remove dependencies safely.
Package-manager metadata in this batch lists Homebrew, Alpine, Fedora, MacPorts, Nix, and openSUSE packaging. That is a good fit for a compiler-adjacent developer tool: users install a binary matching their Clang generation and wire it into compilation databases, CMake workflows, CI, or local cleanup scripts.
IWYU is usually run against source files with the same compilation information used by Clang. The companion iwyu_tool.py works with compilation databases, and fix_includes.py can apply suggested include edits.
Its output is used during dependency cleanup, code-review preparation, CI checks, and large refactors where accidental reliance on another file's transitive include would otherwise hide missing direct dependencies.
For package nerds, IWYU is significant because it turns a style rule into a compiler-backed CLI. It also illustrates a packaging challenge common to LLVM ecosystem tools: the useful binary has to stay aligned with Clang internals and therefore tends to move in lockstep with compiler releases.
It matters beyond neatness. Header dependency cleanup can shorten builds, reduce needless rebuilds, and make C++ packages less fragile when upstream headers change.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
fix_includes.py | cli | globales Executable | |
include-what-you-use | cli | globales Executable | |
iwyu_tool.py | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://include-what-you-use.org/
Installationsmetadaten
| Paketschlüssel | brew:include-what-you-use |
|---|---|
| Version | 0.26 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/include-what-you-use |
| Homepage | https://include-what-you-use.org/ |
| Repository | https://github.com/include-what-you-use/include-what-you-use |
| Upstream-Dokumentation | https://github.com/include-what-you-use/include-what-you-use#readme |
| Lizenz | NCSA |
| Quellarchiv | https://include-what-you-use.org/downloads/include-what-you-use-0.26.src.tar.gz |
| Abhängigkeiten | llvm |
| Build-Abhängigkeiten | cmake |
| Von macOS bereitgestellte Bibliotheken | ncurses |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | include-what-you-use |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
include-what-you-use
nix profile install nixpkgs#include-what-you-useinclude-what-you-use 0.26-r0
A tool for use with clang to analyze #includes in C and C++ source files
https://include-what-you-use.org
sudo apk add include-what-you-useinclude-what-you-use-dbg 0.26-r0
A tool for use with clang to analyze #includes in C and C++ source files (debug symbols)
https://include-what-you-use.org
sudo apk add include-what-you-use-dbginclude-what-you-use-doc 0.26-r0
A tool for use with clang to analyze #includes in C and C++ source files (documentation)
https://include-what-you-use.org
sudo apk add include-what-you-use-dociwyu 0.26-3.fc45
C/C++ source files #include analyzer based on clang
https://github.com/include-what-you-use/include-what-you-use
sudo dnf install iwyuinclude-what-you-use 0.26-1.2
A tool to analyze #includes in C and C++ source files
https://include-what-you-use.org/
sudo zypper install include-what-you-useinclude-what-you-use-tools 0.26-1.2
Additional tools to use include-what-you-use effectively
https://include-what-you-use.org/
sudo zypper install include-what-you-use-toolsinclude-what-you-use
sudo port install include-what-you-useQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.