From: elfring@users.sourceforge.net (SF Markus Elfring)
To: cocci@systeme.lip6.fr
Subject: [Cocci] string parameter concatenation
Date: Thu, 02 Oct 2014 14:52:50 +0200 [thread overview]
Message-ID: <542D4AA2.6060407@users.sourceforge.net> (raw)
In-Reply-To: <20141001130215.GB4701@rei.suse.cz>
> nit.cocci:
> @@
> expression list L;
> @@
> - f(L);
> + g(L);
Would it make sense and work to write a semantic patch rule like the following?
@replacement@
@@
-f
+g
(L);
Can the passed parameters be omitted from the desired adjustment by "the plus line"?
Regards,
Markus
next prev parent reply other threads:[~2014-10-02 12:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-01 13:02 [Cocci] string parameter concatenation Cyril Hrubis
2014-10-01 13:08 ` Julia Lawall
2014-10-01 13:21 ` SF Markus Elfring
2014-10-01 13:26 ` Julia Lawall
2014-10-01 18:28 ` Luis R. Rodriguez
2014-10-02 9:35 ` Cyril Hrubis
2014-10-02 10:24 ` Julia Lawall
2014-10-02 12:52 ` SF Markus Elfring [this message]
2014-10-02 13:04 ` Julia Lawall
2014-10-02 13:07 ` Cyril Hrubis
2014-10-02 13:37 ` Julia Lawall
2014-10-02 13:42 ` Cyril Hrubis
2014-10-02 17:00 ` Julia Lawall
2014-10-06 10:25 ` Cyril Hrubis
2014-10-06 10:49 ` Julia Lawall
2014-10-06 11:02 ` [Cocci] Configuration for alignment of function parameters? SF Markus Elfring
2014-10-17 5:53 ` [Cocci] string parameter concatenation Julia Lawall
2014-12-03 8:33 ` Cyril Hrubis
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=542D4AA2.6060407@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