BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
NetBSDdevel/include-what-you-use0.25 behind since 2026-10-09none known-[email protected]2026-10-11
FreeBSDdevel/include-what-you-use0.27 newestnone known-[email protected]2026-10-09
OpenBSDdevel/include-what-you-use0.26 behind since 2026-10-09no data-Jonathan Gray <[email protected]>-
HardenedBSDdevel/include-what-you-use0.26 behind since 2026-10-09no data-[email protected]-

Compare across BSDs

Version history 2

  1. 0.26 d5d8330892
  2. 0.25 a4856445ee

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.

RepositoryVersion
NetBSD 10.1 x86_640.25
NetBSD 10.1 aarch640.25
SmartOS / illumos x86_640.26nb1
macOS 15 arm640.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.

Commit history 2

DateCommitCreditsLog message
a4856445ee wiz *: recursive bump for llvm 22
d5d8330892 adam include-what-you-use: updated to 0.26
0.26 Compatible with Clang 22. Major changes: [iwyu] Many improvements around the understanding of types, particularly templates [iwyu] Improve handling of builtin type traits [mappings] Add support for distinguishing function overloads and template specializations in mappings [mappings] Add mapping generator for Windows.h [mappings] Add mapping generator for portable C++ standard library symbols [mappings] Improve libc, libc++ and POSIX mappings