>     I suggest to take another look at presented implementation details.
>
> I did it,

Such a try is generally nice.


> even digging the grammar and ALL samples and didn't find anything similar
> to handle format strings with multiple parameters as mentioned.

Can this view trigger opportunities to improve corresponding clarification 
attempts?


>     > not for *my_printf("%d here also, tt=%s | %s and %m\n", id, h2->name, 
> h2->name, s2);*
>
>     Such a function call is using more parameters. Would you get into
>     the mood then to specify additional metavariables in SmPL script variants?
>
> I can't because the calls around the code have different uses with different 
> variants. 

I suggest to reconsider your conclusion.
How will corresponding software development experiments evolve?


>     How often do you fiddle with source code transformations around
>     format strings?
>
> Well, I've used it before but for me, it is the first "complex" case
> that I am working on.

I hope that such information can help also in our communication.
Are you looking for further help according to an usual learning experience?


> even I still digging trying to figure out how to do that

Do you find the available software documentation helpful?
https://github.com/coccinelle/coccinelle/blob/ed1eb8e06f800739d3992158d36945c0c4c6f0c7/docs/manual/cocci_syntax.tex#L337


> but I still not sure if the Coccelinne is capable to do that yes or no.

How would you like to reduce involved uncertainty?

Which level of understanding did you achieve for the following functionality
so far?
* SmPL ellipsis
* SmPL disjunction

Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to