For now, I just would like to detect and patch the mentioned example. I could imagine that could be possible do using Python,.
Get Outlook for Android<https://aka.ms/ghei36> ________________________________ From: Markus Elfring <markus.elfr...@web.de> Sent: Thursday, November 28, 2019 4:50:55 AM To: stracel...@gmail.com <stracel...@gmail.com> Cc: cocci@systeme.lip6.fr <cocci@systeme.lip6.fr> Subject: Re: [Cocci] Replacing printf() parameters according to used data types > @r1_stack@ > struct mydata SMD; > format F =~ "s"; > @@ > -my_printf("%@F@", SMD.name); > +my_printf("%m", &SMD); > $ > > But, I can match only with partial content as can be seen below. I find this information for “partial content” unclear at the moment. * Would you like to transform any more source code variants by using additional SmPL ellipses and disjunctions? * How do you think about to extend and improve the shown change specifications? Regards, Markus
_______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci