2010/10/30 Julia Lawall <[email protected]>:
>
> Thanks for the information and the examples.  I will look into it.

You are welcome.
May be you will tell me if it works for cocci.

>  We have no need for *s in the regular expression (I guess we would if I took
> into account regular expression constraints on identifier metavariables,
> but currently I don't).  But we do generate complicated nestings of and
> and or.  This indeed is another problem with glimpse.  It only allows
> maybe 16 terms in the regular expression, which one can easily exceed if
> writing a semantic patch that eg considers all locking functions.

I'm curious to see such kind of regex with nesting/or/and.

By the way I've just fast-tried  id-utils because I didn't know it
and it is nice too I think the debate would be speed and accuracy for
C symbol/function match.

I did not do bench.

Sidenote:
  Linux kernel sources has a "scripts/tags.sh" which may be used to build
  tag like files with various tools including cscope.

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to