From: Markus Elfring <Markus.Elfring@web.de>
To: cocci@inria.fr
Cc: Michele Martone <michelemartone@users.sourceforge.net>
Subject: [cocci] Searching for C++ delete expressions (with SmPL)?
Date: Fri, 8 Aug 2025 10:00:11 +0200 [thread overview]
Message-ID: <0bf5c015-bb4b-42ff-9734-d7de549417e1@web.de> (raw)
Hello,
Another SmPL script example:
#spatch --c++
@display@
expression e;
@@
delete
?[]
*e
Questionable test result (by the software combination “Coccinelle 1.3.0” for example):
Markus_Elfring@Sonne:…/Projekte/Coccinelle/janitor> /usr/bin/spatch --parse-cocci show_delete_expressions.cocci
…
warning: incompatible arity found on line 5
…
delete [] *e
…
How will clarification interests evolve further for this issue?
Regards,
Markus
next reply other threads:[~2025-08-08 8:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-08 8:00 Markus Elfring [this message]
2025-08-08 8:04 ` [cocci] Searching for C++ delete expressions (with SmPL)? Julia Lawall
2025-08-08 8:15 ` Markus Elfring
2025-08-08 8:29 ` Julia Lawall
2025-08-08 9:01 ` Markus Elfring
2025-08-09 6:44 ` Markus Elfring
2025-08-09 7:01 ` Markus Elfring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0bf5c015-bb4b-42ff-9734-d7de549417e1@web.de \
--to=markus.elfring@web.de \
--cc=cocci@inria.fr \
--cc=michelemartone@users.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox