>>. Did you try out to work with SmPL ellipses and disjunctions for this purpose?
>
> I didn't it, do you have any suggestions or sample that is it possible
> to solve my problem? something to based on.
Can you get further development ideas from a transformation approach
like the following?
@replacement@
struct mydata SMD;
struct mydata* SMDP;
format F =~ "s";
@@
my_printf(
- "%@F@"
+ "%m"
,
(
+ &
SMD
- .name
|
SMDP
- ->name
)
);
> I mean, the Coccinelle/Python support.
This programming interface contains also open issues for further considerations
as you can see from a topic like “Propagating values back from Python script
to SmPL rule with other metavariable type than “identifier””.
https://github.com/coccinelle/coccinelle/issues/86
Regards,
Markus