On Wed, 22 May 2019, Christoph Böhmwalder wrote:
> On 22.05.19 13:37, Julia Lawall wrote:
> > Is it always exactly this string that you want to add?
>
> In my case, yes. I don't have any metavariable substitutions, etc; it's always
> the same constant code.
You can do the following
@script:python b@
x;
@@
coccinelle.x = "({...})" <--- The code you want
@@
identifier b.i;
@@
- cocci_replace_this()
+ i
julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci