Re: [Cocci] [PATCH 4/4] coccicheck: add indexing enhancement options

Luis R. Rodriguez
2016-06-13T18:41:17Z

On Sat, Jun 11, 2016 at 07:24:51AM +0200, Julia Lawall wrote:
>
>
> On Fri, 10 Jun 2016, Wolfram Sang wrote:
>
> > > AFAICT coccinelle does not have integration support for id-utils though.
> >
> > I used it just today ;) -- "--use-idutils ./ID"
> >
> > ID was generated with simple 'mkid -s'.
>
> Coccinelle includes a script scripts/idutils_index.sh
>
> This does mkid -i C --output .id-utils.index *

I'll add support for detecting both. An issue of course is if any of these
indexes grows stale. So I'll advise against these and recommend gitgrep
unless the user has a hook to update index regularly.

Luis