Commit 7cef24ea authored by Sean McBride's avatar Sean McBride
Browse files

Remove double underscore in header guards (.in & __vtk*_h form)

Used the following command:

find . \( -iname *.in -and -type f \) -exec perl -pi -w -e 's/__vtk(.*)_h/vtk$1_h/g;' {} \;

Fixes many, but not all, clang -Wreserved-id-macro warnings.

Change-Id: I86db91ad530c203347f2b0dfd29c31f843c3f2b7
parent 6dce5106
......@@ -12,8 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef __vtkDaxConfig_h
#define __vtkDaxConfig_h
#ifndef vtkDaxConfig_h
#define vtkDaxConfig_h
// Boost gives a bunch of warnings with nvcc if you don't specify how shared
// pointers should handle threads. Dax does not care (it is too careful about
......@@ -38,4 +38,4 @@
#include <dax/internal/Configure.h>
#include <dax/cont/DeviceAdapter.h>
#endif // __vtkDaxConfig_h
#endif // vtkDaxConfig_h
......@@ -70,8 +70,8 @@
// iterate over them together, use a struct or class to group them together
// and use a thread local of that class.
#ifndef __vtkSMPThreadLocal_h
#define __vtkSMPThreadLocal_h
#ifndef vtkSMPThreadLocal_h
#define vtkSMPThreadLocal_h
#include "vtkSystemIncludes.h"
#include <vector>
......
......@@ -31,8 +31,8 @@
// platform or compiler, mutexes, which are significantly slower, are used
// as a fallback.
#ifndef __vtkAtomicInt_h
#define __vtkAtomicInt_h
#ifndef vtkAtomicInt_h
#define vtkAtomicInt_h
#include "vtkCommonCoreModule.h" // For export macro
#include "vtkSystemIncludes.h"
......
......@@ -33,8 +33,8 @@
// Note that this particular implementation is designed to work in sequential
// mode and supports only 1 thread.
#ifndef __vtkSMPThreadLocal_h
#define __vtkSMPThreadLocal_h
#ifndef vtkSMPThreadLocal_h
#define vtkSMPThreadLocal_h
#include "vtkSystemIncludes.h"
#include <vector>
......
......@@ -73,8 +73,8 @@
// iterate over them together, use a struct or class to group them together
// and use a thread local of that class.
#ifndef __vtkSMPThreadLocal_h
#define __vtkSMPThreadLocal_h
#ifndef vtkSMPThreadLocal_h
#define vtkSMPThreadLocal_h
#include "vtkCommonCoreModule.h" // For export macro
......
......@@ -15,8 +15,8 @@
// .NAME vtkAtomicInt -
// .SECTION Description
#ifndef __vtkAtomicInt_h
#define __vtkAtomicInt_h
#ifndef vtkAtomicInt_h
#define vtkAtomicInt_h
#include <tbb/atomic.h>
......
......@@ -70,8 +70,8 @@
// iterate over them together, use a struct or class to group them together
// and use a thread local of that class.
#ifndef __vtkSMPThreadLocal_h
#define __vtkSMPThreadLocal_h
#ifndef vtkSMPThreadLocal_h
#define vtkSMPThreadLocal_h
#include <tbb/enumerable_thread_specific.h>
......
......@@ -12,8 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef __vtkConfigure_h
#define __vtkConfigure_h
#ifndef vtkConfigure_h
#define vtkConfigure_h
/* This header is configured by VTK's build process. */
......
......@@ -14,8 +14,8 @@
=========================================================================*/
#ifndef __vtkFloatingPointExceptionsConfigure_h
#define __vtkFloatingPointExceptionsConfigure_h
#ifndef vtkFloatingPointExceptionsConfigure_h
#define vtkFloatingPointExceptionsConfigure_h
#cmakedefine VTK_HAS_FEENABLEEXCEPT
......@@ -24,4 +24,4 @@
# define VTK_USE_FENV 1
#endif
#endif //__vtkFloatingPointExceptionsConfigure_h
#endif //vtkFloatingPointExceptionsConfigure_h
......@@ -18,8 +18,8 @@
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
----------------------------------------------------------------------------*/
#ifndef __vtkMathConfigure_h
#define __vtkMathConfigure_h
#ifndef vtkMathConfigure_h
#define vtkMathConfigure_h
#include <cmath>
#include <float.h> // for _isnan, _finite on Win32
......@@ -100,4 +100,4 @@
# define VTK_NON_FINITE_CAUSES_EXCEPTIONS
#endif
#endif //__vtkMathConfigure_h
#endif //vtkMathConfigure_h
......@@ -12,8 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef __vtkToolkits_h
#define __vtkToolkits_h
#ifndef vtkToolkits_h
#define vtkToolkits_h
/* This header is configured by VTK's build process. */
......
......@@ -18,8 +18,8 @@
// provides methods for insertion and retrieval of values and will
// automatically resize itself to hold new data.
#ifndef __vtkType@VTK_TYPE_NAME@Array_h
#define __vtkType@VTK_TYPE_NAME@Array_h
#ifndef vtkType@VTK_TYPE_NAME@Array_h
#define vtkType@VTK_TYPE_NAME@Array_h
#include "vtkCommonCoreModule.h" // For export macro
#include "vtk@VTK_TYPE_NATIVE@Array.h"
......
......@@ -12,8 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef __vtkVersionMacros_h
#define __vtkVersionMacros_h
#ifndef vtkVersionMacros_h
#define vtkVersionMacros_h
/* In development versions the minor component is odd and the build
component encodes a date in CCYYMMDD format. In release versions
......
......@@ -13,8 +13,8 @@
=========================================================================*/
#ifndef __vtkDomainsChemistryConfigure_h
#define __vtkDomainsChemistryConfigure_h
#ifndef vtkDomainsChemistryConfigure_h
#define vtkDomainsChemistryConfigure_h
/* Where the Blue Obelisk Data Repository files are installed */
#define VTK_BODR_DATA_PATH "@CMAKE_INSTALL_PREFIX@/@VTK_INSTALL_DATA_DIR@/vtkDomainsChemistry"
......
......@@ -13,8 +13,8 @@
=========================================================================*/
#ifndef __vtkFiltersStatisticsGnuRConfigure_h
#define __vtkFiltersStatisticsGnuRConfigure_h
#ifndef vtkFiltersStatisticsGnuRConfigure_h
#define vtkFiltersStatisticsGnuRConfigure_h
/* Set the whether we have UINTPTR_T defined in support of the GNU R interface */
#cmakedefine HAVE_VTK_UINTPTR_T
......
......@@ -13,8 +13,8 @@
=========================================================================*/
#ifndef __vtkMFCConfigure_h
#define __vtkMFCConfigure_h
#ifndef vtkMFCConfigure_h
#define vtkMFCConfigure_h
#include "vtkConfigure.h"
......
......@@ -12,8 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef __vtkFFMPEGConfig_h
#define __vtkFFMPEGConfig_h
#ifndef vtkFFMPEGConfig_h
#define vtkFFMPEGConfig_h
/* This header is configured by VTK's build process. */
......
......@@ -12,8 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef __vtkIOMovieConfigure_h
#define __vtkIOMovieConfigure_h
#ifndef vtkIOMovieConfigure_h
#define vtkIOMovieConfigure_h
/* This header contains build settings for the vtkIOMovie module */
......
......@@ -13,8 +13,8 @@
=========================================================================*/
#ifndef __vtkIOMySQLTestingCxxConfigure_h
#define __vtkIOMySQLTestingCxxConfigure_h
#ifndef vtkIOMySQLTestingCxxConfigure_h
#define vtkIOMySQLTestingCxxConfigure_h
#cmakedefine VTK_MYSQL_TEST_URL
#ifdef VTK_MYSQL_TEST_URL
......
......@@ -13,8 +13,8 @@
=========================================================================*/
#ifndef __vtkIOODBCTestingCxxConfigure_h
#define __vtkIOODBCTestingCxxConfigure_h
#ifndef vtkIOODBCTestingCxxConfigure_h
#define vtkIOODBCTestingCxxConfigure_h
#cmakedefine VTK_ODBC_TEST_DSN
#ifdef VTK_ODBC_TEST_DSN
......
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