Hello, I have tried another tiny script variant out for the semantic patch language (according to the software combination “Coccinelle 1.0.8-00139-gd0fd4c7d”).
@addition@ identifier work; expression action; @@ void work(...) { ... when any +last_action: action(...); } Such a simple adjustment approach can work as expected (in principle). It seems that indentation is also applied to the added label according to the function call at the end of found function implementations. But the Linux coding style prefers to start labels in the first column. How should patches be accordingly generated then? Regards, Markus _______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci