# coccinelle: simplify hashmap.cocci?

1 messages from 2019-11-12 to 2019-11-12. Participants: Markus Elfring.
Thread: https://gitlist.dev/t/52240

## Markus Elfring, 2019-11-12 14:40

Subject: coccinelle: simplify hashmap.cocci?
Message-ID: <4790d483-bcb8-57f0-5c69-912a814ddade@web.de>
URL: https://gitlist.dev/e/4790d483-bcb8-57f0-5c69-912a814ddade%40web.de

```
Hello,

I would like to comment implementation details from
the commit 12878c83516e3b82f31a20f1b5431b7ff607a8db ("coccicheck: detect hashmap_entry.hash assignment").


1. Would you occasionally like to try a change specification out
   like the following?

-HME.hash =
+hashmap_entry_init(&HME,
 E
+)
 ;


2. How do you think about to use a code variant (for the semantic patch language)
   which can work without a regular expression for the exclusion of a single item?

identifier f != hashmap_entry_init;


Regards,
Markus

```
