<p dir="ltr"><br>
On Feb 26, 2015 4:32 PM, "Emil Velikov" <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>> wrote:<br>
><br>
> On 26/02/15 01:30, Brian Paul wrote:<br>
> > Another clean-up series.  Mostly trimming down on unneeded #includes.<br>
> ><br>
> > I tested DRI, non-DRI and MSVC builds of this series but it's possible<br>
> > I've missed some configuration and broke something.  Fix-ups should be<br>
> > simple though.<br>
> ><br>
> Hi Brian,<br>
><br>
> Did you go through the includes list manually, or there is a handy tool<br>
> that you've used ?<br>
><br>
> I'll test a couple extra build permutations as it lands, although the<br>
> series looks great.<br>
><br>
> -Emil<br>
></p>
<p dir="ltr">Hi Emil,</p>
<p dir="ltr">I've previously used a llvm tool called "Include what you use".<br>
(Mostly referred to as IWYU)<br>
This checks includes to find out where they should be located and not,<br>
and prints a git-diff sorta thing on them.<br>
(It can also directly modify source, but this is a bit beta)<br>
I used this on the glsl part of the tree once, and it works quite OK.<br>
It does give some false positives, so one should check the suggestions.<br>
Apparently its been used on Firefox with great success.<br>
They reduced compile time quite drastically, but I don't have the<br>
source of those claims ATM.<br>
At least it greatly reduces the impact of recompiles when changing a header<br>
(That's what I noticed the most when I used it.)<br>
This might be what you're looking for.</p>
<p dir="ltr">Regards<br>
Thomas</p>
<p dir="ltr">> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</p>