Clarification for input data of scripted SmPL constraints
Hello,
Some information is provided for the usage of ”scripted constraints” by the means of the semantic patch language.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/5fdb1a247d3374ac30a3e565b2cc5167aeefc4e5/docs/manual/cocci_syntax.tex#L582-605
https://github.com/coccinelle/coccinelle/blob/deb429dfae033e40aefc78729a585b00ae82808c/docs/manual/cocci_syntax.tex#L582-L605
They tend to depend on a single input parameter.
But how does the software situation look like if you would like to use contents from multiple metavariables (which were hopefully matched in combination) for advanced condition checks?
Regards,
Markus
Quoted 11 lines · Markus Elfring
Hello,
Some information is provided for the usage of ”scripted constraints” by the means of the semantic patch language.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/5fdb1a247d3374ac30a3e565b2cc5167aeefc4e5/docs/manual/cocci_syntax.tex#L582-605
https://github.com/coccinelle/coccinelle/blob/deb429dfae033e40aefc78729a585b00ae82808c/docs/manual/cocci_syntax.tex#L582-L605They tend to depend on a single input parameter.
But how does the software situation look like if you would like to use contents from multiple metavariables (which were hopefully matched in combination) for advanced condition checks?
To a limited extent they can be listed in the ().
If there ... in the rule, it is often forbidded to use this feature, and you have to use a separate script rule.
julia
Quoted 4 lines
Regards,
Markus
Quoted 5 lines
Quoted 3 lines
But how does the software situation look like if you would like to use contents from multiple metavariables (which were hopefully matched in combination) for advanced condition checks?
To a limited extent they can be listed in the ().
* Would you like to point any script examples out?
* How do you think about to improve the corresponding software documentation?
Quoted 1 line
If there ... in the rule, it is often forbidded to use this feature,
Would you like to extend explanations for such a hint?
Quoted 1 line
and you have to use a separate script rule.
Will development concerns be clarified further?
Regards,
Markus