From 79b61e1da2525e758f3d6163417da0553f00d0fc Mon Sep 17 00:00:00 2001 From: P-A Loizeau <p.-a.loizeau@gsi.de> Date: Thu, 20 Mar 2025 16:34:31 +0100 Subject: [PATCH] Add pre-processor include guards in all of YAML interface lib files --- algo/base/yaml/BaseTypes.h | 3 +++ algo/base/yaml/Property.h | 4 ++++ algo/base/yaml/Yaml.h | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/algo/base/yaml/BaseTypes.h b/algo/base/yaml/BaseTypes.h index 1a58763e2b..1743aace81 100644 --- a/algo/base/yaml/BaseTypes.h +++ b/algo/base/yaml/BaseTypes.h @@ -1,6 +1,8 @@ /* Copyright (C) 2023 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main SPDX-License-Identifier: GPL-3.0-only Authors: Felix Weiglhofer [committer] */ +#ifndef CBM_YAML_BASETYPES_H +#define CBM_YAML_BASETYPES_H #pragma once #include "Definitions.h" @@ -139,3 +141,4 @@ namespace cbm::algo::yaml } // namespace cbm::algo::yaml +#endif // CBM_YAML_BASETYPES_H diff --git a/algo/base/yaml/Property.h b/algo/base/yaml/Property.h index 644c77bfdc..223a978542 100644 --- a/algo/base/yaml/Property.h +++ b/algo/base/yaml/Property.h @@ -1,6 +1,8 @@ /* Copyright (C) 2023 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main SPDX-License-Identifier: GPL-3.0-only Authors: Felix Weiglhofer [committer] */ +#ifndef CBM_YAML_PROPERTY_H +#define CBM_YAML_PROPERTY_H #pragma once #include "Definitions.h" @@ -82,3 +84,5 @@ namespace cbm::algo::yaml #define CBM_YAML_MERGE_PROPERTY() \ public: \ static constexpr bool MergeProperty = true + +#endif // CBM_YAML_PROPERTY_H diff --git a/algo/base/yaml/Yaml.h b/algo/base/yaml/Yaml.h index 56bd2246e0..e5dfa3d33a 100644 --- a/algo/base/yaml/Yaml.h +++ b/algo/base/yaml/Yaml.h @@ -1,6 +1,8 @@ /* Copyright (C) 2023 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main SPDX-License-Identifier: GPL-3.0-only Authors: Felix Weiglhofer [committer] */ +#ifndef CBM_YAML_YAML_H +#define CBM_YAML_YAML_H #pragma once #include "Definitions.h" @@ -305,3 +307,5 @@ namespace cbm::algo::yaml #define CBM_YAML_INSTANTIATE(type) \ template type cbm::algo::yaml::Read<type>(const YAML::Node& node); \ template std::string cbm::algo::yaml::Dump::operator()<type>(const type& value, int floatPrecision); + +#endif // CBM_YAML_YAML_H -- GitLab