lkml.org 
[lkml]   [2010]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Cocci] Re: status of constification
On Sat, 13 Nov 2010, Emese Revfy wrote:

> >>> What would the right approach be? It is not obvious to find 100% of the
> >>> header files, because some of them depend on information in Makefiles.
> >>
> >> For 100% coverage you can look at how the Linux Makefiles invoke sparse.
> >
> > I haven't looked at it, but I doubt it gives 100% coverage, because one
> > can have code in both the if and else branches of an ifdef. I would
> > imagine that it gives 100% coverage for whatever architecture you would be
> > compiling for?
>
> For my purposes it's enough to find all includes for a given .config.

Coccinelle doesn't interpret .config files.

> What would be also useful is if Coccinelle could somehow ignore ifdef's that
> guard code blocks so that it would analyse all code in a translation unit.

It does that.

julia


\
 
 \ /
  Last update: 2010-11-13 14:47    [W:0.061 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site