>
> There isn't a tool that finds un-necessary includes is there?
>
> I thought about that.  It's a tough problem because you want to detect and
don't want to create false dependencies.  The trick that I found that was
cool was the #include rules in the Google C++ style guide (group #1 in the
ordering):
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Names_and_Order_of_Includes

I could implement that if we want, but it would be a little bit tricky
because we have .hh, .cc, _impl.hh and .i files all to deal with and we need
to figure out how to make it happen in all of those. Probably should be a
separate effort.  I'm trying to get this one done (implementing the style
hook for includes).

  Nate
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to