@@ identifier func; @@ func(...) { <+... .... stuff + goto func_exit; +} ...+> }
So if I have this code: void myfunc(int x) { } I want it to look like this: void myfunc(int x) { goto myfunc_exit; } My problem is that cocci takes "func_exit" literally. I tried func##_exit, but that didn't work. How do I make this work? _______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci