> @script:python s@
> c << r.c;
> c2;
> @@
> if c.startswith('"NVRM: '):
> coccinelle.c2 = '"' + c[7:];
> else:
> coccinelle.c2 = c;
I suggest to reconsider the action if no modification should be performed
finally.
How do you think about to use the statement “cocci.include_match(False)”
in the else branch instead?
> But this didn't:
I wonder also about the shown source code situation that an unwanted prefix
could be still preserved in the error message from such a transformation
example.
Would you like to show your final SmPL replacement rule here?
Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci