Updates will be applied April 15th at 12pm EDT (UTC-0400). GitLab could be a little slow between 12 - 12:45pm EDT.

Commit 01ae7eec authored by Sean McBride's avatar Sean McBride

Applied clang-tidy modernize-deprecated-headers fixes

Changes C style header names to C++
parent 1742bb3a
......@@ -21,7 +21,7 @@
#include "vtkMath.h"
#include "vtkMathUtilities.h"
#include <math.h>
#include <cmath>
#include "vtkTestErrorObserver.h"
......
......@@ -3,7 +3,7 @@
#include "vtkMultiThreader.h"
#include "vtksys/SystemTools.hxx"
#include <stdlib.h>
#include <cstdlib>
typedef struct {
......
......@@ -15,7 +15,7 @@
#define VTK_STREAMS_FWD_ONLY // like wrapper-generated sources
#include "vtkSystemIncludes.h"
#include <stdio.h> // test covers NOT including <iostream>
#include <cstdio> // test covers NOT including <iostream>
#include <string>
int TestOStreamWrapper(int, char *[])
......
......@@ -2,7 +2,7 @@
#include "vtkObjectFactory.h"
#include <errno.h>
#include <cerrno>
vtkStandardNewMacro(vtkConditionVariable);
......
......@@ -24,7 +24,7 @@
#include "vtkTable.h"
#include "vtkVariantArray.h"
#include <time.h>
#include <ctime>
#include <vector>
using namespace std;
......
......@@ -31,8 +31,8 @@
#include "vtkVariant.h"
#include "vtkSmartPointer.h"
#include <math.h>
#include <string.h>
#include <cmath>
#include <cstring>
// Make a dummy image filter that does nothing but call CopyAttributeData.
class vtkDummyImageFilter : public vtkImageAlgorithm
......
......@@ -14,7 +14,7 @@
=========================================================================*/
#include "vtkAmoebaMinimizer.h"
#include <math.h>
#include <cmath>
// the function to be minimized
static void vtkFunctionToMinimize(void *arg)
......
......@@ -16,7 +16,7 @@
#include <cstring>
#include <cctype>
#include <errno.h>
#include <cerrno>
// this list should only contain the initial, contiguous
// set of error codes and should not include UserError
......
......@@ -41,7 +41,7 @@
#include <netdb.h>
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
#include <cerrno>
#include <cstring>
#include <cstdio>
#endif
......
......@@ -30,7 +30,7 @@
#include <cassert>
#include <iomanip>
#include <iterator>
#include <stdarg.h>
#include <cstdarg>
#include <string>
#include <vector>
......
......@@ -24,8 +24,8 @@
#include "vtkStreamingDemandDrivenPipeline.h"
#include <math.h>
#include <string.h>
#include <cmath>
#include <cstring>
#include <sstream>
//----------------------------------------------------------------------------
......
......@@ -42,7 +42,7 @@
#define VTK_CREATE(type, var) \
vtkSmartPointer<type> var = vtkSmartPointer<type>::New()
#include <time.h>
#include <ctime>
#include <vector>
......
......@@ -23,7 +23,7 @@
#include <vtkNew.h>
#include <vtkSmartPointer.h>
#include <time.h>
#include <ctime>
static vtkSmartPointer<vtkDataArray> MonotonicValues(vtkIdType numValues)
{
......
......@@ -22,7 +22,7 @@
#include "vtkTable.h"
#include <sstream>
#include "math.h"
#include <cmath>
vtkStandardNewMacro(vtkSplitColumnComponents);
//---------------------------------------------------------------------------
......
......@@ -22,7 +22,7 @@
extern "C" {
#include "vtk_jpeg.h"
#include <setjmp.h>
#include <csetjmp>
}
......
......@@ -24,7 +24,7 @@
extern "C" {
#include "vtk_jpeg.h"
#include <setjmp.h>
#include <csetjmp>
}
vtkStandardNewMacro(vtkJPEGWriter);
......
......@@ -19,8 +19,8 @@
#include "LSDynaFamily.h"
#include <errno.h>
#include <ctype.h>
#include <cerrno>
#include <cctype>
#include <cassert>
#include <string>
......
......@@ -60,7 +60,7 @@
#include "vtkUnstructuredGrid.h"
#include <errno.h>
#include <cerrno>
#include <cmath>
#include <cctype>
......
......@@ -24,7 +24,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkObjectFactory.h"
#include "vtkStdString.h"
#include <stdarg.h> // va_list
#include <cstdarg> // va_list
#include <vector>
......
......@@ -23,7 +23,7 @@
#define VTK_CREATE(type, name) \
vtkSmartPointer<type> name = vtkSmartPointer<type>::New()
#include <math.h>
#include <cmath>
const int SPLAT_IMAGE_SIZE = 100;
......
......@@ -20,7 +20,7 @@
#include "vtkTestUtilities.h"
#include <math.h>
#include <cmath>
int ImageAccumulate(int , char *[])
{
......
......@@ -24,7 +24,7 @@
#include "vtkTestUtilities.h"
#include <math.h>
#include <cmath>
int ImageHistogramStatistics(int argc, char *argv[])
{
......
......@@ -30,8 +30,8 @@
#include "vtkImageProperty.h"
#include "vtkSmartPointer.h"
#include <string.h>
#include <math.h>
#include <cstring>
#include <cmath>
// this contour used to cause trouble
static double contour[262][2] = {
......
......@@ -39,8 +39,8 @@
#include "vtkImageProperty.h"
#include "vtkSmartPointer.h"
#include <string.h>
#include <math.h>
#include <cstring>
#include <cmath>
int TestStencilWithPolyDataSurface(int, char *[])
{
......
......@@ -45,7 +45,7 @@
#ifdef _MSC_VER
# include <stddef.h>
#else
# include <stdint.h>
# include <cstdint>
#endif
vtkStandardNewMacro(vtkImageReslice);
......
......@@ -19,7 +19,7 @@
#include "vtkImageData.h"
#include "vtkObjectFactory.h"
#include "vtkImageMapToColors.h"
#include "math.h"
#include <cmath>
#include <algorithm>
#include <sstream>
......
......@@ -26,7 +26,7 @@
#include "vtkTestUtilities.h"
#include "vtkRegressionTestImage.h"
#include <math.h>
#include <cmath>
int TestBareScalarsToColors(int argc, char *argv[])
{
......
......@@ -35,7 +35,7 @@
#include "vtkUnsignedLongArray.h"
#include "vtkUnsignedShortArray.h"
#include <math.h>
#include <cmath>
namespace {
template<typename T>
......
......@@ -25,7 +25,7 @@
#include "vtkTestUtilities.h"
#include "vtkRegressionTestImage.h"
#include <math.h>
#include <cmath>
int TestMapVectorsAsRGBColors(int argc, char *argv[])
{
......
......@@ -26,7 +26,7 @@
#include "vtkTestUtilities.h"
#include "vtkRegressionTestImage.h"
#include <math.h>
#include <cmath>
int TestMapVectorsToColors(int argc, char *argv[])
{
......
......@@ -21,7 +21,7 @@
#include "vtkCriticalSection.h"
#include "stdlib.h"
#include <cstdlib>
static vtkSimpleCriticalSection vtkUseMesaClassesCriticalSection;
static vtkSimpleCriticalSection vtkOffScreenOnlyModeCriticalSection;
......
......@@ -32,7 +32,7 @@
#include "fonts/vtkEmbeddedFonts.h"
#ifndef _MSC_VER
# include <stdint.h>
# include <cstdint>
#endif
#include <limits>
......
......@@ -22,7 +22,7 @@
#include "vtkPolyData.h"
#include "vtkTransformPolyDataFilter.h"
#include <locale.h>
#include <clocale>
vtkStandardNewMacro(vtkVectorText);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment