Skip to content

Reduce VTK brace indentation by 2 spaces

David Gobbi requested to merge dgobbi/vtk:reindent into master

This patch used the python script "vtk_reindent_code.py" to adjust all of the VTK braces so that they have the same indentation of the surrounding code, e.g.

if (condition)
{
  expression;
}

The script only changes whitespace, in order to minimize the impact on the git history. The script was applied with the following command line:

for d in Charts Common Deprecated Domains Examples Filters GUISupport Geovis IO Imaging Infovis Interaction Parallel Rendering Testing Views Web Wrapping; do
  for e in cxx cxx.in txx txx.in h h.in c c.in; do
    find "${d}" -name "*.${e}" -exec python Utilities/Maintenance/vtk_reindent_code.py {} +
  done
done

The wrappers were also adjusted so that they generate code according to the new style.

This MR is here mainly for curious onlookers. There is no set date for when this (or perhaps a similar) MR will be merged. My best guess is "sometime before the release of VTK 8".

Merge request reports