Staging
v0.8.1
https://github.com/git/git
Raw File
Tip revision: 2d755dfac9aadab25c3e025b849252b8c0a61465 authored by Junio C Hamano on 06 August 2021, 19:53:06 UTC
Git 2.33-rc1
Tip revision: 2d755df
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