Hi guys, I think the follow one would be better, because I don't want it
too general.
@@
declarer xyz ~= MODULE_(?:AUTHOR|DESCRIPTION|LICENSE);
@@
-xyz(...);
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 ?
thanks.
--------------------------------------------------------------------------------
From: Julia Lawall
Sent: Tuesday, June 12, 2012 8:58 PM
To: SF Markus Elfring
Cc: [email protected]
Subject: Re: [Cocci] Re: Deletion of some macro calls
On Tue, 12 Jun 2012, SF Markus Elfring wrote:
The regex can be adjusted for a proper SmPL constraint as desired.
@@
declarer xyz ~= MODULE_(?:AUTHOR|DESCRIPTION|LICENSE);
@@
-xyz(...);
I guess, but it still has a disadvantage from a performance point of
view.
Coccinelle only processes files that contain all of the words that
are needed for the semantic patch to match, but it doesn't collect any
information when there are regular expressions.
I am surprised that you point out such an interesting implementation
detail here.
You rule would process all files, while the rule that gives the names
explicitly would only process the files that contain those names.
Can your software development tool be improved in this aspect?
I don't know what is the complexity of the regular expressions accepted by
glimpse. It seems to be quite low.
julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)