Sat, 05 Dec 2026 00:36:23 UTC Log in
C/C++ source files #include analyzer based on clang 1.11 MB built 2026-10-14 13:45:04 GMT

Description

"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 foo_test.cc, either foo_test.cc or foo.h should do the including.) Obviously symbols defined in foo.cc itself are excluded from this requirement. This puts us in a state where every file includes the headers it needs to declare the symbols that it uses. When every file includes what it uses, then it is possible to edit any file and remove unused headers, without fear of accidentally breaking the upwards dependencies of that file. It also becomes easy to automatically track and update dependencies in the source code.

Dependencies

15 total
Requires14
  • clang(major) = 22
  • clang-devel(major) = 22
  • cmake
  • compiler-rt(major) = 22
  • gtest-devel
  • libcxx-devel
  • llvm-devel(major) = 22
  • llvm-static(major) = 22
  • ncurses-devel
  • ninja-build
  • python3-devel
  • rpmlib(CompressedFileNames) <= 3.0.4-1
  • rpmlib(FileDigests) <= 4.6.0-1
  • zlib-devel
Provides1
  • iwyu = 0.26-4.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances

Files

4
Files 1–4 of 4

Component of

buildroots that installed this RPM

No Buildroots