Re: [Cocci] Adjustments with SmPL after macros?

2019-10-17 Thread Markus Elfring
>> @replacement@ >> identifier M; >> @@ >> #define M >> -snprintf >> +spgprintf_d >> (...) > > I think you could put \ in your semantic patch, like in C, The escaping of line breaks would be required for the complete handling of logical source lines. Such functionality does not help with the sho

Re: [Cocci] Adjustments with SmPL after macros?

2019-10-16 Thread Markus Elfring
> You could try it? I observed that both variants (and others) fail for this issue. Can you reproduce the reported software difficulties also in your current test system? Regards, Markus ___ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.

Re: [Cocci] Adjustments with SmPL after macros?

2019-10-16 Thread Markus Elfring
>> @replacement@ >> identifier M; >> @@ >> #define M >> -snprintf >> +spgprintf_d >> (...) > > I think you could put \ in your semantic patch, like in C, I am interested also in the support for escaping of line breaks according to the desired handling of logical source lines. But how will the co

Re: [Cocci] Adjustments with SmPL after macros?

2019-10-16 Thread Julia Lawall
On Wed, 16 Oct 2019, Markus Elfring wrote: > > Anyway, to my understanding the goal was not to modify the #define part, > > but rather only the code part. > > Will it become supported by the semantic patch language to change > source code directly after the occurrence of an empty macro? > > @rep

Re: [Cocci] Adjustments with SmPL after macros?

2019-10-16 Thread Markus Elfring
> Anyway, to my understanding the goal was not to modify the #define part, > but rather only the code part. Will it become supported by the semantic patch language to change source code directly after the occurrence of an empty macro? @replacement@ identifier M; @@ #define M -snprintf +spgprintf