"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. The include-what-you-use program is a tool 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 declarations when possible.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
0.21-bp156.1.2 info | GA Release | 2024-05-13 | 15 SP6 |
|
|
0.19-bp155.2.5 info | GA Release | 2023-05-22 | 15 SP5 |
|
|
0.17-bp154.1.11 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
0.15-bp153.1.2 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
0.13-bp152.1.1 info | GA Release | 2020-06-02 | 15 SP2 |
|
|
0.9-bp151.3.1 info | GA Release | 2019-07-17 | 15 SP1 |
|
|
0.9-bp151.2.15 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
0.9-bp150.2.3 info | GA Release | 2018-07-30 | 15 |
|
|