[Cocci] Replacement of function calls and corresponding parameters

Julia Lawall julia at diku.dk
Thu Mar 11 09:52:46 CET 2010


On Thu, 11 Mar 2010, SF Markus Elfring wrote:

> Hello,
> 
> The semantic patch language supports the search for variables and functions in
> the source code. I have got the impression that is a challenge to find all
> relevant parameters only after a specific function call was found.
> 
> I am interested in the automatic adjustment for a change of an application
> programming interface.
> Example use case:
> POSIX 2008 categorises the function "gettimeofday" as "obsolescent".
> http://opengroup.org/onlinepubs/9699919799/functions/gettimeofday.html
> 
> Can such an update for an alternative implementation be expressed in SmPL?

Could you explain more about what transformation is desired?  Perhaps give 
an example?

thanks,
julia


More information about the Cocci mailing list