coccinelle: use <...> for function exclusion
[git.git] / contrib / coccinelle / object_id.cocci
blob5869979be78985733afc6e327fab55e752d756a0
1 @@
2 expression E1;
3 @@
4 - is_null_sha1(E1.hash)
5 + is_null_oid(&E1)
7 @@
8 expression E1;
9 @@
10 - is_null_sha1(E1->hash)
11 + is_null_oid(E1)
14 expression E1;
16 - sha1_to_hex(E1.hash)
17 + oid_to_hex(&E1)
20 identifier f != oid_to_hex;
21 expression E1;
23   f(...) {<...
24 - sha1_to_hex(E1->hash)
25 + oid_to_hex(E1)
26   ...>}
29 expression E1, E2;
31 - sha1_to_hex_r(E1, E2.hash)
32 + oid_to_hex_r(E1, &E2)
35 identifier f != oid_to_hex_r;
36 expression E1, E2;
38    f(...) {<...
39 - sha1_to_hex_r(E1, E2->hash)
40 + oid_to_hex_r(E1, E2)
41   ...>}
44 expression E1;
46 - hashclr(E1.hash)
47 + oidclr(&E1)
50 identifier f != oidclr;
51 expression E1;
53   f(...) {<...
54 - hashclr(E1->hash)
55 + oidclr(E1)
56   ...>}
59 expression E1, E2;
61 - hashcmp(E1.hash, E2.hash)
62 + oidcmp(&E1, &E2)
65 identifier f != oidcmp;
66 expression E1, E2;
68   f(...) {<...
69 - hashcmp(E1->hash, E2->hash)
70 + oidcmp(E1, E2)
71   ...>}
74 expression E1, E2;
76 - hashcmp(E1->hash, E2.hash)
77 + oidcmp(E1, &E2)
80 expression E1, E2;
82 - hashcmp(E1.hash, E2->hash)
83 + oidcmp(&E1, E2)
86 expression E1, E2;
88 - hashcpy(E1.hash, E2.hash)
89 + oidcpy(&E1, &E2)
92 identifier f != oidcpy;
93 expression E1, E2;
95   f(...) {<...
96 - hashcpy(E1->hash, E2->hash)
97 + oidcpy(E1, E2)
98   ...>}
101 expression E1, E2;
103 - hashcpy(E1->hash, E2.hash)
104 + oidcpy(E1, &E2)
107 expression E1, E2;
109 - hashcpy(E1.hash, E2->hash)
110 + oidcpy(&E1, E2)