> At the moment, there seems to be a bug.  I will check on that.

I am also curious how the support will evolve further around
advanced data processing for format strings with the semantic
patch language.

Can another transformation approach become interesting for
a corresponding clarification?

@replacement@
struct mydata SMD;
format F =~ "s";
@@
 my_printf("%
-           @F@
+           m
           ",
+          &
           SMD
-             .name
          );

elfring@Sonne:~/Projekte/Coccinelle/Probe> spatch --parse-cocci 
Strace_Labs2.cocci
…
warning: replacement: metavariable F not used in the - or context code
warning: iso fld_to_ptr does not match the code below on line 10
…

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to