On Sun, 14 Jan 2018, SF Markus Elfring wrote:
> >>> +@initialize:python@
> >>
> >> The added script rule should get a condition.
> >> Would the specification “depends on report” be appropriate there?
> >
> > To my recollection,
>
> I wonder about this wording …
Well, you didn't keep the semantic patch in the message.
>
>
> > which is defined in the initialized is used in all of the cases,
>
> I imagine that you could know it better.
>
>
> > so there is no need for a depends on.
>
> The default usage mode for the affected SmPL script is “report”.
> https://bottest.wiki.kernel.org/coccicheck#modes
>
> But can an other mode also be occasionally selected here?
> How do you think about to avoid the extra initialisation
> when only the operation mode “context” or “patch” would be active?
context and patch use the regular expression too. All forms of the rule
need it, to keep the casts that contain sparse annotations.
julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci