On Mon, 15 Jan 2018, SF Markus Elfring wrote:
> > In the report rule we print the position, so having the position among the > > inherited metavariables is useful. > > Do position variables influence (in a positive way?) how fast a source code > place > is matched in a non-script rule? To some extent. You are welcome to compare the performance. I expect that the difference would be small in this case, because there would only be a few of these calls per file anyway. > >>> If no index is available, > >> > >> How often will this be the usual case? ;-) > > > > It depends on the user of Coccinelle. > > Can SmPL scripts adapt to the situation when an index was selected (or not)? It doesn't really matter. The point is that constraints are arbitrarily complex, and the filtering, however it is done, is intended to be a simple and fast process. julia _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
