[Cocci] string parameter concatenation

Julia Lawall julia.lawall at lip6.fr
Thu Oct 2 15:04:12 CEST 2014



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


More information about the Cocci mailing list