On Tue, 22 Jan 2019, Guenter Roeck wrote:

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

I doubt that ## is supported in the matching language.  I will add it.

julia

>
> Thanks,
> Guenter
> _______________________________________________
> Cocci mailing list
> [email protected]
> https://systeme.lip6.fr/mailman/listinfo/cocci
>
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to