From: Markus Elfring <Markus.Elfring@web.de>
To: Julia Lawall <julia.lawall@inria.fr>, cocci@inria.fr
Cc: tools@kernel.org, kernel-janitors@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [cocci] [RFC] Detecting unchecked return values (with SmPL)?
Date: Mon, 30 Nov 2026 15:00:16 +0100 [thread overview]
Message-ID: <992efd40-4f9f-48e3-83e8-ebff61c4f295@web.de> (raw)
In-Reply-To: <3241c2f-7d9-f7e-d2f5-1e7980340c4@inria.fr>
>> Macro and function calls for which a return value is not assigned to a variable
>> can be found also by a script (like the following) for the semantic patch language.
>>
>> @display@
>> identifier i;
>> statement s;
>> @@
>> (
>> *i(...);
>> &s
> &s seems totally unnecessary.
Would you find the following SmPL script variant more appropriate for
efficient source code searches?
@display2@
expression e;
identifier i;
@@
(e = i(...)
|
*i(...)
);
Would you be looking for more advanced data constraints here?
Regards,
Markus
next prev parent reply other threads:[~2026-11-30 14:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 13:00 [RFC] Detecting unchecked return values (with SmPL)? Markus Elfring
2026-11-30 13:00 ` [cocci] " Markus Elfring
2026-11-30 13:05 ` Julia Lawall
2026-11-30 13:05 ` Julia Lawall
2026-11-30 13:25 ` [cocci] " Markus Elfring
2026-11-30 13:52 ` Julia Lawall
2026-11-30 14:00 ` Markus Elfring [this message]
2026-11-30 15:49 ` Julia Lawall
2026-11-30 15:58 ` Markus Elfring
2026-11-30 16:01 ` Julia Lawall
2026-11-30 16:44 ` Markus Elfring
2026-12-01 8:46 ` [cocci] " Markus Elfring
2026-12-01 8:46 ` Markus Elfring
2026-12-01 12:00 ` Markus Elfring
2026-12-01 18:00 ` 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=992efd40-4f9f-48e3-83e8-ebff61c4f295@web.de \
--to=markus.elfring@web.de \
--cc=cocci@inria.fr \
--cc=julia.lawall@inria.fr \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tools@kernel.org \
/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.