Hello,
I have tried another tiny script variant out for the semantic patch language
(according to the software combination “Coccinelle 1.0.8-00177-g28737419”).
@find@
identifier i;
type t;
@@
t i(...)
{ ... }
@find_static@
identifier find.i;
type find.t;
@@
static t i(...)
{ ... }
@display depends on !find_static@
identifier find.i;
type find.t;
@@
*t i(...)
{ ... }
This source code analysis approach is generally working in the way
it is designed.
Can the same data processing results be achieved also with a single SmPL rule?
Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci