include-what-you-use/include-what-you-use
A tool for use with clang to analyze #includes in C and C++ source files observed · 2026-08-28
Health v2 · maintenance only
82/100
- Activity 99
- Release rhythm 51
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 167
- age_days: 4097
- days_rel: 164
- days_push: 7
- n_releases_24m: 4
Adoption not part of the score
4757 stars · 432 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Include What You Use (IWYU) is a Clang-based tool that analyzes #include directives in C and C++ source files. It detects superfluous includes, suggests missing ones, and recommends replacing includes with forward declarations where possible.
Use cases
- remove unused #includes from C++ files
- find missing headers for symbols used in source files
- replace includes with forward declarations
- automatically track and clean up header dependencies
- enforce include hygiene in a large C++ codebase
When to choose
- you maintain a large C or C++ codebase with messy or stale includes
- you want to reduce compile times by eliminating unnecessary headers
- you want automated suggestions for correct includes per symbol usage
When to avoid
- your project does not use C or C++
- you need a tool decoupled from specific Clang versions, since IWYU breaks with Clang updates
- you need fully stable production-grade behavior, as the project describes itself as experimental
Facets
cli-tool · maturity active
linter developer-tools parser developer-tools programming-languages parsers windows cpp cli clang static-analysis c-plus-plus includes code-quality linux macos
2 sources
- readme: https://github.com/include-what-you-use/include-what-you-use · fetched 2026-08-28 · 0a9c97f1c2e1
- homepage: https://include-what-you-use.org · fetched 2026-08-29 · 1e949b19b582
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| include-what-you-use/include-what-you-use | main | 82 |
For agents
markdown · JSON · MCP: product_card(name="include-what-you-use/include-what-you-use")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem