All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@inria.fr>
To: Markus Elfring <Markus.Elfring@web.de>
Cc: cocci@inria.fr
Subject: Re: [cocci] Transforming source code according to the usage of a predicate
Date: Mon, 26 Dec 2022 12:19:57 +0100 (CET)	[thread overview]
Message-ID: <9fcc50af-da1a-6d71-934-b87d383ed38c@inria.fr> (raw)
In-Reply-To: <ae73c3b9-1f8e-4069-5bce-9380a187e1ac@web.de>

[-- Attachment #1: Type: text/plain, Size: 785 bytes --]

> > Don't you want something like
> >
> > expression list e1,e2;
> >
> > and then call(e1,active,e2)
>
>
> Does the specification of this metavariable type indicate the expectation
> that the applied metavariables will receive contents?

No, it should not.  Lists can be empty.

julia

> The boolean value can occasionally occur also between other parameters.
>
>
> Branch (or compound) isomorphisms are supported to some degree.
> https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/87350d742df39d847b15af39865329c2fe23460d/standard.iso#L492
>
> It seems that I am looking also for further software evolution according to
> the comment “maybe a cocci patch should require something that looks like
> what is on the left above to occur in a if or while”.
>
> Regards,
> Markus
>
>

  reply	other threads:[~2022-12-26 11:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-25 16:42 [cocci] Transforming source code according to the usage of a predicate Markus Elfring
2022-12-26  6:41 ` Julia Lawall
2022-12-26 11:12   ` Markus Elfring
2022-12-26 11:19     ` Julia Lawall [this message]
2022-12-26 11:36       ` Markus Elfring
2022-12-26 14:10       ` Markus Elfring
2022-12-27  9:36       ` [cocci] Another extension for the software documentation Markus Elfring
2022-12-27  9:47         ` Julia Lawall
2022-12-27 11:40           ` Markus Elfring
2022-12-27 12:53             ` Julia Lawall
2022-12-27 13:00               ` Markus Elfring
2023-01-07 11:46       ` [cocci] Working with filled data structures Markus Elfring
2023-01-07 12:55         ` Julia Lawall
2023-01-07 13:11           ` Markus Elfring
2023-01-07 13:25             ` Julia Lawall
2023-01-07 13:34               ` Markus Elfring
2023-01-07 13:45                 ` Julia Lawall
2023-01-07 13:56                   ` 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=9fcc50af-da1a-6d71-934-b87d383ed38c@inria.fr \
    --to=julia.lawall@inria.fr \
    --cc=Markus.Elfring@web.de \
    --cc=cocci@inria.fr \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.