Proposal: Warn for #include
s from which no symbols are actually used
#236
Labels
enhancement
New feature or request
#include
s from which no symbols are actually used
#236
In a similar vein to #234 (which I would have just amended with this but there's already #235 that closes it 😬), another warning for improper use of
#include
.A new warning,
-Wunused-include
, triggers when there is an#include
from which no symbols are used. This reduces unnecessary dependencies and the number of files to be reanalysed during incremental compilation1.Footnotes
https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/WhyIWYU.md ↩
The text was updated successfully, but these errors were encountered: