summaryrefslogtreecommitdiff
path: root/tools/coccinelle/hash.cocci
blob: d0e2e5f4b1899b6fdd01c49d20bfd5ec091d986f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
@@
identifier f != git_hash_init;
expression ALGO;
struct git_hash_ctx *CTX;
@@
  f(...) {<...
- ALGO->init_fn(CTX);
+ git_hash_init(CTX, ALGO);
  ...>}

@@
identifier f != git_hash_clone;
expression ALGO;
struct git_hash_ctx *SRC;
struct git_hash_ctx *DST;
@@
  f(...) {<...
- ALGO->clone_fn(DST, SRC);
+ git_hash_clone(DST, SRC);
  ...>}

@@
identifier f != git_hash_update;
expression ALGO;
struct git_hash_ctx *CTX;
expression list ARGS;
@@
  f(...) {<...
- ALGO->update_fn(CTX, ARGS);
+ git_hash_update(CTX, ARGS);
  ...>}

@@
identifier f != git_hash_final;
expression ALGO;
struct git_hash_ctx *CTX;
expression list ARGS;
@@
  f(...) {<...
- ALGO->final_fn(ARGS, CTX);
+ git_hash_final(ARGS, CTX);
  ...>}

@@
identifier f != git_hash_final_oid;
expression ALGO;
struct git_hash_ctx *CTX;
expression list ARGS;
@@
  f(...) {<...
- ALGO->final_oid_fn(ARGS, CTX);
+ git_hash_final_oid(ARGS, CTX);
  ...>}

@@
identifier f != git_hash_discard;
expression ALGO;
struct git_hash_ctx *CTX;
@@
  f(...) {<...
- ALGO->discard_fn(CTX);
+ git_hash_discard(CTX);
  ...>}