include-what-you-use
A tool for use with clang to analyze #includes in C and C++ source files
A tool for use with clang to analyze #includes in C and C++ source files
To install this package, run one of the following:
"Include what you use" means this: for every symbol (type, function, variable, or macro) that you use in foo.cc (or foo.cpp), either foo.cc or foo.h should include a .h file that exports the declaration of that symbol. (Similarly, for footest.cc, either footest.cc or foo.h should do the including.) Obviously symbols defined in foo.cc itself are excluded from this requirement.
Summary
A tool for use with clang to analyze #includes in C and C++ source files
Last Updated
Mar 22, 2026 at 19:05
License
NCSA
Supported Platforms
GitHub Repository
https://github.com/include-what-you-use/include-what-you-useDocumentation
https://include-what-you-use.org