Identifier doesn't work, because it has to be a declarer name.

How do you distinguish these terms for the purposes of the semantic
patch language here?


But then I don't think regular expressions are a good idea
in general (for the same reason).

I find it easier and concise to specify a "regex" for such an use case.

@@
declarer xyz ~= MODULE_\w+;
@@
-xyz(...);

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to