I just began to learn cocci recently.
How to write a patch match the following?

Void func1(int s, bri_vlan_set_t t, char x)  yes
Void func2(int s,  char x)  no
Void func3(int s, bri_vlan_set_t t) yes

bri_vlan_set_t is defined type

I wrote:

@@
identifier fn, vp;
typedef bri_vlan_set_t;
@@
-fn(...bri_vlan_set_t vp...)

But it reports

Fatal error: exception Failure("minus: parse error:
 = File "r.cocci", line 5, column 7,  charpos = 60
    around = 'bri_vlan_set_t', whole content = -fn(...bri_vlan_set_t vp...)
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to