All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Senna Tschudin <peter.senna@gmail.com>
To: Julia Lawall <julia.lawall@inria.fr>
Cc: cocci@inria.fr
Subject: Re: [cocci] Returning statically allocated nested structs
Date: Thu, 28 Mar 2024 15:57:20 +0100	[thread overview]
Message-ID: <CA+MoWDqmRhSKF-T9o_XjseBtCGcqibMVCQ2KukZwn=x13ofaZg@mail.gmail.com> (raw)
In-Reply-To: <e669e126-f627-646e-d069-baca9c3e0eb@inria.fr>

On Thu, Mar 28, 2024 at 3:49 PM Julia Lawall <julia.lawall@inria.fr> wrote:
>
>
>
> On Thu, 28 Mar 2024, Peter Senna Tschudin wrote:
>
> > Thanks Julia,
> >
> > Your question about nesting inspired me to a simpler solution:
> >
> > @rule1@
>
> You could add the word exists after rule1, in case some other returns do
> something different.

Oh thanks, Coccinelle found 36 instead of 35 occurrences after adding exists.

Thanks!

[...]


-- 
                         Peter

      reply	other threads:[~2024-03-28 14:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-28  8:41 [cocci] Returning statically allocated nested structs Peter Senna Tschudin
2024-03-28  9:07 ` Julia Lawall
2024-03-28 10:00   ` Peter Senna Tschudin
2024-03-28 10:10     ` Julia Lawall
2024-03-28 13:03       ` Peter Senna Tschudin
2024-03-28 14:49         ` Julia Lawall
2024-03-28 14:57           ` Peter Senna Tschudin [this message]

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='CA+MoWDqmRhSKF-T9o_XjseBtCGcqibMVCQ2KukZwn=x13ofaZg@mail.gmail.com' \
    --to=peter.senna@gmail.com \
    --cc=cocci@inria.fr \
    --cc=julia.lawall@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.