From: Guenter Roeck <linux@roeck-us.net>
To: cocci@systeme.lip6.fr
Subject: [Cocci] matching concatenated preprocessor tokens
Date: Tue, 22 Jan 2019 19:22:55 -0800 [thread overview]
Message-ID: <405551ab-2417-dc55-f429-421ae79a5d06@roeck-us.net> (raw)
Hi,
I am trying to match a construct such as
#define func(a,b,c) \
some_call(a##b, c, NULL)
to replace it with, for example,
#define func(a,b,c) \
some_other_call(a##b, c)
Is this possible with coccinelle ?
I tried several variants, but I don't seem to be able to match "a##b".
Thanks,
Guenter
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci
next reply other threads:[~2019-01-23 3:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-23 3:22 Guenter Roeck [this message]
2019-01-23 6:35 ` [Cocci] matching concatenated preprocessor tokens Julia Lawall
2019-01-23 14:11 ` Guenter Roeck
2019-01-23 14:41 ` Julia Lawall
2019-01-23 17:49 ` Guenter Roeck
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=405551ab-2417-dc55-f429-421ae79a5d06@roeck-us.net \
--to=linux@roeck-us.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;
as well as URLs for NNTP newsgroup(s).