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

Merge pull request #28262 from mantidproject/28200_replace_Indexing_header_guards

Replace header guards in Indexing with pragma once
parents ea9080a6 ccc7b9e4
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_CONVERSION_H_
#define MANTID_INDEXING_CONVERSION_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
#include "MantidIndexing/GlobalSpectrumIndex.h"
......@@ -60,5 +59,3 @@ std::vector<Out> castVector(const std::vector<In> &indices) {
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_CONVERSION_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_DETECTORID_H_
#define MANTID_INDEXING_DETECTORID_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
#include "MantidIndexing/IndexType.h"
......@@ -26,5 +25,3 @@ public:
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_DETECTORID_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_EXTRACT_H_
#define MANTID_INDEXING_EXTRACT_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
......@@ -32,5 +31,3 @@ MANTID_INDEXING_DLL IndexInfo extract(const IndexInfo &source,
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_EXTRACT_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_GLOBALSPECTRUMINDEX_H_
#define MANTID_INDEXING_GLOBALSPECTRUMINDEX_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
#include "MantidIndexing/IndexType.h"
......@@ -30,5 +29,3 @@ public:
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_GLOBALSPECTRUMINDEX_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_GROUP_H_
#define MANTID_INDEXING_GROUP_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
#include "MantidIndexing/SpectrumNumber.h"
......@@ -28,5 +27,3 @@ group(const IndexInfo &source, std::vector<SpectrumNumber> &&specNums,
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_GROUP_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_INDEXINFO_H_
#define MANTID_INDEXING_INDEXINFO_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
#include "MantidIndexing/SpectrumNumber.h"
......@@ -125,5 +124,3 @@ private:
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_INDEXINFO_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_INDEXSET_H_
#define MANTID_INDEXING_INDEXSET_H_
#pragma once
#include <boost/iterator/iterator_facade.hpp>
......@@ -166,5 +165,3 @@ template <class T> bool IndexSet<T>::isContiguous() const noexcept {
} // namespace detail
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_INDEXSET_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_INDEXTYPE_H_
#define MANTID_INDEXING_INDEXTYPE_H_
#pragma once
#include <string>
#include <type_traits>
......@@ -58,5 +57,3 @@ private:
} // namespace detail
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_INDEXTYPE_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_LEGACYCONVERSION_H_
#define MANTID_INDEXING_LEGACYCONVERSION_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
#include "MantidIndexing/SpectrumNumber.h"
......@@ -26,5 +25,3 @@ makeSpectrumNumberVector(const std::vector<int32_t> &data);
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_LEGACYCONVERSION_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_PARTITIONINDEX_H_
#define MANTID_INDEXING_PARTITIONINDEX_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
#include "MantidIndexing/IndexType.h"
......@@ -26,5 +25,3 @@ public:
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_PARTITIONINDEX_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_PARTITIONER_H_
#define MANTID_INDEXING_PARTITIONER_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
#include "MantidIndexing/GlobalSpectrumIndex.h"
......@@ -64,5 +63,3 @@ private:
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_PARTITIONER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_ROUNDROBINPARTITIONER_H_
#define MANTID_INDEXING_ROUNDROBINPARTITIONER_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
#include "MantidIndexing/Partitioner.h"
......@@ -29,5 +28,3 @@ private:
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_ROUNDROBINPARTITIONER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_SCATTER_H_
#define MANTID_INDEXING_SCATTER_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
......@@ -23,5 +22,3 @@ MANTID_INDEXING_DLL IndexInfo scatter(const IndexInfo &indexInfo);
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_SCATTER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_SPECTRUMINDEXSET_H_
#define MANTID_INDEXING_SPECTRUMINDEXSET_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
#include "MantidIndexing/IndexSet.h"
......@@ -27,5 +26,3 @@ public:
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_SPECTRUMINDEXSET_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_SPECTRUMNUMBER_H_
#define MANTID_INDEXING_SPECTRUMNUMBER_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
#include "MantidIndexing/IndexType.h"
......@@ -28,5 +27,3 @@ public:
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_SPECTRUMNUMBER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_SPECTRUMNUMBERTRANSLATOR_H_
#define MANTID_INDEXING_SPECTRUMNUMBERTRANSLATOR_H_
#pragma once
#include "MantidIndexing/DllConfig.h"
#include "MantidIndexing/GlobalSpectrumIndex.h"
......@@ -118,5 +117,3 @@ inline bool SpectrumNumberTranslator::isPartitioned() const {
} // namespace Indexing
} // namespace Mantid
#endif /* MANTID_INDEXING_SPECTRUMNUMBERTRANSLATOR_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_CONVERSIONTEST_H_
#define MANTID_INDEXING_CONVERSIONTEST_H_
#pragma once
#include <cxxtest/TestSuite.h>
......@@ -59,5 +58,3 @@ public:
(std::vector<SpectrumNumber>{-1, 1, 2}));
}
};
#endif /* MANTID_INDEXING_CONVERSIONTEST_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_DETECTORIDTEST_H_
#define MANTID_INDEXING_DETECTORIDTEST_H_
#pragma once
#include <cxxtest/TestSuite.h>
......@@ -27,5 +26,3 @@ public:
(dynamic_cast<detail::IndexType<DetectorID, int32_t> &>(data))));
}
};
#endif /* MANTID_INDEXING_DETECTORIDTEST_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_EXTRACTTEST_H_
#define MANTID_INDEXING_EXTRACTTEST_H_
#pragma once
#include <cxxtest/TestSuite.h>
......@@ -75,5 +74,3 @@ public:
TS_ASSERT_EQUALS((*result.spectrumDefinitions())[2], specDefs[0]);
}
};
#endif /* MANTID_INDEXING_EXTRACTTEST_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_INDEXING_GLOBALSPECTRUMINDEXTEST_H_
#define MANTID_INDEXING_GLOBALSPECTRUMINDEXTEST_H_
#pragma once
#include <cxxtest/TestSuite.h>
......@@ -29,5 +28,3 @@ public:
dynamic_cast<detail::IndexType<GlobalSpectrumIndex, size_t> &>(data))));
}
};
#endif /* MANTID_INDEXING_GLOBALSPECTRUMINDEXTEST_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