Playing with include-what-you-use shows interesting stuff
bapt at FreeBSD.org
Wed Mar 21 08:36:06 UTC 2012
I've been playing with the include-what-you-use llvm tool for some on my
personnal projects, as it works very well, I have also played with it on our
source tree starting with the bin directory.
It shows some interesting results, while the default output is quite aggressive,
I just chose to remove the "useless" headers in each sources.
It show some interesting results which seems to come from maybe bad includes in
some of our headers.
Apparently some of the #include <sys/param.h> are false positive because others
headers shouldn't include it for example (according to des)
here is a diff showing what I find that can be removed:
I think it shouldn't be applied as it but be more analyzed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20120321/0f2d4e6b/attachment.pgp
More information about the freebsd-hackers