On Sun, 29 Nov 2020, Markus Elfring wrote:

> > But it only helps in your case because in your C code,
> > the first two lines have different function names.
>
> Would any more software extensions be needed for the discussed use case
> if the same function call would be repeated at subsequent places?

I think it would suffice to iterate over a rule that ensures that the
pattern of interest does not occur before the place where it is matched.
For a more simple exmple:

... when != A(); B();
- A()
  B(
+ A()
  )

julia
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to