Unverified Commit ae9c8585 authored by Nick Draper's avatar Nick Draper Committed by GitHub
Browse files

Merge pull request #28283 from mantidproject/28200_replace_PythonInterface_header_guards

Replace header guards in PythonInterface with pragma once
parents 934eb147 11c016c3
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_CALLMETHOD_H_
#define MANTID_PYTHONINTERFACE_CALLMETHOD_H_
#pragma once
#include "MantidPythonInterface/core/ErrorHandling.h"
#include "MantidPythonInterface/core/GlobalInterpreterLock.h"
......@@ -102,5 +101,3 @@ ReturnType callMethod(PyObject *obj, const char *methodName,
}
} // namespace PythonInterface
} // namespace Mantid
#endif // MANTID_PYTHONINTERFACE_CALLMETHOD_H_
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_CARRAYTONDARRAY_H_
#define MANTID_PYTHONINTERFACE_CARRAYTONDARRAY_H_
#pragma once
#include "MantidKernel/System.h"
#include "MantidPythonInterface/core/Converters/WrapWithNumpy.h"
......@@ -37,5 +36,3 @@ struct CArrayToNDArray {
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /* MANTID_PYTHONINTERFACE_CARRAYTONDARRAY_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_CLONETONDARRAY_H_
#define MANTID_PYTHONINTERFACE_CLONETONDARRAY_H_
#pragma once
#include "MantidKernel/System.h"
#include <boost/python/detail/prefix.hpp>
......@@ -54,5 +53,3 @@ struct Clone {
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif // MANTID_PYTHONINTERFACE_CLONETONDARRAY_H_
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_CONVERTERS_CONTAINERDTYPE_H_
#define MANTID_PYTHONINTERFACE_CONVERTERS_CONTAINERDTYPE_H_
#pragma once
#include <string>
#include <type_traits>
......@@ -41,5 +40,3 @@ std::string dtype(const Container<HeldType> &) {
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /*MANTID_PYTHONINTERFACE_CONVERTERS_CONTAINERDTYPE_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINERFACE_CORE_DATEANDTIME_H_
#define MANTID_PYTHONINERFACE_CORE_DATEANDTIME_H_
#pragma once
#include "MantidKernel/DateAndTime.h"
#include "MantidPythonInterface/core/DllConfig.h"
......@@ -28,5 +27,3 @@ to_dateandtime(const boost::python::api::object &value);
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /* MANTID_PYTHONINERFACE_CORE_DATEANDTIME_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINERFACE_MAPTOPYDICTIONARY_H_
#define MANTID_PYTHONINERFACE_MAPTOPYDICTIONARY_H_
#pragma once
/** Converter to generate a python dictionary from a std::map
*/
......@@ -43,5 +42,3 @@ private:
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /* MANTID_PYTHONINERFACE_MAPTOPYDICTIONARY_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_MATRIXTONDARRAY_H_
#define MANTID_PYTHONINTERFACE_MATRIXTONDARRAY_H_
#pragma once
#include "MantidKernel/Matrix.h"
#include "MantidPythonInterface/core/Converters/WrapWithNDArray.h"
......@@ -43,5 +42,3 @@ struct DLLExport MatrixToNDArray {
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /// MANTID_PYTHONINTERFACE_MATRIXTONDARRAY_H_
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_NDARRAYTOVECTORCONVERTER_H_
#define MANTID_PYTHONINTERFACE_NDARRAYTOVECTORCONVERTER_H_
#pragma once
#include "MantidKernel/System.h"
#include "MantidPythonInterface/core/NDArray.h"
......@@ -39,5 +38,3 @@ private:
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /* MANTID_PYTHONINTERFACE_NDARRAYTOVECTORCONVERTER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_NDARRAYTYPEINDEX_H_
#define MANTID_PYTHONINTERFACE_NDARRAYTYPEINDEX_H_
#pragma once
#include "MantidPythonInterface/core/DllConfig.h"
......@@ -30,5 +29,3 @@ template <typename T> struct MANTID_PYTHONINTERFACE_CORE_DLL NDArrayTypeIndex {
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /* MANTID_PYTHONINTERFACE_NDARRAYTYPEINDEX_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef NUMPY_FUNCTIONS_H
#define NUMPY_FUNCTIONS_H
#pragma once
#ifdef __GNUC__
#pragma GCC system_header
......@@ -47,5 +46,4 @@ func_PyArray_Descr(const char *datadescr);
} // namespace Impl
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif // NUMPY_FUNCTIONS_H
} // namespace Mantid
\ No newline at end of file
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINERFACE_PYOBJECTTOMATRIX_H_
#define MANTID_PYTHONINERFACE_PYOBJECTTOMATRIX_H_
#pragma once
#include "MantidKernel/Matrix.h"
#include "MantidKernel/System.h"
......@@ -34,5 +33,3 @@ private:
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /* MANTID_PYTHONINERFACE_PYOBJECTTOMATRIX_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINERFACE_PYOBJECTTOV3D_H_
#define MANTID_PYTHONINERFACE_PYOBJECTTOV3D_H_
#pragma once
#include "MantidKernel/System.h"
#include "MantidKernel/V3D.h"
......@@ -34,5 +33,3 @@ private:
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /* MANTID_PYTHONINERFACE_PYOBJECTTOV3D_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINERFACE_PYOBJECTTOVMD_H_
#define MANTID_PYTHONINERFACE_PYOBJECTTOVMD_H_
#pragma once
#include "MantidKernel/System.h"
#include "MantidKernel/VMD.h"
......@@ -34,5 +33,3 @@ private:
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /* MANTID_PYTHONINERFACE_PYOBJECTTOVMD_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_PYSEQUENCETOVECTORCONVERTER_H_
#define MANTID_PYTHONINTERFACE_PYSEQUENCETOVECTORCONVERTER_H_
#pragma once
#include "MantidKernel/System.h"
#include <boost/python/extract.hpp>
......@@ -102,5 +101,3 @@ private:
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /* MANTID_PYTHONINTERFACE_PYSEQUENCETOVECTORCONVERTER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_TOPYLIST_H_
#define MANTID_PYTHONINTERFACE_TOPYLIST_H_
#pragma once
#include <boost/python/list.hpp>
#include <vector>
......@@ -38,5 +37,3 @@ template <typename ElementType> struct ToPyList {
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /* MANTID_PYTHONINTERFACE_TOPYLIST_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_VECTORTONDARRAY_H_
#define MANTID_PYTHONINTERFACE_VECTORTONDARRAY_H_
#pragma once
#include "MantidKernel/System.h"
......@@ -40,5 +39,3 @@ struct VectorToNDArray {
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif /* MANTID_PYTHONINTERFACE_VECTORTONDARRAY_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_WRAPWITHNDARRAY_H_
#define MANTID_PYTHONINTERFACE_WRAPWITHNDARRAY_H_
#pragma once
#include "MantidKernel/System.h"
#include <boost/python/detail/prefix.hpp>
......@@ -100,5 +99,3 @@ struct WrapReadWrite {
} // namespace Converters
} // namespace PythonInterface
} // namespace Mantid
#endif // MANTID_PYTHONINTERFACE_WRAPWITHNDARRAY_H_
......@@ -5,8 +5,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_COPYABLE_H_
#define MANTID_PYTHONINTERFACE_COPYABLE_H_
#pragma once
#include <boost/python/class.hpp>
#include <boost/python/dict.hpp>
#include <boost/python/extract.hpp>
......@@ -63,5 +62,4 @@ bp::object generic__deepcopy__(const bp::object &copyable, bp::dict &memo) {
return result;
}
} // namespace PythonInterface
} // namespace Mantid
#endif // MANTID_PYTHONINTERFACE_COPYABLE_H_
} // namespace Mantid
\ No newline at end of file
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_DATASERVICEEXPORTER_H_
#define MANTID_PYTHONINTERFACE_DATASERVICEEXPORTER_H_
#pragma once
#include "MantidKernel/Exception.h"
#include "MantidPythonInterface/core/WeakPtr.h"
......@@ -173,5 +172,3 @@ template <typename SvcType, typename SvcPtrType> struct DataServiceExporter {
};
} // namespace PythonInterface
} // namespace Mantid
#endif /* MANTID_PYTHONINTERFACE_DATASERVICEEXPORTER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PYTHONINTERFACE_CORE_DLLCONFIG_H_
#define MANTID_PYTHONINTERFACE_CORE_DLLCONFIG_H_
#pragma once
/*
This file contains the DLLExport/DLLImport linkage configuration for the
PythonInterfaceCore library
......@@ -17,5 +16,3 @@
#else
#define MANTID_PYTHONINTERFACE_CORE_DLL DLLImport
#endif // IN_MANTID_PYTHONINTERFACE_CORE
#endif // MANTID_PYTHONINTERFACE_CORE_DLLCONFIG_H_
Supports Markdown
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