From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Robert P. J. Day" Subject: Re: Detect unused header files? Date: Thu, 6 Aug 2009 07:17:02 -0400 (EDT) Message-ID: References: <20090728181803.GA20845@merkur.ravnborg.org> <70318cbf0907281336p47b68b5cg44a3e7206646cb80@mail.gmail.com> <70318cbf0907281349k72a71b8fyc10d80992e4b1db9@mail.gmail.com> <20090728210404.GA21187@merkur.ravnborg.org> <70318cbf0907281438i876e21fja037aed7169aa8bf@mail.gmail.com> <70318cbf0907300355h5cb34671ha452433c4e0b5324@mail.gmail.com> <20090730203633.GA28838@merkur.ravnborg.org> <70318cbf0908041449u4ce5ab30w6700a7081aa4909c@mail.gmail.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: Received: from astoria.ccjclearline.com ([64.235.106.9]:49936 "EHLO astoria.ccjclearline.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752400AbZHFLTr (ORCPT ); Thu, 6 Aug 2009 07:19:47 -0400 In-Reply-To: Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Marko Kreen Cc: Christopher Li , Sam Ravnborg , sparse On Thu, 6 Aug 2009, Marko Kreen wrote: > On 8/5/09, Christopher Li wrote: > > On Thu, Jul 30, 2009 at 1:36 PM, Sam Ravnborg wrote: > > > Thanks for hacking this up! > > > > > > I will try it out during the weekend as work permits. Busy... > > > > Any updates? > > > > It seems that top level header file including sub component > > header file is very common practice, especially on big header > > file. From the header file itself is not sufficient to determine > > the included header file is a sub component or some thing > > new. > > Could we have a flag to track top-level headers only? So that > anything declared in sub-headers will be registered also under top > header file? This seems more useful scanning mode for regular > user-space code. has anyone tried cscout? http://www.spinellis.gr/cscout/ rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Annoying Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday "Kernel Newbie Corner" column @ linux.com: http://cli.gs/WG6WYX ========================================================================