On 03/03/2012 15:30, Julia Lawall wrote:
On Fri, 2 Mar 2012, Julia Lawall wrote:
On Fri, 2 Mar 2012, David Wagner wrote:
Hi all,
I have successfully used a regular expression for a function name but
I didn't find how to pass it on the command line.
[...]
Maybe you can just use the regular expression in a script:
@r@
identifier f;
@@
f (...) { ... }
@script:ocaml@
f << r.f;
re << virtual.re;
@@
if not (Str.string_match (Str.regexp re) f 0)
then Coccilib.include_match(false)
In python, you would say cocci.include_match(False) for the cases you
want to discard.
julia
Ok, I'll try that.
Thanks.
David.
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)