> I guess that another small test approach will trigger further development
> considerations.
@replacement@
@@
if (...)
-{
+info:
+puts("surprise");
-}
…
elfring@Sonne:~/Projekte/Coccinelle/Probe> spatch
empty_compound_statement_for_if1.c
replace_empty_compound_statement_for_if5.cocci
…
@@ -1,5 +1,5 @@
void x(void)
{
-if (1) {
-}
+puts("surprise");
+if (1) info:
}
Can such a test result be confusing?
Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci