public inbox for cocci@systeme.lip6.fr
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: Julia Lawall <julia.lawall@inria.fr>, cocci@inria.fr
Cc: Michele Martone <michelemartone@users.sourceforge.net>
Subject: Re: [cocci] Searching for C++ delete expressions (with SmPL)?
Date: Fri, 8 Aug 2025 10:15:20 +0200	[thread overview]
Message-ID: <22cfa841-e385-4d02-be5e-ae7c88188d5d@web.de> (raw)
In-Reply-To: <3a88b6dc-cdca-79d1-9a4-72ca8c465c5@inria.fr>

>> 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
>> …
…> In general, I don't think you can put ? on random subterms.

How will the support evolve further for key word variants of the programming language “C++”?


>                                                              You could do
> what you want with a disjunction.

Under which circumstances will the mentioned “warning” be reconsidered better?

Regards,
Markus

  reply	other threads:[~2025-08-08  8:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-08  8:00 [cocci] Searching for C++ delete expressions (with SmPL)? Markus Elfring
2025-08-08  8:04 ` Julia Lawall
2025-08-08  8:15   ` Markus Elfring [this message]
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=22cfa841-e385-4d02-be5e-ae7c88188d5d@web.de \
    --to=markus.elfring@web.de \
    --cc=cocci@inria.fr \
    --cc=julia.lawall@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