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

Merge pull request #28264 from mantidproject/28200_replace_Kernel_header_guards

Replace header guards in Kernel with pragma once
parents 40accef2 2761548a
......@@ -66,8 +66,7 @@
// 1994, 573-582.
//----------------------------------------------------------------------
#ifndef ANN_H
#define ANN_H
#pragma once
// M. Gigg: Added the next two pragmas to supress the warnings regarding
// unused parameters since this is a third party package
......@@ -901,5 +900,3 @@ DLL_API void annMaxPtsVisit( // max. pts to visit in search
int maxPts); // the limit
DLL_API void annClose(); // called to end use of ANN
#endif
......@@ -27,8 +27,7 @@
// Added ANN_ prefix to avoid name conflicts.
//----------------------------------------------------------------------
#ifndef ANNperf_H
#define ANNperf_H
#pragma once
//----------------------------------------------------------------------
// basic includes
......@@ -232,5 +231,3 @@ DLL_API void annResetCounts(); // reset counts for one queries
DLL_API void annUpdateStats(); // update stats with current counts
DLL_API void annPrintStats(ANNbool validate); // print statistics for a run
#endif
......@@ -33,8 +33,7 @@
// Fixed minor compilation bugs for new versions of gcc
//----------------------------------------------------------------------
#ifndef ANNx_H
#define ANNx_H
#pragma once
#include "MantidKernel/ANN/ANN.h" // ANN includes
#include <iomanip> // I/O manipulators
......@@ -204,5 +203,3 @@ public:
// array of halfspaces
using ANNorthHSArray = ANNorthHalfSpace *;
#endif
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_ARRAYBOUNDEDVALIDATOR_H_
#define MANTID_KERNEL_ARRAYBOUNDEDVALIDATOR_H_
#pragma once
#include "MantidKernel/BoundedValidator.h"
......@@ -68,5 +67,3 @@ private:
} // namespace Kernel
} // namespace Mantid
#endif /* MANTID_KERNEL_ARRAYBOUNDEDVALIDATOR_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_ARRAYLENGTHVALIDATOR_H_
#define MANTID_KERNEL_ARRAYLENGTHVALIDATOR_H_
#pragma once
#include "MantidKernel/DllConfig.h"
#include "MantidKernel/IValidator.h"
......@@ -73,5 +72,3 @@ private:
} // namespace Kernel
} // namespace Mantid
#endif /* MANTID_KERNEL_ARRAYLENGTHVALIDATOR_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_ARRAYORDEREDPAIRSVALIDATOR_H_
#define MANTID_KERNEL_ARRAYORDEREDPAIRSVALIDATOR_H_
#pragma once
#include "MantidKernel/DllConfig.h"
#include "MantidKernel/IValidator.h"
......@@ -34,5 +33,3 @@ private:
} // namespace Kernel
} // namespace Mantid
#endif /* MANTID_KERNEL_ARRAYORDEREDPAIRSVALIDATOR_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_ARRAYPROPERTY_H_
#define MANTID_KERNEL_ARRAYPROPERTY_H_
#pragma once
#include "DllConfig.h"
#include "MantidKernel/IValidator.h"
......@@ -66,5 +65,3 @@ MANTID_KERNEL_DLL void ArrayProperty<int>::visualStudioC4661Workaround();
} // namespace Kernel
} // namespace Mantid
#endif /*MANTID_KERNEL_ARRAYPROPERTY_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef ATOM_H_
#define ATOM_H_
#pragma once
#include "MantidKernel/DllConfig.h"
#include "MantidKernel/NeutronAtom.h"
......@@ -71,5 +70,3 @@ MANTID_KERNEL_DLL const Atom &getAtom(const std::string &symbol,
} // namespace PhysicalConstants
} // namespace Mantid
#endif /* ATOM_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef BINFINDER_H
#define BINFINDER_H
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -53,5 +52,3 @@ private:
} // namespace Kernel
} // namespace Mantid
#endif /*BINFINDER_H*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef BINARYFILE_H_
#define BINARYFILE_H_
#pragma once
#include "MantidKernel/DllConfig.h"
......@@ -273,5 +272,3 @@ private:
} // Namespace Kernel
} // Namespace Mantid
#endif /* BINARYFILE_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_BINARYSTREAMREADER_H_
#define MANTID_KERNEL_BINARYSTREAMREADER_H_
#pragma once
//------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------
......@@ -86,5 +85,3 @@ private:
} // namespace Kernel
} // namespace Mantid
#endif /* MANTID_KERNEL_BINARYSTREAMREADER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_BINARYSTREAMWRITER_H_
#define MANTID_KERNEL_BINARYSTREAMWRITER_H_
#pragma once
//------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------
......@@ -88,5 +87,3 @@ private:
} // namespace Kernel
} // namespace Mantid
#endif /* MANTID_KERNEL_BINARYSTREAMWRITER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_BOUNDEDVALIDATOR_H_
#define MANTID_KERNEL_BOUNDEDVALIDATOR_H_
#pragma once
#include "MantidKernel/TypedValidator.h"
#include <boost/make_shared.hpp>
......@@ -158,5 +157,3 @@ private:
} // namespace Kernel
} // namespace Mantid
#endif /*MANTID_KERNEL_BOUNDEDVALIDATOR_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_CPUTIMER_H_
#define MANTID_KERNEL_CPUTIMER_H_
#pragma once
#include "MantidKernel/DllConfig.h"
#include "MantidKernel/Timer.h"
......@@ -43,5 +42,3 @@ MANTID_KERNEL_DLL std::ostream &operator<<(std::ostream &, CPUTimer &);
} // namespace Kernel
} // namespace Mantid
#endif /* MANTID_KERNEL_CPUTIMER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_CACHE_H_
#define MANTID_KERNEL_CACHE_H_
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -160,5 +159,3 @@ private:
} // namespace Kernel
} // namespace Mantid
#endif /*MANTID_KERNEL_CACHE_H_*/
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_CASE_INSENSITIVE_MAP_H
#define MANTID_KERNEL_CASE_INSENSITIVE_MAP_H
#pragma once
#include <cstring>
#include <map>
......@@ -33,5 +32,3 @@ using CaseInsensitiveMap =
std::map<std::string, T, CaseInsensitiveStringComparator>;
} // namespace Kernel
} // namespace Mantid
#endif // MANTID_KERNEL_CASE_INSENSITIVE_MAP_H
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_CATALOGINFO_H_
#define MANTID_KERNEL_CATALOGINFO_H_
#pragma once
//----------------------------------------------------------------------
// Includes
......@@ -72,5 +71,3 @@ private:
} // namespace Kernel
} // namespace Mantid
#endif /* MANTID_KERNEL_CATALOGINFO_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_CHAINABLE_H_
#define MANTID_KERNEL_CHAINABLE_H_
#pragma once
#include "MantidKernel/System.h"
#include <memory>
......@@ -54,5 +53,3 @@ Chainable<ChainableType>::~Chainable() = default;
} // namespace Kernel
} // namespace Mantid
#endif /* MANTID_KERNEL_CHAINABLE_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_CHAINABLEFACTORY_H_
#define MANTID_KERNEL_CHAINABLEFACTORY_H_
#pragma once
#include "MantidKernel/Chainable.h"
#include "MantidKernel/System.h"
......@@ -47,5 +46,3 @@ private:
} // namespace Kernel
} // namespace Mantid
#endif /* MANTID_KERNEL_CHAINABLEFACTORY_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_KERNEL_CHECKSUMHELPER_H_
#define MANTID_KERNEL_CHECKSUMHELPER_H_
#pragma once
#include "MantidKernel/DllConfig.h"
#include <string>
......@@ -30,5 +29,3 @@ MANTID_KERNEL_DLL std::string gitSha1FromFile(const std::string &filepath);
} // namespace ChecksumHelper
} // namespace Mantid::Kernel
#endif /* MANTID_KERNEL_CHECKSUMHELPER_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