>> BAD:!!!!! #define MACRO(name) snprintf(pg, PAGE_SIZE, %u\n", ptr->name) > > If a " is missing then the code can't be parsed and Coccinelle won't do > anything.
I suggest to take additional software improvement opportunities into account. Should a semantic patch language script become able to fix such questionable source code? See also: Add a metavariable for the handling of source code https://github.com/coccinelle/coccinelle/issues/140 Regards, Markus _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
