On Thu, 26 Jul 2018, Timur Tabi wrote:

> Is there a way to edit string constants?  I need to change
>
> "NVRM: ...."
>
> into
>
> "..."
>
> That is, I need to remove the "NVRM: " from a string.  I tried this:
>
> @depends on rule1@
> @@
> -"NVRM: "
> +""
>
> But it doesn't do anything.

The easiest thing would be to use python.  You can look at
demos/pythontococci.cocci for an example.  If you send a complete change
that you would like to make, I can write an example rule.

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

Reply via email to