On Tue, 7 Jul 2020, Markus Elfring wrote:
> 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?
Probably the pretty printing is not perfect in this case and you are
welcome to fix it.
julia_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci