git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* coccinelle: simplify hashmap.cocci?
@ 2019-11-12 14:40 Markus Elfring
  0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2019-11-12 14:40 UTC (permalink / raw)
  To: git; +Cc: Eric Wong, Derrick Stolee

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-12 14:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-12 14:40 coccinelle: simplify hashmap.cocci? Markus Elfring

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).