git/list[1] front-page[2] threads[3] people[4] search[5] about
 

coccinelle: simplify hashmap.cocci?

From
MEMarkus Elfring <markus.elfring@web.de>
Date
Nov 12, 2019, 14:40 UTC
Message-ID
<4790d483-bcb8-57f0-5c69-912a814ddade@web.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

Message 1 of 1 in “coccinelle: simplify hashmap.cocci?”
  1. Markus ElfringNov 12, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.