]> git.ipfire.org Git - thirdparty/git.git/blame - contrib/coccinelle/hashmap.cocci
Merge branch 'jk/add-i-fixes'
[thirdparty/git.git] / contrib / coccinelle / hashmap.cocci
CommitLineData
12878c83
EW
1@ hashmap_entry_init_usage @
2expression E;
3struct hashmap_entry HME;
4@@
5- HME.hash = E;
6+ hashmap_entry_init(&HME, E);
7
8@@
9identifier f !~ "^hashmap_entry_init$";
10expression E;
11struct hashmap_entry *HMEP;
12@@
13 f(...) {<...
14- HMEP->hash = E;
15+ hashmap_entry_init(HMEP, E);
16 ...>}