{here f is a non-void function}
I have tried your tool from the package "coccinelle-1.0.0-13.2" on my openSUSE
12.1 system again after I adjusted your suggestion for a source code filter a bit.
elfring@Sonne:~/Projekte/Geany> spatch -version && spatch -sp_file
pattern1.cocci -dir lokal/src/ -debug
spatch version 1.0.0-rc7 with Python support and with Str regexp support
init_defs_builtins: /usr/share/coccinelle/standard.h
-----------------------------------------------------------------------
processing semantic patch file: pattern1.cocci
with isos from: /usr/share/coccinelle/standard.iso
-----------------------------------------------------------------------
@r@
identifier f;
@@
f(...)
{
...
}
@is_void@
identifier r.f;
@@
void f(...)
{
...
}
@depends on !is_void@
identifier r.f;
identifier g;
@@
g(...)
{<+ ...
* f(...);
... +>}
150 151
Fatal error: exception Failure("minus: parse error:
= File "pattern1.cocci", line 22, column 1, charpos = 150
around = '<', whole content = {<+ ...
")
Can anything be improved for the implementation approach because of this error
message?
Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)