Now I write 3 rules to remove the "MODULE" relative macros.
[...]
Is there any possobility that I can combile these rules  into a single one?

Would you like to delete all macro calls that have got a common prefix in their names? Do you need eventually a more detailed filter pattern?

How do you think about the application of a regular expression for your use case?

Would an approach like the following work with the semantic patch language?

@@
identifier xyz ~= MODULE_\w+;
expression param;
@@
-xyz(param);

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