[vtk-developers] PROPOSAL: Changing VTK's indentation style

David Gobbi david.gobbi at gmail.com
Mon Oct 5 08:21:05 EDT 2015


On Thu, Sep 10, 2015 at 6:13 PM, Andrew Maclean <andrew.amaclean at gmail.com>
wrote:

>
> 4) All the existing code needs to be retroformatted. Presumably you will
> write a script to do this. It would be a good idea to add this script
> (python?) to Utilities so that the Slicer people and others can easily
> reformat their code if so desired.
>

I've written a python script to adjust the indentation, extra testing would
be very welcome:

  https://gist.github.com/dgobbi

To apply it to a lot of files, I recommend doing something like this:

  find <directories> -name "*.cxx" -exec python vtkindent.py {} +

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20151005/cce145f7/attachment.html>


More information about the vtk-developers mailing list