Skip to content

Commit

Permalink
Rename #includes to C++ style
Browse files Browse the repository at this point in the history
Find/replace of:

with C++ counterparts.  Changed only vtk*.cxx files.
Didn’t touch .h or .c or any 3rd party.
  • Loading branch information
seanm committed Jan 29, 2016
1 parent 4f43463 commit 849ef99
Show file tree
Hide file tree
Showing 288 changed files with 339 additions and 339 deletions.
2 changes: 1 addition & 1 deletion CMake/vtkRequireLargeFilesSupport.cxx
Expand Up @@ -4,7 +4,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <cassert>
#include <stdio.h>
#include <cstdio>

int main( int, char **argv )
{
Expand Down
2 changes: 1 addition & 1 deletion CMake/vtkTestSocklenT.cxx
@@ -1,4 +1,4 @@
#include <stdio.h>
#include <cstdio>
#include <cstdlib>
#if !defined(_WIN32) || defined(__CYGWIN__)
# include <sys/types.h>
Expand Down
2 changes: 1 addition & 1 deletion CMake/vtkTestSyncBuiltins.cxx
@@ -1,4 +1,4 @@
#include <stdio.h>
#include <cstdio>
#include <cstdlib>

int main()
Expand Down
2 changes: 1 addition & 1 deletion Charts/Core/vtkColorTransferFunctionItem.cxx
Expand Up @@ -24,7 +24,7 @@
#include "vtkPoints2D.h"

#include <cassert>
#include <math.h>
#include <cmath>

//-----------------------------------------------------------------------------
vtkStandardNewMacro(vtkColorTransferFunctionItem);
Expand Down
2 changes: 1 addition & 1 deletion Common/ComputationalGeometry/vtkParametricEllipsoid.cxx
Expand Up @@ -15,7 +15,7 @@
#include "vtkParametricEllipsoid.h"
#include "vtkObjectFactory.h"
#include "vtkMath.h"
#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkParametricEllipsoid);

Expand Down
Expand Up @@ -15,7 +15,7 @@
#include "vtkParametricSuperEllipsoid.h"
#include "vtkObjectFactory.h"
#include "vtkMath.h"
#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkParametricSuperEllipsoid);

Expand Down
2 changes: 1 addition & 1 deletion Common/ComputationalGeometry/vtkParametricSuperToroid.cxx
Expand Up @@ -15,7 +15,7 @@
#include "vtkParametricSuperToroid.h"
#include "vtkObjectFactory.h"
#include "vtkMath.h"
#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkParametricSuperToroid);

Expand Down
4 changes: 2 additions & 2 deletions Common/Core/vtkCollection.cxx
Expand Up @@ -19,8 +19,8 @@
#include "vtkObjectFactory.h"

#include <cassert>
#include <stdlib.h>
#include <math.h>
#include <cstdlib>
#include <cmath>

vtkStandardNewMacro(vtkCollection);

Expand Down
2 changes: 1 addition & 1 deletion Common/Core/vtkObjectFactory.cxx
Expand Up @@ -23,7 +23,7 @@

#include "vtksys/Directory.hxx"

#include <ctype.h>
#include <cctype>


vtkObjectFactoryCollection* vtkObjectFactory::RegisteredFactories = 0;
Expand Down
4 changes: 2 additions & 2 deletions Common/Core/vtkOldStyleCallbackCommand.cxx
Expand Up @@ -17,8 +17,8 @@
#include "vtkSetGet.h"
#include "vtkObject.h"

#include <string.h>
#include <ctype.h>
#include <cstring>
#include <cctype>

//----------------------------------------------------------------
vtkOldStyleCallbackCommand::vtkOldStyleCallbackCommand()
Expand Down
2 changes: 1 addition & 1 deletion Common/Core/vtkScalarsToColors.cxx
Expand Up @@ -24,7 +24,7 @@

#include <map>

#include <math.h>
#include <cmath>

// A helper map for quick lookups of annotated values.
class vtkScalarsToColors::vtkInternalAnnotatedValueMap :
Expand Down
2 changes: 1 addition & 1 deletion Common/DataModel/vtkBoundingBox.cxx
Expand Up @@ -16,7 +16,7 @@
#include "vtkMath.h"
#include "vtkPlane.h"
#include <cassert>
#include <math.h>
#include <cmath>

// ---------------------------------------------------------------------------
namespace
Expand Down
2 changes: 1 addition & 1 deletion Common/DataModel/vtkCellLocator.cxx
Expand Up @@ -21,7 +21,7 @@
#include "vtkPolyData.h"
#include "vtkBox.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkCellLocator);

Expand Down
2 changes: 1 addition & 1 deletion Common/DataModel/vtkDataSet.cxx
Expand Up @@ -28,7 +28,7 @@
#include "vtkSmartPointer.h"
#include "vtkStructuredData.h"

#include <math.h>
#include <cmath>


//----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion Common/DataModel/vtkImplicitBoolean.cxx
Expand Up @@ -17,7 +17,7 @@
#include "vtkImplicitFunctionCollection.h"
#include "vtkObjectFactory.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkImplicitBoolean);

Expand Down
2 changes: 1 addition & 1 deletion Common/DataModel/vtkImplicitSum.cxx
Expand Up @@ -18,7 +18,7 @@
#include "vtkImplicitFunctionCollection.h"
#include "vtkObjectFactory.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkImplicitSum);

Expand Down
2 changes: 1 addition & 1 deletion Common/DataModel/vtkPerlinNoise.cxx
Expand Up @@ -14,7 +14,7 @@
=========================================================================*/
#include "vtkPerlinNoise.h"
#include "vtkObjectFactory.h"
#include <math.h>
#include <cmath>
#include <cassert>

vtkStandardNewMacro(vtkPerlinNoise);
Expand Down
2 changes: 1 addition & 1 deletion Common/DataModel/vtkPlanes.cxx
Expand Up @@ -19,7 +19,7 @@
#include "vtkPlane.h"
#include "vtkPoints.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkPlanes);
vtkCxxSetObjectMacro(vtkPlanes,Points,vtkPoints);
Expand Down
2 changes: 1 addition & 1 deletion Common/DataModel/vtkStructuredPoints.cxx
Expand Up @@ -15,7 +15,7 @@
#include "vtkStructuredPoints.h"
#include "vtkObjectFactory.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkStructuredPoints);

Expand Down
2 changes: 1 addition & 1 deletion Common/DataModel/vtkSuperquadric.cxx
Expand Up @@ -22,7 +22,7 @@
#include "vtkSuperquadric.h"
#include "vtkObjectFactory.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkSuperquadric);

Expand Down
2 changes: 1 addition & 1 deletion Common/DataModel/vtkXMLDataElement.cxx
Expand Up @@ -16,7 +16,7 @@

#include "vtkObjectFactory.h"

#include <ctype.h>
#include <cctype>
#include <sstream>
using std::ostringstream;
using std::istringstream;
Expand Down
2 changes: 1 addition & 1 deletion Common/ExecutionModel/vtkImageToStructuredPoints.cxx
Expand Up @@ -24,7 +24,7 @@
#include "vtkStreamingDemandDrivenPipeline.h"
#include "vtkStructuredPoints.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkImageToStructuredPoints);

Expand Down
2 changes: 1 addition & 1 deletion Common/Math/vtkMatrix3x3.cxx
Expand Up @@ -17,7 +17,7 @@
#include "vtkObjectFactory.h"

#include <cstdlib>
#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkMatrix3x3);

Expand Down
2 changes: 1 addition & 1 deletion Common/Math/vtkMatrix4x4.cxx
Expand Up @@ -17,7 +17,7 @@
#include "vtkObjectFactory.h"

#include <cstdlib>
#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkMatrix4x4);

Expand Down
4 changes: 2 additions & 2 deletions Common/Misc/vtkErrorCode.cxx
Expand Up @@ -14,8 +14,8 @@
=========================================================================*/
#include "vtkErrorCode.h"

#include <string.h>
#include <ctype.h>
#include <cstring>
#include <cctype>
#include <errno.h>

// this list should only contain the initial, contiguous
Expand Down
2 changes: 1 addition & 1 deletion Common/Misc/vtkFunctionParser.cxx
Expand Up @@ -15,7 +15,7 @@
#include "vtkFunctionParser.h"
#include "vtkObjectFactory.h"

#include <ctype.h>
#include <cctype>

vtkStandardNewMacro(vtkFunctionParser);

Expand Down
6 changes: 3 additions & 3 deletions Common/System/vtkDirectory.cxx
Expand Up @@ -77,12 +77,12 @@ void vtkDirectory::PrintSelf(ostream& os, vtkIndent indent)
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__MINGW32__)
#include "vtkWindows.h"
#include <io.h>
#include <ctype.h>
#include <cctype>
#include <direct.h>
#include <fcntl.h>
#include <stdio.h>
#include <cstdio>
#include <cstdlib>
#include <string.h>
#include <cstring>
#include <sys/types.h>

int vtkDirectory::Open(const char* name)
Expand Down
4 changes: 2 additions & 2 deletions Common/System/vtkSocket.cxx
Expand Up @@ -42,8 +42,8 @@
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <cstring>
#include <cstdio>
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkAssignAttribute.cxx
Expand Up @@ -23,7 +23,7 @@
#include "vtkInformationVector.h"
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
#include <ctype.h>
#include <cctype>

#include <cassert>

Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkClipPolyData.cxx
Expand Up @@ -30,7 +30,7 @@
#include "vtkTriangle.h"
#include "vtkIncrementalPointLocator.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkClipPolyData);
vtkCxxSetObjectMacro(vtkClipPolyData,ClipFunction,vtkImplicitFunction);
Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkCompositeCutter.cxx
Expand Up @@ -31,7 +31,7 @@
#include "vtkStreamingDemandDrivenPipeline.h"
#include "vtkAppendPolyData.h"

#include <math.h>
#include <cmath>
#include "vtkObjectFactory.h"
#include "vtkCompositeDataIterator.h"
#include "vtkSmartPointer.h"
Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkContourFilter.cxx
Expand Up @@ -45,7 +45,7 @@
#include "vtkIncrementalPointLocator.h"
#include "vtkContourHelper.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkContourFilter);
vtkCxxSetObjectMacro(vtkContourFilter,ScalarTree,vtkScalarTree);
Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkContourGrid.cxx
Expand Up @@ -37,7 +37,7 @@
#include "vtkPointLocator.h"
#include "vtkIncrementalPointLocator.h"
#include "vtkContourHelper.h"
#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkContourGrid);

Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkCutter.cxx
Expand Up @@ -49,7 +49,7 @@
#include "vtkContourHelper.h"

#include <algorithm>
#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkCutter);
vtkCxxSetObjectMacro(vtkCutter,CutFunction,vtkImplicitFunction);
Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkFlyingEdges2D.cxx
Expand Up @@ -25,7 +25,7 @@
#include "vtkStreamingDemandDrivenPipeline.h"
#include "vtkSMPTools.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkFlyingEdges2D);

Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkFlyingEdges3D.cxx
Expand Up @@ -28,7 +28,7 @@
#include "vtkMarchingCubesTriangleCases.h"
#include "vtkSMPTools.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkFlyingEdges3D);

Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkFlyingEdgesPlaneCutter.cxx
Expand Up @@ -29,7 +29,7 @@
#include "vtkPlane.h"
#include "vtkSMPTools.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkFlyingEdgesPlaneCutter);
vtkCxxSetObjectMacro(vtkFlyingEdgesPlaneCutter,Plane,vtkPlane);
Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkGridSynchronizedTemplates3D.cxx
Expand Up @@ -39,7 +39,7 @@
#include "vtkUnsignedShortArray.h"
#include "vtkPolygonBuilder.h"
#include "vtkSmartPointer.h"
#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkGridSynchronizedTemplates3D);

Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkMarchingSquares.cxx
Expand Up @@ -35,7 +35,7 @@
#include "vtkUnsignedShortArray.h"
#include "vtkIncrementalPointLocator.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkMarchingSquares);

Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkMaskFields.cxx
Expand Up @@ -21,7 +21,7 @@
#include "vtkInformationVector.h"
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
#include <ctype.h>
#include <cctype>

vtkStandardNewMacro(vtkMaskFields);

Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkRearrangeFields.cxx
Expand Up @@ -24,7 +24,7 @@
#include "vtkInformationVector.h"
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
#include <ctype.h>
#include <cctype>

vtkStandardNewMacro(vtkRearrangeFields);

Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkRectilinearSynchronizedTemplates.cxx
Expand Up @@ -40,7 +40,7 @@
#include "vtkPolygonBuilder.h"
#include "vtkSmartPointer.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkRectilinearSynchronizedTemplates);

Expand Down
2 changes: 1 addition & 1 deletion Filters/Core/vtkSynchronizedTemplates2D.cxx
Expand Up @@ -34,7 +34,7 @@
#include "vtkUnsignedLongArray.h"
#include "vtkUnsignedShortArray.h"

#include <math.h>
#include <cmath>

vtkStandardNewMacro(vtkSynchronizedTemplates2D);

Expand Down

0 comments on commit 849ef99

Please sign in to comment.