But when I try to use it , I get error.

the screen output:
init_defs_builtins: /usr/local/share/coccinelle/standard.h
16 17
Fatal error: exception Failure("meta: parse error:
= File "c1.cocci", line 2, column 13,  charpos = 16
    around = '~', whole content = declarer xyz ~=
MODULE_(?:AUTHOR|DESCRIPTION|LICENSE);
")

How can I fix that ?

Would you like to try out the following variant?

@@
declarer xyz ~= MODULE_(AUTHOR|DESCRIPTION|LICENSE);
@@
-xyz(...);


How do you think about to distinguish between grouping-only/non-capturing parentheses and their alternative in the applied regular expression?
http://blog.getify.com/to-capture-or-not/

http://lists.diku.dk/pipermail/cocci/2012-March/002871.html
http://article.gmane.org/gmane.comp.version-control.coccinelle/2398/

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