[Cocci] Moving a function body to an other source code place with SmPL

SF Markus Elfring elfring at users.sourceforge.net
Mon May 14 15:10:19 CEST 2018


I am curious on how good the Coccinelle software can support a specific
source code transformation:
It would be occasionally nice if an implementation of a function could be
completely stored into a metavariable.
Is a statement list variable appropriate for this use case?

Can these data be moved to an other function (or macro definition)?


More information about the Cocci mailing list