From: SF Markus Elfring <elfring@users.sourceforge.net>
To: Nicholas Mc Guire <hofrat@osadl.org>
Cc: Nicholas Mc Guire <der.herr@hofr.at>,
cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH RFC] Coccinelle: Check for return not matching function signature
Date: Wed, 06 May 2015 09:15:56 +0200 [thread overview]
Message-ID: <5549BFAC.2010609@users.sourceforge.net> (raw)
In-Reply-To: <1430820761-28122-1-git-send-email-hofrat@osadl.org>
> +virtual context
> +virtual org
> +virtual report
Where do you want to reuse these variables in your SmPL scripts?
> +@match@
> +identifier f,ret;
> +position p;
> +type T1,T2;
> +@@
> +
> +T1 f(...) {
> + T2 ret;
Will it be more helpful to mark only such variable declarations
where the specified data type should be reconsidered
by a minus character or an asterisk (instead of the following
return statement)?
> +<+...
> +* return@p ret
> +;
> +...+>
> +}
Regards,
Markus
prev parent reply other threads:[~2015-05-06 7:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-05 10:12 [PATCH RFC] Coccinelle: Check for return not matching function signature Nicholas Mc Guire
2015-05-05 12:32 ` SF Markus Elfring
2015-05-05 13:04 ` Nicholas Mc Guire
2015-05-05 13:29 ` [Cocci] " Julia Lawall
2015-05-05 13:45 ` SF Markus Elfring
2015-05-05 14:40 ` Julia Lawall
2015-05-05 16:00 ` Nicholas Mc Guire
2015-05-05 21:24 ` Julia Lawall
2015-05-08 6:59 ` Nicholas Mc Guire
2015-05-05 16:25 ` SF Markus Elfring
2015-05-05 21:46 ` Julia Lawall
2015-05-06 7:15 ` 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=5549BFAC.2010609@users.sourceforge.net \
--to=elfring@users.sourceforge.net \
--cc=cocci@systeme.lip6.fr \
--cc=der.herr@hofr.at \
--cc=hofrat@osadl.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox