> I have a question regarding the new "comments" feature.
I hope that further collateral evolution will happen around this functionality.
> @ r @
> identifier fn;
> comments c;
> @@
> fn()@c
> {
> }
* Which comments will appear between a closing parenthesis and an opening curly
bracket?
* Are you also looking for function implementations which are not empty?
(Would you like to add a SmPL ellipsis to your source code search approach?)
> The issue here is that I would like to trigger the python script
> (i.e. satisfy the "r" rule) iff the comment is actually present.
> Can I make the rule depend on the comment being there?
It seems that this expectation is not directly supported by the current software
version at the moment.
But I imagine that something can be achieved in this direction by the usage of
a supported scripting language together with multiple SmPL rules.
How do you think about to use the function “include_match”?
(See also information from “man coccilib
”.)
Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci