[Cocci] Replacement of function calls and corresponding parameters

SF Markus Elfring elfring at users.sourceforge.net
Sun Mar 14 16:53:35 CET 2010


> First the first rule is matched agains all functions.  Then any 
> transformations indicated by that match are performed.

The semantic patch language makes it easy to replace just a concrete function
call. I find it harder to specify the replacement also for the passed parameters
because it depends on variable definitions and assignments earlier in the source
code.

Regards,
Markus


More information about the Cocci mailing list