On Fri, Jul 30, 2021 at 7:00 AM Andrew 👽 Yourtchenko
<[email protected]> wrote:
>
> However, when I run it, the "done: " label, etc. gets inserted twice:

Every return statement is the end of a function. ;)

I don't know of a way to match only the "last" return statement in a
function, maybe with scripting...
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to