From: elfring@users.sourceforge.net (SF Markus Elfring)
To: cocci@systeme.lip6.fr
Subject: [Cocci] Finding non-zero returning functions with SmPL
Date: Mon, 27 Jul 2015 18:02:46 +0200 [thread overview]
Message-ID: <55B65626.4040209@users.sourceforge.net> (raw)
In-Reply-To: <alpine.DEB.2.10.1507271733380.2453@hadrien>
>> *return_type work(...)
>> {
>> <+...
>> return ... when != 0
>> when != NULL
>
> You can't put when on a ... that represents a single expression.
Thanks for your quick clarification.
Would it make sense that the Coccinelle software will also support
this construct at such a script place directly?
> expression e != {0,NULL};
The use of this SmPL metavariable seems to work to some degree.
Regards,
Markus
prev parent reply other threads:[~2015-07-27 16:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-27 15:18 [Cocci] Finding non-zero returning functions with SmPL SF Markus Elfring
2015-07-27 15:34 ` Julia Lawall
2015-07-27 16:02 ` SF Markus Elfring [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=55B65626.4040209@users.sourceforge.net \
--to=elfring@users.sourceforge.net \
--cc=cocci@systeme.lip6.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox