devel/include-what-you-use 0.25 NetBSD
Analyze #includes in C and C++ source files
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
a4856445ee- License
- modified-bsd
- Categories
- devel
- Package size
- 748.9 KiB, 8812.6 KiB installed
Description
"Include what you use" means this: for every symbol (type, function variable, or macro) that you use in foo.cc, either foo.cc or foo.h should #include a .h file that exports the declaration of that symbol. The include-what-you-use tool is a program that can be built with the clang libraries in order to analyze #includes of source files to find include-what-you-use violations, and suggest fixes for them.
The main goal of include-what-you-use is to remove superfluous #includes. It does this both by figuring out what #includes are not actually needed for this file (for both .cc and .h files), and replacing #includes with forward-declares when possible.
In the other systems
The newest version among them is 0.27, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| NetBSD | devel/include-what-you-use | 0.25 behind since 2026-10-09 | none known | - | [email protected] | 2026-10-11 |
| FreeBSD | devel/include-what-you-use | 0.27 newest | none known | - | [email protected] | 2026-10-09 |
| OpenBSD | devel/include-what-you-use | 0.26 behind since 2026-10-09 | no data | - | Jonathan Gray <[email protected]> | - |
| HardenedBSD | devel/include-what-you-use | 0.26 behind since 2026-10-09 | no data | - | [email protected] | - |
Version history 2
Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.
Install
Binary package:
pkgin install include-what-you-use
From pkgsrc:
cd /usr/pkgsrc/devel/include-what-you-use && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.25 |
| NetBSD 10.1 aarch64 | 0.25 |
| SmartOS / illumos x86_64 | 0.26nb1 |
| macOS 15 arm64 | 0.26nb1 |
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
Run dependencies 2
No port depends on this one.