Hi, I am looking at ways to automatically trim the unnecessary includes. One way to do it is a script[1] which simply tests if the compile still works after removing each include one at a time. It does this in reverse order for all includes in the .c files. Using -Werror we catch any new warnings too.
It takes a while to run and the results are for whatever reason broken for some files. This sort of thing requires manual review of each removal of course but it seems useful to find potential targets for removal. This will be a lot less automatic than I like but I am fine with going trough everything. What do you think? Worth it? I have attached a diff from a partial run that show what the script found for src/a* to src/I* minus a few cases where it failed. [1] http://www.catb.org/~esr/deheader/
partial_include_removal
Description: Binary data
_______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
