Re: [PATCH, RFC] plugin to warn about surplus includes

2010-05-19 Thread Tom Tromey
Bernhard == Bernhard Reutner-Fischer rep.dot@gmail.com writes: Bernhard - should handle structs. There are some other difficult cases. First, don't let this discourage you :-). I think this would be a useful feature. I think in general you cannot actually ever tell if a header is unused

[PATCH, RFC] plugin to warn about surplus includes

2010-05-18 Thread Bernhard Reutner-Fischer
Hi, A couple of days ago i was asking: does any frontend support some sort of noting that a user-header was included but no decl of it was ever referenced (i.e. superfluous #include) ? I could not find an appropriate tool to diagnose them, so i was thinking about a gcc plugin to do that. Would

Re: [PATCH, RFC] plugin to warn about surplus includes

2010-05-18 Thread Steven Bosscher
On 5/18/10, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: Hi, A couple of days ago i was asking: does any frontend support some sort of noting that a user-header was included but no decl of it was ever referenced (i.e. superfluous #include) ? I could not find an appropriate tool to

Re: [PATCH, RFC] plugin to warn about surplus includes

2010-05-18 Thread Joel Sherrill
On 05/18/2010 05:53 PM, Steven Bosscher wrote: On 5/18/10, Bernhard Reutner-Fischerrep.dot@gmail.com wrote: Hi, A couple of days ago i was asking: does any frontend support some sort of noting that a user-header was included but no decl of it was ever referenced (i.e. superfluous