Hi Sébastien, On Thu, Sep 10, 2015 at 10:52 PM, Sébastien Wilmet <[email protected]> wrote: > Renaming a GObject written in C can be done with some sed substitutions, > but after that the indentation is broken. > > Do you know a tool to rename a GObject while still keeping a good > indentation and coding style? >
A few years ago, LWN did some coverage of a semantic patching/indentation project for C called Coccinelle: http://coccinelle.lip6.fr/documentation.php https://lwn.net/Articles/315686/ https://lwn.net/Articles/380835/ I think this does exactly what you are looking for (and more). Cheers, Nirbheek -- ~Nirbheek Chauhan _______________________________________________ desktop-devel-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/desktop-devel-list
