From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Fri, 18 Nov 2016 18:13:48 +0100 Subject: [Cocci] Inclusion of script constraints in SmPL In-Reply-To: References: <3c65eb92-8be0-be42-bf8e-893f3853df12@users.sourceforge.net> <32639cf9-b644-0230-02a6-88d66925340e@users.sourceforge.net> <6810eb15-839c-8aa5-6485-401d43ba1246@users.sourceforge.net> <69c3643e-10b4-007a-f847-d0098f298e16@users.sourceforge.net> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr > The idea with the script constraints on metavariables feature is that the > script code there should only contain a function call. The actual > function definition should be elsewhere; probably in an initialize rule. * Did you consider the use case already when such a constraint specification would be included from an external file as a component or together with a rule selection for the semantic patch language? * Would such an inclusion approach trigger special requirements on the position for corresponding initialisation code? Regards, Markus