Nicholas Nethercote wrote:

On Wed, Aug 8, 2012 at 12:36 PM, Nicolas Silva <nsi...@mozilla.com> wrote:
I have an ugly script that goes through the dependency files generated by make 
to collect informations about dependencies. I'll clean it up if you are 
interested (and rewrite it in python because I suppose people in here don't 
want to deal with D code).
There's a clang tool called "include-what-you-use" that does this properly 
(http://code.google.com/p/include-what-you-use/).

https://bugzilla.mozilla.org/show_bug.cgi?id=634839 is a bug for using it to 
clean up SpiderMonkey's headers, which had progress made but stalled out.  
https://bugzilla.mozilla.org/show_bug.cgi?id=772807 was a bug for cleaning up 
editor/ which actually completed, thought the build time improvements were 
minor.

IME, this is one those things that seems easy and worthwhile but usually ends 
up being a real pain, and doesn't seem worth it. Getting it 90% right isn't too 
bad but there's often some trouble in the last 10% that torpedoes it.
Someone pointed out a small problem with include-what-you-use: it tries to include mozilla-config.h although that is of course already force-included on the command line.

--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to