On Thu, 2 Oct 2014, SF Markus Elfring wrote:

> > nit.cocci:
> > @@
> > expression list L;
> > @@
> > - f(L);
> > + g(L);
> 
> Would it make sense and work to write a semantic patch rule like the 
> following?
> 
> @replacement@
> @@
> -f
> +g
> (L);
> 
> 
> Can the passed parameters be omitted from the desired adjustment by "the plus 
> line"?

For the particular example, this would be better, but presumably the real 
case is more complex.

julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to