transform oddity
Quoted 1 line
Is it me not understanding cocci grammar again?
You are also struggling with expressing your data processing needs by the means of the semantic patch language.
You would like to rename three parameters for selected functions. I imagine that an other transformation specification will be more appropriate for the function body.
Quoted 11 lines
{ ...(
(quoted diff) +1
-1- arg1 + dev|
(quoted diff) +1
-1- arg2 + attr|
(quoted diff) +1
-1- arg3 + buf
Quoted 3 lines
)
... when any
}
I suggest to use a SmPL nest construct.
https://github.com/coccinelle/coccinelle/blob/730dbb034559b3e549ec0b2973cd0400a3fa072f/docs/manual/cocci_syntax.tex#L789
{
<+...
(
-arg1
+dev
|
-arg2
+attr
|
-arg3
+buf
)
...+>
}
Quoted 1 line
identifier
d_show=~ "^.*show.*$";
By the way:
Would you like to omit the specification “.*$” from the regular expression for this SmPL constraint?
Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci