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

Merge pull request #28276 from mantidproject/28200_replace_Parallel_header_guards

Replace header guards in Parallel with pragma once
parents f751e2bb 896d376b
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_COLLECTIVES_H_
#define MANTID_PARALLEL_COLLECTIVES_H_
#pragma once
#include "MantidParallel/Communicator.h"
#include "MantidParallel/DllConfig.h"
......@@ -103,5 +102,3 @@ void all_to_all(const Communicator &comm, T &&... args) {
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_COLLECTIVES_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_COMMUNICATOR_H_
#define MANTID_PARALLEL_COMMUNICATOR_H_
#pragma once
#include "MantidParallel/DllConfig.h"
#include "MantidParallel/Request.h"
......@@ -107,5 +106,3 @@ template <typename... T> Request Communicator::irecv(T &&... args) const {
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_COMMUNICATOR_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_DLLCONFIG_H_
#define MANTID_PARALLEL_DLLCONFIG_H_
#pragma once
/*
This file contains the DLLExport/DLLImport linkage configuration for the
......@@ -18,5 +17,3 @@
#else
#define MANTID_PARALLEL_DLL DLLImport
#endif // IN_MANTID_PARALLEL
#endif // MANTID_PARALLEL_DLLCONFIG_H_
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_EXECUTIONMODE_H_
#define MANTID_PARALLEL_EXECUTIONMODE_H_
#pragma once
#include "MantidParallel/DllConfig.h"
#include "MantidParallel/StorageMode.h"
......@@ -41,5 +40,3 @@ MANTID_PARALLEL_DLL std::string toString(ExecutionMode mode);
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_EXECUTIONMODE_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_CHUNKER_H_
#define MANTID_PARALLEL_CHUNKER_H_
#pragma once
#include <vector>
......@@ -50,5 +49,3 @@ private:
} // namespace IO
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_CHUNKER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_EVENTDATAPARTITIONER_H_
#define MANTID_PARALLEL_EVENTDATAPARTITIONER_H_
#pragma once
#include "MantidParallel/DllConfig.h"
#include "MantidParallel/IO/Chunker.h"
......@@ -107,5 +106,3 @@ void EventDataPartitioner<IndexType, TimeZeroType, TimeOffsetType>::partition(
} // namespace IO
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_EVENTDATAPARTITIONER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_EVENTLOADER_H_
#define MANTID_PARALLEL_EVENTLOADER_H_
#pragma once
#include <string>
#include <unordered_map>
......@@ -52,5 +51,3 @@ load(const std::string &filename, const std::string &groupName,
} // namespace IO
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_EVENTLOADER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_EVENTLOADERHELPERS_H_
#define MANTID_PARALLEL_EVENTLOADERHELPERS_H_
#pragma once
#include "MantidParallel/Communicator.h"
#include "MantidParallel/DllConfig.h"
......@@ -119,5 +118,3 @@ template <class... T> void load(const H5::DataType &type, T &&... args) {
} // namespace IO
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_EVENTLOADERHELPERS_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_IO_EVENT_PARSER_H
#define MANTID_PARALLEL_IO_EVENT_PARSER_H
#pragma once
#include "MantidParallel/Collectives.h"
#include "MantidParallel/Communicator.h"
......@@ -246,5 +245,4 @@ template <class TimeOffsetType> void EventParser<TimeOffsetType>::wait() {
} // namespace IO
} // namespace Parallel
} // namespace Mantid
#endif // MANTID_PARALLEL_IO_EVENT_PARSER_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_PARALLEL_EVENTSLISTSSHMEMMANAGER_H_
#define MANTID_PARALLEL_EVENTSLISTSSHMEMMANAGER_H_
#pragma once
#include "boost/interprocess/containers/vector.hpp"
#include "boost/interprocess/managed_shared_memory.hpp"
......@@ -117,5 +116,3 @@ void EventsListsShmemManager::appendEvent(std::size_t chunkN, std::size_t listN,
} // namespace IO
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_EVENTSLISTSSHMEMMANAGER_H_ */
\ 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_PARALLEL_EVENTSLISTSSHMEMSTORAGE_H_
#define MANTID_PARALLEL_EVENTSLISTSSHMEMSTORAGE_H_
#pragma once
#include "MantidParallel/DllConfig.h"
#include "MantidParallel/IO/EventsListsShmemManager.h"
......@@ -43,5 +42,3 @@ public:
} // namespace IO
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_EVENTSLISTSSHMEMSTORAGE_H_ */
\ 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_PARALLEL_MULTIPROCESSEVENTLOADER_H_
#define MANTID_PARALLEL_MULTIPROCESSEVENTLOADER_H_
#pragma once
#include <atomic>
#include <boost/numeric/conversion/cast.hpp>
......@@ -373,5 +372,3 @@ void MultiProcessEventLoader::GroupLoader<
} // namespace IO
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_MULTIPROCESSEVENTLOADER_H_ */
\ 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_PARALLEL_IO_NXEVENTDATALOADER_H_
#define MANTID_PARALLEL_IO_NXEVENTDATALOADER_H_
#pragma once
#include "MantidKernel/System.h"
#include <H5Cpp.h>
......@@ -213,5 +212,3 @@ std::string NXEventDataLoader<TimeOffsetType>::readEventTimeOffsetUnit() const {
} // namespace IO
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_IO_NXEVENTDATALOADER_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_NXEVENTDATASOURCE_H_
#define MANTID_PARALLEL_NXEVENTDATASOURCE_H_
#pragma once
#include <vector>
......@@ -40,5 +39,3 @@ public:
} // namespace IO
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_NXEVENTDATASOURCE_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_PULSETIMEGENERATOR_H_
#define MANTID_PARALLEL_PULSETIMEGENERATOR_H_
#pragma once
#include "MantidParallel/DllConfig.h"
#include "MantidTypes/Core/DateAndTime.h"
......@@ -123,5 +122,3 @@ private:
} // namespace IO
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_PULSETIMEGENERATOR_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_NONBLOCKING_H_
#define MANTID_PARALLEL_NONBLOCKING_H_
#pragma once
#include "MantidParallel/DllConfig.h"
#include "MantidParallel/Request.h"
......@@ -44,5 +43,3 @@ void wait_all(ForwardIterator begin, ForwardIterator end) {
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_NONBLOCKING_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_REQUEST_H_
#define MANTID_PARALLEL_REQUEST_H_
#pragma once
#include "MantidParallel/DllConfig.h"
......@@ -58,5 +57,3 @@ Request::Request(Function &&f)
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_REQUEST_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_STATUS_H_
#define MANTID_PARALLEL_STATUS_H_
#pragma once
#include "MantidParallel/DllConfig.h"
......@@ -56,5 +55,3 @@ private:
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_STATUS_H_ */
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_STORAGEMODE_H_
#define MANTID_PARALLEL_STORAGEMODE_H_
#pragma once
#include "MantidParallel/DllConfig.h"
......@@ -34,5 +33,3 @@ MANTID_PARALLEL_DLL StorageMode fromString(const std::string &mode);
} // namespace Parallel
} // namespace Mantid
#endif // MANTID_PARALLEL_STORAGEMODE_H_
......@@ -4,8 +4,7 @@
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_PARALLEL_THREADINGBACKEND_H_
#define MANTID_PARALLEL_THREADINGBACKEND_H_
#pragma once
#include "MantidParallel/DllConfig.h"
#include "MantidParallel/Request.h"
......@@ -174,5 +173,3 @@ Request ThreadingBackend::irecv(int dest, int source, int tag, T *data,
} // namespace detail
} // namespace Parallel
} // namespace Mantid
#endif /* MANTID_PARALLEL_THREADINGBACKEND_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