[PATCH, RFC] plugin to warn about surplus includes

Joel Sherrill joel.sherrill@oarcorp.com
Wed May 19 00:00:00 GMT 2010


On 05/18/2010 05:53 PM, Steven Bosscher wrote:
> On 5/18/10, Bernhard Reutner-Fischer<rep.dot.nop@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 diagnose them, so i was thinking
>> about a gcc plugin to do that.
>>      
> *bows*
>
> Such a plugin would be very welcome for me at least.
>
>    
Count me in those who would be interested.

Would there be a way to exclude specific files?  Say something like
config.h that by convention you might want every file to include?
> Ciao!
> Steven
>    

--joel



More information about the Gcc-patches mailing list