From: Ali Raza <ali.raza@samsung.com>
To: "cocci@inria.fr" <cocci@inria.fr>
Subject: [cocci] Function name change
Date: Sun, 2 Jun 2024 14:17:57 +0000 [thread overview]
Message-ID: <81137f7b03f14e0fa92ef726f552a102@samsung.com> (raw)
In-Reply-To: CGME20240602141758uscas1p292dac565d2e37b835caaccab029d456f@uscas1p2.samsung.com
[-- Attachment #1: Type: text/plain, Size: 553 bytes --]
Hi
I am new to using spatch, and I have been through many resources online but cant figure out how to write a patch for the following function name change.
I have the following.
MY_MACRO(foo(arg1, arg2,
arg3, arg4, arg5));
I want to change foo to bar, as follows.
MY_MACRO(bar(arg1, arg2,
arg3, arg4, arg5));
I have tried many versions of the following, but to no avail.
@@
expression E;
@@
<...
-foo(E)
+bar(E)
...>
Thanks!
Ali
[-- Attachment #2: Type: text/html, Size: 3665 bytes --]
next parent reply other threads:[~2024-06-02 14:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20240602141758uscas1p292dac565d2e37b835caaccab029d456f@uscas1p2.samsung.com>
2024-06-02 14:17 ` Ali Raza [this message]
2024-06-02 14:23 ` [cocci] Function name change Julia Lawall
[not found] ` <48ecf4ec00c942bb841a356567d2aef1@samsung.com>
2024-06-02 15:08 ` Julia Lawall
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=81137f7b03f14e0fa92ef726f552a102@samsung.com \
--to=ali.raza@samsung.com \
--cc=cocci@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).