I think that you can replace a variable name in a complex declaration, or add or remove its initialization, but not remove the initialization as a whole. The way Coccinelle treats such declarations, it doesn't know if the whole declaration should be remove, or just the single variable.
julia On Fri, 24 Aug 2012, Arie Middelkoop wrote: > On 24/08/12 14:10, Nicolas Palix wrote: > > Julia/Arie, maybe providing Ast_c manipulation functions and access > > to the Pretty_print_c would help a lot in such cases. > > Ocaml scripts should have access to Ast_c and Pretty_print_c. There is at > least one test in the tests directory that does so. > > Python scripts have not, and I expect that it's pretty difficult to give them > access to that functionality... > > Arie > _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
