Tools to support removal of unused header files #6135
computezrmle
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If a library function is added to a source code file for the first time it sometimes happens that the related header include gets forgotten.
This isn't a big problem since the compiler complains about that.
In case a function call is removed and given that call was the last call to the function the header include becomes obsolete but it often remains in the source file, sometimes for years.
I wonder if there are tools to support removal of unused header files.
Not necessarily automatic but at least to make the programmer aware of possible candidates.
Beta Was this translation helpful? Give feedback.
All reactions