I have the following rule in my cocci script. Actually, want to apply
the patch conditionally, ie. when type S matches one or more structure
definitions. Initially I had 'struct Foo *drvr, ...' but that did not
work for me. Any hints are appreciated.
Regards,
Arend
@@
identifier func;
identifier drvr;
type T;
expression list es;
type S;
@@
T func(S *drvr, ...)
{
<...
- brcmf_err(es);
+ brcmf_derr(drvr, es);
...>
}
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci