cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* [Cocci] matching concatenated preprocessor tokens
@ 2019-01-23  3:22 Guenter Roeck
  2019-01-23  6:35 ` Julia Lawall
  0 siblings, 1 reply; 5+ messages in thread
From: Guenter Roeck @ 2019-01-23  3:22 UTC (permalink / raw)
  To: cocci

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-23 17:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-23  3:22 [Cocci] matching concatenated preprocessor tokens Guenter Roeck
2019-01-23  6:35 ` Julia Lawall
2019-01-23 14:11   ` Guenter Roeck
2019-01-23 14:41     ` Julia Lawall
2019-01-23 17:49       ` Guenter Roeck

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).