On 20180626@11:20, SF Markus Elfring wrote: > > While patching source files of a few thousand lines long, > > I noticed prohibitively long patch compute times (seemed hanged). > > Do you get nicer run time characteristics if you would refactor the SmPL > script > example like the following for the addition of a type cast? > > // A semantic patch introducing casting on function return: > @@ > identifier F, V; > type T; > @@ > T V; > ... > V = > + (T) > F(...);
Hi Markus, using your patch (having F as any identifier, rather than a specific token) does not change anything time-wise, unfortunately :-( p.s.: My general problem actually was more complicated than this, in that the variables declarations can be anywhere, while this patch here requires declaration and F call to be in the same scope. Michele _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
