[Cocci] how to pass a regexp for a virtual identifier

David Wagner deubeuliou at gmail.com
Fri Mar 2 15:59:48 CET 2012


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.

I first tried
  identifier virtual.func
with
  -D func=~"^nvm_"
but realised that it didn't make sense and then tried
  identifier func =~ virtual.regexp
with
  -D regexp="^nvm_"
but that doesn't work either.

Does that functionality exists yet and if yes, how should it be used ?

Regards,
David.


More information about the Cocci mailing list