> Well, you didn't keep the semantic patch in the message.

You can take another look in other information systems (if desired).
https://systeme.lip6.fr/pipermail/cocci/2018-January/004848.html


>> 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.

Where?


> All forms of the rule need it, to keep the casts that contain sparse 
> annotations.

How do “annotations” matter here?


Is a specific variable used only by two SmPL rules?

…
> +m = re.compile(pattern)
…
> @script:python depends on report@
…
> +if m.search(t) != None:
…


Why are two underscores used as a search pattern in this use case?

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to