On Mon, 22 Aug 2011, SF Markus Elfring wrote: > > On hte other hand, it pretty prints the generated code, so the new > > functions > > will necessarily cause the line numbers to change. > > Does this approach allow any fine-tuning? > Can the formatting algorithm consider different coding styles and > corresponding > policies?
There is an argument -smpl_spacing that causes generated code to follow the style used in the semantic patch. For example, if you add a conditional, you can write it as if ( test ) and the spaces after the parentheses will be preserved. julia _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
