Re: [Cocci] Checking code layout for adding jump targets with SmPL

2019-11-01 Thread Markus Elfring
> 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 … @@

Re: [Cocci] Checking code layout for adding jump targets with SmPL

2019-11-01 Thread Markus Elfring
> How would you like to improve the pretty-printing for the Coccinelle software? I guess that another small test approach will trigger further development considerations. @replacement@ @@ if (...) -{ -} +info: +puts("surprise"); elfring@Sonne:~/Projekte/Coccinelle/Probe> spatch