Staging
v0.8.1
https://github.com/git/git
Raw File
Tip revision: 66262451ec94d30ac4b80eb3123549cf7a788afd authored by Junio C Hamano on 30 July 2021, 23:14:07 UTC
Git 2.33-rc0
Tip revision: 6626245
hashmap.cocci
@ hashmap_entry_init_usage @
expression E;
struct hashmap_entry HME;
@@
- HME.hash = E;
+ hashmap_entry_init(&HME, E);

@@
identifier f !~ "^hashmap_entry_init$";
expression E;
struct hashmap_entry *HMEP;
@@
  f(...) {<...
- HMEP->hash = E;
+ hashmap_entry_init(HMEP, E);
  ...>}
back to top