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 · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de include-what-you-use pour les workflows d'agents IA.
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 · Source: api.github.com
sudo apk add include-what-you-useAlpine Linux edge package indexes · include-what-you-use · Source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#include-what-you-usenixpkgs package indexes · include-what-you-use · Source: raw.githubusercontent.com
sudo zypper install include-what-you-useopenSUSE Tumbleweed package metadata · include-what-you-use · Source: download.opensuse.org
sudo dnf install iwyuFedora Rawhide package metadata · iwyu · Source: dl.fedoraproject.org
aperçu
Tool to analyze #includes in C and C++ source files
historique
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.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
fix_includes.py | cli | exécutable global | |
include-what-you-use | cli | exécutable global | |
iwyu_tool.py | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://include-what-you-use.org/
métadonnées d'installation
| Clé du paquet | brew:include-what-you-use |
|---|---|
| Version | 0.26 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/include-what-you-use |
| Page d'accueil | https://include-what-you-use.org/ |
| Dépôt | https://github.com/include-what-you-use/include-what-you-use |
| Docs amont | https://github.com/include-what-you-use/include-what-you-use#readme |
| Licence | NCSA |
| Archive source | https://include-what-you-use.org/downloads/include-what-you-use-0.26.src.tar.gz |
| Dépendances | llvm |
| Dépendances de compilation | cmake |
| Bibliothèques fournies par macOS | ncurses |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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-usepiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.