From 41c605e874674835cbd491e5a9dd603a26b87ea5 Mon Sep 17 00:00:00 2001 From: Benjamin Morgan Date: Fri, 26 May 2023 11:32:04 +0200 Subject: [PATCH] all: Remove outdated ifndef-define-endif header guards --- engine/src/plugins/nop_controller.hpp | 4 ---- engine/src/plugins/nop_simulator.hpp | 4 ---- engine/src/utility/defer.hpp | 2 ++ fable/include/fable/conf.hpp | 4 ---- fable/include/fable/confable.hpp | 4 ---- fable/include/fable/enum.hpp | 4 ---- fable/include/fable/environment.hpp | 4 ---- fable/include/fable/error.hpp | 4 ---- fable/include/fable/fable.hpp | 4 ---- fable/include/fable/json.hpp | 4 ---- fable/include/fable/json/with_boost.hpp | 4 ---- fable/include/fable/json/with_eigen.hpp | 4 ---- fable/include/fable/json/with_std.hpp | 4 ---- fable/include/fable/schema.hpp | 4 ---- fable/include/fable/schema/array.hpp | 4 ---- fable/include/fable/schema/boolean.hpp | 4 ---- fable/include/fable/schema/confable.hpp | 4 ---- fable/include/fable/schema/const.hpp | 4 ---- fable/include/fable/schema/custom.hpp | 4 ---- fable/include/fable/schema/duration.hpp | 4 ---- fable/include/fable/schema/enum.hpp | 4 ---- fable/include/fable/schema/factory.hpp | 4 ---- fable/include/fable/schema/ignore.hpp | 4 ---- fable/include/fable/schema/interface.hpp | 4 ---- fable/include/fable/schema/json.hpp | 4 ---- fable/include/fable/schema/magic.hpp | 4 ---- fable/include/fable/schema/map.hpp | 4 ---- fable/include/fable/schema/number.hpp | 4 ---- fable/include/fable/schema/number_impl.hpp | 4 ---- fable/include/fable/schema/optional.hpp | 4 ---- fable/include/fable/schema/passthru.hpp | 4 ---- fable/include/fable/schema/path.hpp | 4 ---- fable/include/fable/schema/string.hpp | 4 ---- fable/include/fable/schema/struct.hpp | 4 ---- fable/include/fable/schema/variant.hpp | 4 ---- fable/include/fable/utility.hpp | 4 ---- fable/include/fable/utility/gtest.hpp | 4 ---- models/include/cloe/component/actuator.hpp | 4 ---- models/include/cloe/component/brake_sensor.hpp | 4 ---- models/include/cloe/component/driver_request.hpp | 4 ---- models/include/cloe/component/ego_sensor.hpp | 4 ---- models/include/cloe/component/frustum.hpp | 4 ---- models/include/cloe/component/gearbox_actuator.hpp | 4 ---- models/include/cloe/component/lane_boundary.hpp | 4 ---- models/include/cloe/component/lane_sensor.hpp | 4 ---- models/include/cloe/component/latlong_actuator.hpp | 4 ---- models/include/cloe/component/object.hpp | 4 ---- models/include/cloe/component/object_sensor.hpp | 4 ---- models/include/cloe/component/object_sensor_functional.hpp | 4 ---- models/include/cloe/component/pedal_actuator.hpp | 4 ---- models/include/cloe/component/powertrain_sensor.hpp | 4 ---- models/include/cloe/component/steering_actuator.hpp | 4 ---- models/include/cloe/component/steering_sensor.hpp | 4 ---- models/include/cloe/component/utility/ego_sensor_canon.hpp | 4 ---- models/include/cloe/component/utility/filter.hpp | 4 ---- models/include/cloe/component/utility/steering_utils.hpp | 4 ---- models/include/cloe/component/vehicle_state_model.hpp | 4 ---- models/include/cloe/component/wheel.hpp | 4 ---- models/include/cloe/component/wheel_sensor.hpp | 4 ---- models/include/cloe/models.hpp | 4 ---- models/include/cloe/utility/actuation_level.hpp | 4 ---- models/include/cloe/utility/actuation_state.hpp | 4 ---- models/include/cloe/utility/geometry.hpp | 4 ---- models/include/cloe/utility/simple_steering_model.hpp | 4 ---- optional/vtd/src/vtd_sensor_components.hpp | 2 ++ plugins/gndtruth_extractor/src/bimap.hpp | 2 ++ plugins/gndtruth_extractor/src/gndtruth_extractor.hpp | 2 ++ runtime/include/cloe/component.hpp | 4 ---- runtime/include/cloe/conf/action.hpp | 4 ---- runtime/include/cloe/controller.hpp | 4 ---- runtime/include/cloe/core.hpp | 4 ---- runtime/include/cloe/core/abort.hpp | 4 ---- runtime/include/cloe/core/duration.hpp | 4 ---- runtime/include/cloe/core/error.hpp | 4 ---- runtime/include/cloe/core/fable.hpp | 4 ---- runtime/include/cloe/core/logger.hpp | 4 ---- runtime/include/cloe/entity.hpp | 4 ---- runtime/include/cloe/handler.hpp | 4 ---- runtime/include/cloe/model.hpp | 4 ---- runtime/include/cloe/plugin.hpp | 4 ---- runtime/include/cloe/registrar.hpp | 4 ---- runtime/include/cloe/simulator.hpp | 4 ---- runtime/include/cloe/sync.hpp | 4 ---- runtime/include/cloe/trigger.hpp | 3 --- runtime/include/cloe/trigger/evaluate_event.hpp | 4 ---- runtime/include/cloe/trigger/example_actions.hpp | 4 ---- runtime/include/cloe/trigger/helper_macros.hpp | 4 ---- runtime/include/cloe/trigger/nil_event.hpp | 4 ---- runtime/include/cloe/trigger/set_action.hpp | 4 ---- runtime/include/cloe/trigger/transition_event.hpp | 4 ---- runtime/include/cloe/utility/command.hpp | 4 ---- runtime/include/cloe/utility/constexpr.hpp | 4 ---- runtime/include/cloe/utility/evaluate.hpp | 4 ---- runtime/include/cloe/utility/inja.hpp | 4 ---- runtime/include/cloe/utility/maybe_own.hpp | 4 ---- runtime/include/cloe/utility/output_serializer.hpp | 4 ---- runtime/include/cloe/utility/output_serializer_json.hpp | 4 ---- runtime/include/cloe/utility/output_serializer_msgpack.hpp | 4 ---- runtime/include/cloe/utility/resource.hpp | 4 ---- runtime/include/cloe/utility/resource_handler.hpp | 4 ---- runtime/include/cloe/utility/statistics.hpp | 4 ---- runtime/include/cloe/utility/std_extensions.hpp | 4 ---- runtime/include/cloe/utility/tcp_transceiver.hpp | 4 ---- runtime/include/cloe/utility/tcp_transceiver_config.hpp | 4 ---- runtime/include/cloe/utility/timer.hpp | 4 ---- runtime/include/cloe/utility/uid_tracker.hpp | 4 ---- runtime/include/cloe/utility/xdg.hpp | 5 +---- runtime/include/cloe/vehicle.hpp | 4 ---- 108 files changed, 9 insertions(+), 415 deletions(-) diff --git a/engine/src/plugins/nop_controller.hpp b/engine/src/plugins/nop_controller.hpp index d00991d93..f5514622d 100644 --- a/engine/src/plugins/nop_controller.hpp +++ b/engine/src/plugins/nop_controller.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_CONTROLLER_NOP_HPP_ -#define CLOE_CONTROLLER_NOP_HPP_ #include // for DEFINE_CONTROLLER_FACTORY, Json, ... @@ -42,5 +40,3 @@ DEFINE_CONTROLLER_FACTORY(NopFactory, NopConfiguration, "nop", "stand-in that do } // namespace controller } // namespace cloe - -#endif // CLOE_CONTROLLER_NOP_HPP_ diff --git a/engine/src/plugins/nop_simulator.hpp b/engine/src/plugins/nop_simulator.hpp index c4a57d026..12f34d360 100644 --- a/engine/src/plugins/nop_simulator.hpp +++ b/engine/src/plugins/nop_simulator.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_SIMULATOR_NOP_HPP_ -#define CLOE_SIMULATOR_NOP_HPP_ #include // for unique_ptr<> #include // for string @@ -53,5 +51,3 @@ DEFINE_SIMULATOR_FACTORY(NopFactory, NopConfiguration, "nop", "stand-in no-opera } // namespace simulator } // namespace cloe - -#endif // CLOE_SIMULATOR_NOP_HPP_ diff --git a/engine/src/utility/defer.hpp b/engine/src/utility/defer.hpp index 7a06cab53..19de491f3 100644 --- a/engine/src/utility/defer.hpp +++ b/engine/src/utility/defer.hpp @@ -19,6 +19,8 @@ * \file defer.hpp */ +#pragma once + #include // for function<> namespace engine { diff --git a/fable/include/fable/conf.hpp b/fable/include/fable/conf.hpp index afdbd3cf6..df4bb28f2 100644 --- a/fable/include/fable/conf.hpp +++ b/fable/include/fable/conf.hpp @@ -49,8 +49,6 @@ */ #pragma once -#ifndef FABLE_CONF_HPP_ -#define FABLE_CONF_HPP_ #include // for function<> #include // for string @@ -348,5 +346,3 @@ class Conf { }; } // namespace fable - -#endif // FABLE_CONF_HPP_ diff --git a/fable/include/fable/confable.hpp b/fable/include/fable/confable.hpp index 1f46f325b..8c4520fbc 100644 --- a/fable/include/fable/confable.hpp +++ b/fable/include/fable/confable.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_CONFABLE_HPP_ -#define FABLE_CONFABLE_HPP_ #include // for unique_ptr<> @@ -138,5 +136,3 @@ struct adl_serializer { }; } // namespace nlohmann - -#endif // FABLE_CONFABLE_HPP_ diff --git a/fable/include/fable/enum.hpp b/fable/include/fable/enum.hpp index dbabb4c2e..60d55ff60 100644 --- a/fable/include/fable/enum.hpp +++ b/fable/include/fable/enum.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef FABLE_ENUM_HPP_ -#define FABLE_ENUM_HPP_ #include // for map<> #include // for string @@ -172,5 +170,3 @@ T from_string(const std::string& s) { } } // namespace fable - -#endif // FABLE_ENUM_HPP_ diff --git a/fable/include/fable/environment.hpp b/fable/include/fable/environment.hpp index 0168e2bfc..37022d9c4 100644 --- a/fable/include/fable/environment.hpp +++ b/fable/include/fable/environment.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_ENVIRONMENT_HPP_ -#define FABLE_ENVIRONMENT_HPP_ #include // for assert #include // for map<> @@ -134,5 +132,3 @@ inline std::string interpolate_vars(const std::string& s, const Environment* env } } // namespace fable - -#endif // FABLE_ENVIRONMENT_HPP_ diff --git a/fable/include/fable/error.hpp b/fable/include/fable/error.hpp index 593d71a49..776b10df1 100644 --- a/fable/include/fable/error.hpp +++ b/fable/include/fable/error.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef FABLE_ERROR_HPP_ -#define FABLE_ERROR_HPP_ #include // for exception #include // for string @@ -154,5 +152,3 @@ class SchemaError : public ConfError { }; } // namespace fable - -#endif // FABLE_ERROR_HPP_ diff --git a/fable/include/fable/fable.hpp b/fable/include/fable/fable.hpp index e2ca4a685..f278a4118 100644 --- a/fable/include/fable/fable.hpp +++ b/fable/include/fable/fable.hpp @@ -24,8 +24,6 @@ */ #pragma once -#ifndef FABLE_FABLE_HPP_ -#define FABLE_FABLE_HPP_ #include #include @@ -34,5 +32,3 @@ #include #include #include - -#endif // FABLE_FABLE_HPP_ diff --git a/fable/include/fable/json.hpp b/fable/include/fable/json.hpp index d430cdbaa..a94fe57b4 100644 --- a/fable/include/fable/json.hpp +++ b/fable/include/fable/json.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef FABLE_JSON_HPP_ -#define FABLE_JSON_HPP_ #include // for string @@ -108,5 +106,3 @@ inline Json parse_json(InputType&& input) { } } // namespace fable - -#endif // FABLE_JSON_HPP_ diff --git a/fable/include/fable/json/with_boost.hpp b/fable/include/fable/json/with_boost.hpp index 824b7bab5..41337011a 100644 --- a/fable/include/fable/json/with_boost.hpp +++ b/fable/include/fable/json/with_boost.hpp @@ -24,8 +24,6 @@ */ #pragma once -#ifndef FABLE_JSON_WITH_BOOST_HPP_ -#define FABLE_JSON_WITH_BOOST_HPP_ #include @@ -61,5 +59,3 @@ struct adl_serializer> { }; } // namespace nlohmann - -#endif // FABLE_JSON_WITH_BOOST_HPP_ diff --git a/fable/include/fable/json/with_eigen.hpp b/fable/include/fable/json/with_eigen.hpp index e7457a1c7..92639d5d0 100644 --- a/fable/include/fable/json/with_eigen.hpp +++ b/fable/include/fable/json/with_eigen.hpp @@ -24,8 +24,6 @@ */ #pragma once -#ifndef FABLE_JSON_WITH_EIGEN_HPP_ -#define FABLE_JSON_WITH_EIGEN_HPP_ #include @@ -87,5 +85,3 @@ struct adl_serializer { }; } // namespace nlohmann - -#endif // FABLE_JSON_WITH_EIGEN_HPP_ diff --git a/fable/include/fable/json/with_std.hpp b/fable/include/fable/json/with_std.hpp index 66e505ebc..c4fcffa6f 100644 --- a/fable/include/fable/json/with_std.hpp +++ b/fable/include/fable/json/with_std.hpp @@ -24,8 +24,6 @@ */ #pragma once -#ifndef FABLE_JSON_WITH_STD_HPP_ -#define FABLE_JSON_WITH_STD_HPP_ #include // for unique_ptr<>, shared_ptr<>, weak_ptr<> @@ -76,5 +74,3 @@ struct adl_serializer> { }; } // namespace nlohmann - -#endif // FABLE_JSON_WITH_STD_HPP_ diff --git a/fable/include/fable/schema.hpp b/fable/include/fable/schema.hpp index b639caf89..86cab04ca 100644 --- a/fable/include/fable/schema.hpp +++ b/fable/include/fable/schema.hpp @@ -113,8 +113,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_HPP_ -#define FABLE_SCHEMA_HPP_ #include // for duration<> #include // for map<> @@ -269,5 +267,3 @@ class Schema : public schema::Interface { }; } // namespace fable - -#endif // FABLE_SCHEMA_HPP_ diff --git a/fable/include/fable/schema/array.hpp b/fable/include/fable/schema/array.hpp index 8bb8d1497..cfb7ed800 100644 --- a/fable/include/fable/schema/array.hpp +++ b/fable/include/fable/schema/array.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_ARRAY_HPP_ -#define FABLE_SCHEMA_ARRAY_HPP_ #include // for numeric_limits<> #include // for shared_ptr<> @@ -182,5 +180,3 @@ Array make_schema(std::vector* ptr, const P& prototype, std::string&& d } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_ARRAY_HPP_ diff --git a/fable/include/fable/schema/boolean.hpp b/fable/include/fable/schema/boolean.hpp index 89e6920a6..ed3d695a3 100644 --- a/fable/include/fable/schema/boolean.hpp +++ b/fable/include/fable/schema/boolean.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_BOOLEAN_HPP_ -#define FABLE_SCHEMA_BOOLEAN_HPP_ #include // for string #include // for move @@ -57,5 +55,3 @@ inline Boolean make_schema(bool* ptr, std::string&& desc) { return Boolean(ptr, } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_BOOLEAN_HPP_ diff --git a/fable/include/fable/schema/confable.hpp b/fable/include/fable/schema/confable.hpp index 6936eac20..8ced18b96 100644 --- a/fable/include/fable/schema/confable.hpp +++ b/fable/include/fable/schema/confable.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_CONFABLE_HPP_ -#define FABLE_SCHEMA_CONFABLE_HPP_ #include // for shared_ptr<> #include // for string @@ -110,5 +108,3 @@ FromConfable make_schema(T* ptr, std::string&& desc) { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_CONFABLE_HPP_ diff --git a/fable/include/fable/schema/const.hpp b/fable/include/fable/schema/const.hpp index 76c11edbf..d4abdaf8b 100644 --- a/fable/include/fable/schema/const.hpp +++ b/fable/include/fable/schema/const.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_CONST_HPP_ -#define FABLE_SCHEMA_CONST_HPP_ #include // for string #include // for move @@ -105,5 +103,3 @@ inline Const make_const_str(const char* constant, std::stri } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_CONST_HPP_ diff --git a/fable/include/fable/schema/custom.hpp b/fable/include/fable/schema/custom.hpp index 9384862f2..6270e67cd 100644 --- a/fable/include/fable/schema/custom.hpp +++ b/fable/include/fable/schema/custom.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_CUSTOM_HPP_ -#define FABLE_SCHEMA_CUSTOM_HPP_ #include // for function<> @@ -93,5 +91,3 @@ class CustomDeserializer : public schema::Interface { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_CUSTOM_HPP_ diff --git a/fable/include/fable/schema/duration.hpp b/fable/include/fable/schema/duration.hpp index b2219e3e0..edaf6cb66 100644 --- a/fable/include/fable/schema/duration.hpp +++ b/fable/include/fable/schema/duration.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_DURATION_HPP_ -#define FABLE_SCHEMA_DURATION_HPP_ #include // for duration<> #include // for numeric_limits<> @@ -196,5 +194,3 @@ inline Duration make_schema(std::chrono::duration* ptr } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_DURATION_HPP_ diff --git a/fable/include/fable/schema/enum.hpp b/fable/include/fable/schema/enum.hpp index 6278559f4..91a7c1158 100644 --- a/fable/include/fable/schema/enum.hpp +++ b/fable/include/fable/schema/enum.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_ENUM_HPP_ -#define FABLE_SCHEMA_ENUM_HPP_ #include // for map<> #include // for string @@ -111,5 +109,3 @@ inline Enum make_schema(T* ptr, std::string&& desc) { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_ENUM_HPP_ diff --git a/fable/include/fable/schema/factory.hpp b/fable/include/fable/schema/factory.hpp index fa75bd0dd..a7bf036da 100644 --- a/fable/include/fable/schema/factory.hpp +++ b/fable/include/fable/schema/factory.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_FACTORY_HPP_ -#define FABLE_SCHEMA_FACTORY_HPP_ #include // for function<> #include // for numeric_limits<> @@ -420,5 +418,3 @@ class Factory : public FactoryBase> { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_FACTORY_HPP_ diff --git a/fable/include/fable/schema/ignore.hpp b/fable/include/fable/schema/ignore.hpp index 0efc73ce2..4973345ca 100644 --- a/fable/include/fable/schema/ignore.hpp +++ b/fable/include/fable/schema/ignore.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_IGNORE_HPP_ -#define FABLE_SCHEMA_IGNORE_HPP_ #include // for string #include // for move @@ -68,5 +66,3 @@ inline Ignore make_schema(std::string&& desc, JsonType t = JsonType::object) { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_IGNORE_HPP_ diff --git a/fable/include/fable/schema/interface.hpp b/fable/include/fable/schema/interface.hpp index 127daba95..0de49db10 100644 --- a/fable/include/fable/schema/interface.hpp +++ b/fable/include/fable/schema/interface.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_INTERFACE_HPP_ -#define FABLE_SCHEMA_INTERFACE_HPP_ #include // for shared_ptr<> #include // for string @@ -467,5 +465,3 @@ auto make_prototype(std::string&& desc = ""); } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_INTERFACE_HPP_ diff --git a/fable/include/fable/schema/json.hpp b/fable/include/fable/schema/json.hpp index aab30cc53..09ae6cfd3 100644 --- a/fable/include/fable/schema/json.hpp +++ b/fable/include/fable/schema/json.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_JSON_HPP_ -#define FABLE_SCHEMA_JSON_HPP_ #include // for string #include // for move @@ -88,5 +86,3 @@ inline FromJson make_schema(T* ptr, JsonType t, std::string&& desc) { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_JSON_HPP_ diff --git a/fable/include/fable/schema/magic.hpp b/fable/include/fable/schema/magic.hpp index ec9d16ec0..4e69e1b77 100644 --- a/fable/include/fable/schema/magic.hpp +++ b/fable/include/fable/schema/magic.hpp @@ -34,8 +34,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_MAGIC_HPP_ -#define FABLE_SCHEMA_MAGIC_HPP_ #include // for map<> #include // for string @@ -105,5 +103,3 @@ auto make_prototype(std::string&& desc) { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_MAGIC_HPP_ diff --git a/fable/include/fable/schema/map.hpp b/fable/include/fable/schema/map.hpp index 0756f2661..3d52a3418 100644 --- a/fable/include/fable/schema/map.hpp +++ b/fable/include/fable/schema/map.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_MAP_HPP_ -#define FABLE_SCHEMA_MAP_HPP_ #include // for numeric_limits<> #include // for map<> @@ -197,5 +195,3 @@ Map make_schema(std::map* ptr, const P& prototype, std::st } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_MAP_HPP_ diff --git a/fable/include/fable/schema/number.hpp b/fable/include/fable/schema/number.hpp index 10b1512ab..305ed5492 100644 --- a/fable/include/fable/schema/number.hpp +++ b/fable/include/fable/schema/number.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_NUMBER_HPP_ -#define FABLE_SCHEMA_NUMBER_HPP_ #include // for initializer_list<> #include // for set<> @@ -112,5 +110,3 @@ inline Number make_schema(T* ptr, std::string&& desc) { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_NUMBER_HPP_ diff --git a/fable/include/fable/schema/number_impl.hpp b/fable/include/fable/schema/number_impl.hpp index aece86ad2..0be265809 100644 --- a/fable/include/fable/schema/number_impl.hpp +++ b/fable/include/fable/schema/number_impl.hpp @@ -25,8 +25,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_NUMBER_IMPL_HPP_ -#define FABLE_SCHEMA_NUMBER_IMPL_HPP_ #include // for initializer_list<> #include // for numeric_limits<> @@ -265,5 +263,3 @@ void Number::check_bounds(const Conf& c) const { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_NUMBER_IMPL_HPP_ diff --git a/fable/include/fable/schema/optional.hpp b/fable/include/fable/schema/optional.hpp index d38f12ef0..ae67180db 100644 --- a/fable/include/fable/schema/optional.hpp +++ b/fable/include/fable/schema/optional.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_OPTIONAL_HPP_ -#define FABLE_SCHEMA_OPTIONAL_HPP_ #include // for string #include // for move @@ -121,5 +119,3 @@ Optional make_schema(boost::optional* ptr, const P& prototype, std::str } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_OPTIONAL_HPP_ diff --git a/fable/include/fable/schema/passthru.hpp b/fable/include/fable/schema/passthru.hpp index 95b78ee74..78ef45244 100644 --- a/fable/include/fable/schema/passthru.hpp +++ b/fable/include/fable/schema/passthru.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_PASSTHRU_HPP_ -#define FABLE_SCHEMA_PASSTHRU_HPP_ #include // for string #include // for move @@ -105,5 +103,3 @@ Passthru

make_schema(Conf* ptr, const P& prototype, std::string&& desc) { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_PASSTHRU_HPP_ diff --git a/fable/include/fable/schema/path.hpp b/fable/include/fable/schema/path.hpp index 3a9c220d0..b17536747 100644 --- a/fable/include/fable/schema/path.hpp +++ b/fable/include/fable/schema/path.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_PATH_HPP_ -#define FABLE_SCHEMA_PATH_HPP_ #include // for numeric_limits<> #include // for string @@ -231,5 +229,3 @@ struct adl_serializer { }; } // namespace nlohmann - -#endif // FABLE_SCHEMA_PATH_HPP_ diff --git a/fable/include/fable/schema/string.hpp b/fable/include/fable/schema/string.hpp index 4fc7255ee..5d3ba12a0 100644 --- a/fable/include/fable/schema/string.hpp +++ b/fable/include/fable/schema/string.hpp @@ -24,8 +24,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_STRING_HPP_ -#define FABLE_SCHEMA_STRING_HPP_ #include // for numeric_limits<> #include // for string @@ -269,5 +267,3 @@ inline String make_schema(std::string* ptr, std::string&& desc) { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_STRING_HPP_ diff --git a/fable/include/fable/schema/struct.hpp b/fable/include/fable/schema/struct.hpp index 61e0cc5b4..efa95ac2e 100644 --- a/fable/include/fable/schema/struct.hpp +++ b/fable/include/fable/schema/struct.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_STRUCT_HPP_ -#define FABLE_SCHEMA_STRUCT_HPP_ #include // for map<> #include // for shared_ptr<> @@ -241,5 +239,3 @@ inline Struct make_schema(std::string&& desc, const Struct& base, T&& props) { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_STRUCT_HPP_ diff --git a/fable/include/fable/schema/variant.hpp b/fable/include/fable/schema/variant.hpp index c84248d56..f424102ae 100644 --- a/fable/include/fable/schema/variant.hpp +++ b/fable/include/fable/schema/variant.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef FABLE_SCHEMA_VARIANT_HPP_ -#define FABLE_SCHEMA_VARIANT_HPP_ #include // for string #include // for move @@ -139,5 +137,3 @@ inline Variant make_schema(std::string&& desc, std::vector&& vec) { } // namespace schema } // namespace fable - -#endif // FABLE_SCHEMA_VARIANT_HPP_ diff --git a/fable/include/fable/utility.hpp b/fable/include/fable/utility.hpp index 7a55e41b9..de3733517 100644 --- a/fable/include/fable/utility.hpp +++ b/fable/include/fable/utility.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef FABLE_UTILITY_HPP_ -#define FABLE_UTILITY_HPP_ #include // for string @@ -78,5 +76,3 @@ void pretty_print(const ConfError& e, std::ostream& os); void pretty_print(const SchemaError& e, std::ostream& os); } // namespace fable - -#endif // FABLE_UTILITY_HPP_ diff --git a/fable/include/fable/utility/gtest.hpp b/fable/include/fable/utility/gtest.hpp index 6d05414b4..692ed484c 100644 --- a/fable/include/fable/utility/gtest.hpp +++ b/fable/include/fable/utility/gtest.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef FABLE_UTILITY_GTEST_HPP_ -#define FABLE_UTILITY_GTEST_HPP_ #include // for cerr @@ -188,5 +186,3 @@ inline void assert_from_eq_to(T& x, const char json_input[]) { } } // namespace fable - -#endif // FABLE_UTILITY_GTEST_HPP_ diff --git a/models/include/cloe/component/actuator.hpp b/models/include/cloe/component/actuator.hpp index e6fc10be7..f27bd759c 100644 --- a/models/include/cloe/component/actuator.hpp +++ b/models/include/cloe/component/actuator.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_ACTUATOR_HPP_ -#define CLOE_COMPONENT_ACTUATOR_HPP_ #include // for optional #include // for Component @@ -57,5 +55,3 @@ class Actuator : public Component { }; } // namespace cloe - -#endif // CLOE_COMPONENT_ACTUATOR_HPP_ diff --git a/models/include/cloe/component/brake_sensor.hpp b/models/include/cloe/component/brake_sensor.hpp index e285284a7..85f539430 100644 --- a/models/include/cloe/component/brake_sensor.hpp +++ b/models/include/cloe/component/brake_sensor.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_BRAKE_SENSOR_HPP_ -#define CLOE_COMPONENT_BRAKE_SENSOR_HPP_ #include // for Component, Json @@ -66,5 +64,3 @@ class NopBrakeSensor : public BrakeSensor { }; } // namespace cloe - -#endif // CLOE_COMPONENT_BRAKE_SENSOR_HPP_ diff --git a/models/include/cloe/component/driver_request.hpp b/models/include/cloe/component/driver_request.hpp index 9961cddef..f53a869a8 100644 --- a/models/include/cloe/component/driver_request.hpp +++ b/models/include/cloe/component/driver_request.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_DRIVER_REQUEST_HPP_ -#define CLOE_COMPONENT_DRIVER_REQUEST_HPP_ #include // for Component, Json @@ -98,5 +96,3 @@ class NopDriverRequest : public DriverRequest { }; } // namespace cloe - -#endif // CLOE_COMPONENT_DRIVER_REQUEST_HPP_ diff --git a/models/include/cloe/component/ego_sensor.hpp b/models/include/cloe/component/ego_sensor.hpp index 88ce98174..be0763103 100644 --- a/models/include/cloe/component/ego_sensor.hpp +++ b/models/include/cloe/component/ego_sensor.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_EGO_SENSOR_HPP_ -#define CLOE_COMPONENT_EGO_SENSOR_HPP_ #include // for Component, Json #include // for Object @@ -92,5 +90,3 @@ class NopEgoSensor : public EgoSensor { }; } // namespace cloe - -#endif // CLOE_COMPONENT_EGO_SENSOR_HPP_ diff --git a/models/include/cloe/component/frustum.hpp b/models/include/cloe/component/frustum.hpp index 8e31a7f21..1d3aaa82c 100644 --- a/models/include/cloe/component/frustum.hpp +++ b/models/include/cloe/component/frustum.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_FRUSTUM_HPP_ -#define CLOE_COMPONENT_FRUSTUM_HPP_ #include // for M_PI @@ -77,5 +75,3 @@ struct Frustum : public Confable { }; } // namespace cloe - -#endif // CLOE_COMPONENT_FRUSTUM_HPP_ diff --git a/models/include/cloe/component/gearbox_actuator.hpp b/models/include/cloe/component/gearbox_actuator.hpp index 81756fc77..786e91a3e 100644 --- a/models/include/cloe/component/gearbox_actuator.hpp +++ b/models/include/cloe/component/gearbox_actuator.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_GEARBOX_ACTUATOR_HPP_ -#define CLOE_COMPONENT_GEARBOX_ACTUATOR_HPP_ #include // for Actuator #include // for Json @@ -53,5 +51,3 @@ class GearboxActuator : public Actuator { }; } // namespace cloe - -#endif // CLOE_COMPONENT_GEARBOX_ACTUATOR_HPP_ diff --git a/models/include/cloe/component/lane_boundary.hpp b/models/include/cloe/component/lane_boundary.hpp index 1fdbb491c..007a38f1f 100644 --- a/models/include/cloe/component/lane_boundary.hpp +++ b/models/include/cloe/component/lane_boundary.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_LANE_BOUNDARY_HPP_ -#define CLOE_COMPONENT_LANE_BOUNDARY_HPP_ #include // for map #include // for vector @@ -95,5 +93,3 @@ ENUM_SERIALIZATION(LaneBoundary::Color, ({ // clang-format on } // namespace cloe - -#endif // CLOE_COMPONENT_LANE_BOUNDARY_HPP_ diff --git a/models/include/cloe/component/lane_sensor.hpp b/models/include/cloe/component/lane_sensor.hpp index a5174f3f4..a6ba9a5f1 100644 --- a/models/include/cloe/component/lane_sensor.hpp +++ b/models/include/cloe/component/lane_sensor.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_LANE_SENSOR_HPP_ -#define CLOE_COMPONENT_LANE_SENSOR_HPP_ #include // for Isometry3d #include // for to_json @@ -77,5 +75,3 @@ class NopLaneSensor : public LaneBoundarySensor { }; } // namespace cloe - -#endif // CLOE_COMPONENT_LANE_SENSOR_HPP_ diff --git a/models/include/cloe/component/latlong_actuator.hpp b/models/include/cloe/component/latlong_actuator.hpp index 263127eaa..874055516 100644 --- a/models/include/cloe/component/latlong_actuator.hpp +++ b/models/include/cloe/component/latlong_actuator.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_LATLONG_ACTUATOR_HPP_ -#define CLOE_COMPONENT_LATLONG_ACTUATOR_HPP_ #include // for optional<> #include // for to_json @@ -132,5 +130,3 @@ class LatActuator : public Actuator { }; } // namespace cloe - -#endif // CLOE_COMPONENT_LATLONG_ACTUATOR_HPP_ diff --git a/models/include/cloe/component/object.hpp b/models/include/cloe/component/object.hpp index 140be350c..40bf4bced 100644 --- a/models/include/cloe/component/object.hpp +++ b/models/include/cloe/component/object.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_OBJECT_HPP_ -#define CLOE_COMPONENT_OBJECT_HPP_ #include // for shared_ptr<> #include // for vector<> @@ -137,5 +135,3 @@ ENUM_SERIALIZATION(Object::Class, ({ // clang-format on } // namespace cloe - -#endif // CLOE_COMPONENT_OBJECT_HPP_ diff --git a/models/include/cloe/component/object_sensor.hpp b/models/include/cloe/component/object_sensor.hpp index 5012a0a3c..7ce601dd8 100644 --- a/models/include/cloe/component/object_sensor.hpp +++ b/models/include/cloe/component/object_sensor.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_OBJECT_SENSOR_HPP_ -#define CLOE_COMPONENT_OBJECT_SENSOR_HPP_ #include // for Component, Json #include // for Frustum @@ -92,5 +90,3 @@ class NopObjectSensor : public ObjectSensor { }; } // namespace cloe - -#endif // CLOE_COMPONENT_OBJECT_SENSOR_HPP_ diff --git a/models/include/cloe/component/object_sensor_functional.hpp b/models/include/cloe/component/object_sensor_functional.hpp index 93081e194..559188e90 100644 --- a/models/include/cloe/component/object_sensor_functional.hpp +++ b/models/include/cloe/component/object_sensor_functional.hpp @@ -25,8 +25,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_OBJECT_SENSOR_FUNCTIONAL_HPP_ -#define CLOE_COMPONENT_OBJECT_SENSOR_FUNCTIONAL_HPP_ #include // for function #include // for shared_ptr<> @@ -243,5 +241,3 @@ class ObjectSensorFilterMap : public ObjectSensor { }; } // namespace cloe - -#endif // CLOE_COMPONENT_OBJECT_SENSOR_FUNCTIONAL_HPP_ diff --git a/models/include/cloe/component/pedal_actuator.hpp b/models/include/cloe/component/pedal_actuator.hpp index 14158f650..682f976c7 100644 --- a/models/include/cloe/component/pedal_actuator.hpp +++ b/models/include/cloe/component/pedal_actuator.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_PEDAL_ACTUATOR_HPP_ -#define CLOE_COMPONENT_PEDAL_ACTUATOR_HPP_ #include // for Actuator #include // for Json @@ -59,5 +57,3 @@ class PedalActuator : public Actuator { }; } // namespace cloe - -#endif // CLOE_COMPONENT_PEDAL_ACTUATOR_HPP_ diff --git a/models/include/cloe/component/powertrain_sensor.hpp b/models/include/cloe/component/powertrain_sensor.hpp index 56b446e6e..2e8370b6d 100644 --- a/models/include/cloe/component/powertrain_sensor.hpp +++ b/models/include/cloe/component/powertrain_sensor.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_POWERTRAIN_SENSOR_HPP_ -#define CLOE_COMPONENT_POWERTRAIN_SENSOR_HPP_ #include // for Component, Json @@ -86,5 +84,3 @@ class NopPowertrainSensor : public PowertrainSensor { }; } // namespace cloe - -#endif // CLOE_COMPONENT_POWERTRAIN_SENSOR_HPP_ diff --git a/models/include/cloe/component/steering_actuator.hpp b/models/include/cloe/component/steering_actuator.hpp index 54113bc5c..8ebff0ce3 100644 --- a/models/include/cloe/component/steering_actuator.hpp +++ b/models/include/cloe/component/steering_actuator.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_STEERING_ACTUATOR_HPP_ -#define CLOE_COMPONENT_STEERING_ACTUATOR_HPP_ #include // for Actuator #include // for Json @@ -55,5 +53,3 @@ class SteeringActuator : public Actuator { }; } // namespace cloe - -#endif // CLOE_COMPONENT_STEERING_ACTUATOR_HPP_ diff --git a/models/include/cloe/component/steering_sensor.hpp b/models/include/cloe/component/steering_sensor.hpp index d2249117d..0d20d545c 100644 --- a/models/include/cloe/component/steering_sensor.hpp +++ b/models/include/cloe/component/steering_sensor.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_STEERING_SENSOR_HPP_ -#define CLOE_COMPONENT_STEERING_SENSOR_HPP_ #include // for Component, Json @@ -65,5 +63,3 @@ class NopSteeringSensor : public SteeringSensor { }; } // namespace cloe - -#endif // CLOE_COMPONENT_STEERING_SENSOR_HPP_ diff --git a/models/include/cloe/component/utility/ego_sensor_canon.hpp b/models/include/cloe/component/utility/ego_sensor_canon.hpp index c0a499372..095ee82a8 100644 --- a/models/include/cloe/component/utility/ego_sensor_canon.hpp +++ b/models/include/cloe/component/utility/ego_sensor_canon.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_UTILITY_EGO_SENSOR_CANON_HPP_ -#define CLOE_COMPONENT_UTILITY_EGO_SENSOR_CANON_HPP_ #include // for fabs #include // for shared_ptr<> @@ -133,5 +131,3 @@ std::shared_ptr closest_forward(const Objects objects); } // namespace utility } // namespace cloe - -#endif // CLOE_COMPONENT_UTILITY_EGO_SENSOR_CANON_HPP_ diff --git a/models/include/cloe/component/utility/filter.hpp b/models/include/cloe/component/utility/filter.hpp index e423e7dba..8a79c82ec 100644 --- a/models/include/cloe/component/utility/filter.hpp +++ b/models/include/cloe/component/utility/filter.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_UTILITY_FILTER_HPP_ -#define CLOE_COMPONENT_UTILITY_FILTER_HPP_ #include @@ -66,5 +64,3 @@ F any_of(std::vector fs) { } // namespace filter } // namespace utility } // namespace cloe - -#endif // CLOE_COMPONENT_UTILITY_FILTER_HPP_ diff --git a/models/include/cloe/component/utility/steering_utils.hpp b/models/include/cloe/component/utility/steering_utils.hpp index 25882ebf6..f63cb83f2 100644 --- a/models/include/cloe/component/utility/steering_utils.hpp +++ b/models/include/cloe/component/utility/steering_utils.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_UTILITY_STEERING_UTILS_HPP_ -#define CLOE_COMPONENT_UTILITY_STEERING_UTILS_HPP_ namespace cloe { namespace utility { @@ -54,5 +52,3 @@ double calculate_wheel_angle(const Geometry& geometry, WheelId wheel_id, double } // namespace utility } // namespace cloe - -#endif // CLOE_COMPONENT_UTILITY_STEERING_UTILS_HPP_ diff --git a/models/include/cloe/component/vehicle_state_model.hpp b/models/include/cloe/component/vehicle_state_model.hpp index 877185ee2..06f8b9cde 100644 --- a/models/include/cloe/component/vehicle_state_model.hpp +++ b/models/include/cloe/component/vehicle_state_model.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_VEHICLE_STATE_MODEL_HPP_ -#define CLOE_COMPONENT_VEHICLE_STATE_MODEL_HPP_ #include // for function @@ -124,5 +122,3 @@ class VehicleStateModel : public Component { }; } // namespace cloe - -#endif // CLOE_COMPONENT_VEHICLE_STATE_MODEL_HPP_ diff --git a/models/include/cloe/component/wheel.hpp b/models/include/cloe/component/wheel.hpp index a290d6d86..c69476bd6 100644 --- a/models/include/cloe/component/wheel.hpp +++ b/models/include/cloe/component/wheel.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_WHEEL_HPP_ -#define CLOE_COMPONENT_WHEEL_HPP_ #include // for to_json @@ -47,5 +45,3 @@ struct Wheel { }; } // namespace cloe - -#endif // CLOE_COMPONENT_WHEEL_HPP_ diff --git a/models/include/cloe/component/wheel_sensor.hpp b/models/include/cloe/component/wheel_sensor.hpp index df8fbf030..c29bab664 100644 --- a/models/include/cloe/component/wheel_sensor.hpp +++ b/models/include/cloe/component/wheel_sensor.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_WHEEL_SENSOR_HPP_ -#define CLOE_COMPONENT_WHEEL_SENSOR_HPP_ #include // for Component, Json #include // for Wheel @@ -96,5 +94,3 @@ class NopWheelSensor : public WheelSensor { }; } // namespace cloe - -#endif // CLOE_COMPONENT_WHEEL_SENSOR_HPP_ diff --git a/models/include/cloe/models.hpp b/models/include/cloe/models.hpp index 11c9465bf..666c2a589 100644 --- a/models/include/cloe/models.hpp +++ b/models/include/cloe/models.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_STD_MODELS_HPP_ -#define CLOE_STD_MODELS_HPP_ #include // for string @@ -103,5 +101,3 @@ ENUM_SERIALIZATION(CloeComponent, ({ inline std::string to_string(CloeComponent c) { return enum_serialization(c).at(c); } } // namespace cloe - -#endif // CLOE_STD_MODELS_HPP_ diff --git a/models/include/cloe/utility/actuation_level.hpp b/models/include/cloe/utility/actuation_level.hpp index a4f8fa3fe..15e741fb8 100644 --- a/models/include/cloe/utility/actuation_level.hpp +++ b/models/include/cloe/utility/actuation_level.hpp @@ -37,8 +37,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_ACTUATION_LEVEL_HPP_ -#define CLOE_UTILITY_ACTUATION_LEVEL_HPP_ #include // for string @@ -185,5 +183,3 @@ inline std::string to_string(const ActuationLevel::Enum level) { } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_ACTUATION_LEVEL_HPP_ diff --git a/models/include/cloe/utility/actuation_state.hpp b/models/include/cloe/utility/actuation_state.hpp index 3f0252624..d49c71109 100644 --- a/models/include/cloe/utility/actuation_state.hpp +++ b/models/include/cloe/utility/actuation_state.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_ACTUATION_STATE_HPP_ -#define CLOE_UTILITY_ACTUATION_STATE_HPP_ #include // for string @@ -113,5 +111,3 @@ struct ActuationStatistics { } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_ACTUATION_STATE_HPP_ diff --git a/models/include/cloe/utility/geometry.hpp b/models/include/cloe/utility/geometry.hpp index 0f037b47c..6c3141b4d 100644 --- a/models/include/cloe/utility/geometry.hpp +++ b/models/include/cloe/utility/geometry.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_GEOMETRY_HPP_ -#define CLOE_UTILITY_GEOMETRY_HPP_ #include @@ -84,5 +82,3 @@ inline void transform_point_to_parent_frame(const Eigen::Isometry3d& child_frame } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_GEOMETRY_HPP_ diff --git a/models/include/cloe/utility/simple_steering_model.hpp b/models/include/cloe/utility/simple_steering_model.hpp index db04e96e3..daad0142b 100644 --- a/models/include/cloe/utility/simple_steering_model.hpp +++ b/models/include/cloe/utility/simple_steering_model.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_SIMPLE_STEERING_MODEL_HPP_ -#define CLOE_UTILITY_SIMPLE_STEERING_MODEL_HPP_ namespace cloe { namespace utility { @@ -82,5 +80,3 @@ class SimpleSteeringModel { } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_SIMPLE_STEERING_MODEL_HPP_ diff --git a/optional/vtd/src/vtd_sensor_components.hpp b/optional/vtd/src/vtd_sensor_components.hpp index 02f868c8b..e4a1615f0 100644 --- a/optional/vtd/src/vtd_sensor_components.hpp +++ b/optional/vtd/src/vtd_sensor_components.hpp @@ -19,6 +19,8 @@ * \file vtd_sensor_components.hpp */ +#pragma once + #include // for DriverRequest #include // for EgoSensor #include // for LaneBoundarySensor diff --git a/plugins/gndtruth_extractor/src/bimap.hpp b/plugins/gndtruth_extractor/src/bimap.hpp index 2273059ca..5030b5401 100644 --- a/plugins/gndtruth_extractor/src/bimap.hpp +++ b/plugins/gndtruth_extractor/src/bimap.hpp @@ -19,6 +19,8 @@ * \file bimap.hpp */ +#pragma once + #include // for vector<> #include // for boost::algorithm::join diff --git a/plugins/gndtruth_extractor/src/gndtruth_extractor.hpp b/plugins/gndtruth_extractor/src/gndtruth_extractor.hpp index b4d62c8ff..78523c76d 100644 --- a/plugins/gndtruth_extractor/src/gndtruth_extractor.hpp +++ b/plugins/gndtruth_extractor/src/gndtruth_extractor.hpp @@ -19,6 +19,8 @@ * \file gndtruth_extractor.hpp */ +#pragma once + #include // for Confable, Schema namespace cloe { diff --git a/runtime/include/cloe/component.hpp b/runtime/include/cloe/component.hpp index 86c5c3700..8692894d8 100644 --- a/runtime/include/cloe/component.hpp +++ b/runtime/include/cloe/component.hpp @@ -25,8 +25,6 @@ */ #pragma once -#ifndef CLOE_COMPONENT_HPP_ -#define CLOE_COMPONENT_HPP_ #include // for uint64_t #include // for shared_ptr<>, unique_ptr<>, make_unique<> @@ -243,5 +241,3 @@ class ComponentFactory : public ModelFactory { }; } // namespace cloe - -#endif // CLOE_COMPONENT_HPP_ diff --git a/runtime/include/cloe/conf/action.hpp b/runtime/include/cloe/conf/action.hpp index 70d548171..81c4eed3b 100644 --- a/runtime/include/cloe/conf/action.hpp +++ b/runtime/include/cloe/conf/action.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_CONF_ACTION_HPP_ -#define CLOE_CONF_ACTION_HPP_ #include // for unique_ptr<> #include // for string @@ -76,5 +74,3 @@ class ConfigureFactory : public ActionFactory { } // namespace actions } // namespace cloe - -#endif // CLOE_CONF_ACTION_HPP_ diff --git a/runtime/include/cloe/controller.hpp b/runtime/include/cloe/controller.hpp index e837716f1..880e0c371 100644 --- a/runtime/include/cloe/controller.hpp +++ b/runtime/include/cloe/controller.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef CLOE_CONTROLLER_HPP_ -#define CLOE_CONTROLLER_HPP_ #include // for shared_ptr<>, unique_ptr<>, make_unique<> #include // for decay @@ -198,5 +196,3 @@ class ControllerFactory : public ModelFactory { }; } // namespace cloe - -#endif // CLOE_CONTROLLER_HPP_ diff --git a/runtime/include/cloe/core.hpp b/runtime/include/cloe/core.hpp index 028ee5f53..7867e2170 100644 --- a/runtime/include/cloe/core.hpp +++ b/runtime/include/cloe/core.hpp @@ -24,12 +24,8 @@ */ #pragma once -#ifndef CLOE_CORE_HPP_ -#define CLOE_CORE_HPP_ #include #include #include #include - -#endif // CLOE_CORE_HPP_ diff --git a/runtime/include/cloe/core/abort.hpp b/runtime/include/cloe/core/abort.hpp index b9aeeddf3..ac8a5f28a 100644 --- a/runtime/include/cloe/core/abort.hpp +++ b/runtime/include/cloe/core/abort.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_CORE_ABORT_HPP_ -#define CLOE_CORE_ABORT_HPP_ #include // for atomic_bool #include // for exception @@ -64,5 +62,3 @@ inline void abort_checkpoint(AbortFlag& sig) { } } // namespace cloe - -#endif // CLOE_CORE_ABORT_HPP_ diff --git a/runtime/include/cloe/core/duration.hpp b/runtime/include/cloe/core/duration.hpp index abe9736c7..71a3a8a9e 100644 --- a/runtime/include/cloe/core/duration.hpp +++ b/runtime/include/cloe/core/duration.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_CORE_DURATION_HPP_ -#define CLOE_CORE_DURATION_HPP_ #include // for duration<>, duration_cast<>, nanoseconds #include // for micro, milli @@ -111,5 +109,3 @@ struct adl_serializer { }; } // namespace nlohmann - -#endif // CLOE_CORE_DURATION_HPP_ diff --git a/runtime/include/cloe/core/error.hpp b/runtime/include/cloe/core/error.hpp index 6629ab396..016951363 100644 --- a/runtime/include/cloe/core/error.hpp +++ b/runtime/include/cloe/core/error.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef CLOE_CORE_ERROR_HPP_ -#define CLOE_CORE_ERROR_HPP_ #include // for exception #include // for string @@ -90,5 +88,3 @@ class ConcludedError : public std::exception { }; } // namespace cloe - -#endif // CLOE_CORE_ERROR_HPP_ diff --git a/runtime/include/cloe/core/fable.hpp b/runtime/include/cloe/core/fable.hpp index b1ef27530..afea92394 100644 --- a/runtime/include/cloe/core/fable.hpp +++ b/runtime/include/cloe/core/fable.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_CORE_FABLE_HPP_ -#define CLOE_CORE_FABLE_HPP_ #include @@ -50,5 +48,3 @@ using namespace fable::schema; // NOLINT(build/namespaces) } // namespace schema } // namespace cloe - -#endif // CLOE_CORE_FABLE_HPP_ diff --git a/runtime/include/cloe/core/logger.hpp b/runtime/include/cloe/core/logger.hpp index afa4a5a29..cd04a892d 100644 --- a/runtime/include/cloe/core/logger.hpp +++ b/runtime/include/cloe/core/logger.hpp @@ -32,8 +32,6 @@ */ #pragma once -#ifndef CLOE_CORE_LOGGER_HPP_ -#define CLOE_CORE_LOGGER_HPP_ #include // for function<> #include // for shared_ptr<> @@ -200,5 +198,3 @@ std::string to_string(LogLevel l); } // namespace logger } // namespace cloe - -#endif // CLOE_CORE_LOGGER_HPP_ diff --git a/runtime/include/cloe/entity.hpp b/runtime/include/cloe/entity.hpp index 3031bfcf4..2c86a3618 100644 --- a/runtime/include/cloe/entity.hpp +++ b/runtime/include/cloe/entity.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_ENTITY_HPP_ -#define CLOE_ENTITY_HPP_ #include // for string @@ -123,5 +121,3 @@ inline void to_json(Json& j, const Entity& e) { } } // namespace cloe - -#endif // CLOE_ENTITY_HPP_ diff --git a/runtime/include/cloe/handler.hpp b/runtime/include/cloe/handler.hpp index 20a5254f3..a7d630bd2 100644 --- a/runtime/include/cloe/handler.hpp +++ b/runtime/include/cloe/handler.hpp @@ -34,8 +34,6 @@ */ #pragma once -#ifndef CLOE_HANDLER_HPP_ -#define CLOE_HANDLER_HPP_ #include // for function #include // for map, map<>::mapped_type @@ -430,5 +428,3 @@ class FromConf { } // namespace handler } // namespace cloe - -#endif // CLOE_HANDLER_HPP_ diff --git a/runtime/include/cloe/model.hpp b/runtime/include/cloe/model.hpp index 6371f908c..5ef444e7c 100644 --- a/runtime/include/cloe/model.hpp +++ b/runtime/include/cloe/model.hpp @@ -47,8 +47,6 @@ */ #pragma once -#ifndef CLOE_MODEL_HPP_ -#define CLOE_MODEL_HPP_ #include // for Duration, Error, Confable #include // for Entity @@ -418,5 +416,3 @@ class ModelFactory : public Entity, public Confable { }; } // namespace cloe - -#endif // CLOE_MODEL_HPP_ diff --git a/runtime/include/cloe/plugin.hpp b/runtime/include/cloe/plugin.hpp index 858081b94..1903daa01 100644 --- a/runtime/include/cloe/plugin.hpp +++ b/runtime/include/cloe/plugin.hpp @@ -44,8 +44,6 @@ */ #pragma once -#ifndef CLOE_PLUGIN_HPP_ -#define CLOE_PLUGIN_HPP_ #include // for is_base_of, conditional<>, false_type @@ -178,5 +176,3 @@ struct PluginManifest { }; } // namespace cloe - -#endif // CLOE_PLUGIN_HPP_ diff --git a/runtime/include/cloe/registrar.hpp b/runtime/include/cloe/registrar.hpp index 06bace086..6cc6c6dd7 100644 --- a/runtime/include/cloe/registrar.hpp +++ b/runtime/include/cloe/registrar.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_REGISTRAR_HPP_ -#define CLOE_REGISTRAR_HPP_ #include // for list<> #include // for unique_ptr<> @@ -227,5 +225,3 @@ class Registrar { }; } // namespace cloe - -#endif // CLOE_REGISTRAR_HPP_ diff --git a/runtime/include/cloe/simulator.hpp b/runtime/include/cloe/simulator.hpp index b04857bc8..55256716d 100644 --- a/runtime/include/cloe/simulator.hpp +++ b/runtime/include/cloe/simulator.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef CLOE_SIMULATOR_HPP_ -#define CLOE_SIMULATOR_HPP_ #include // for shared_ptr<>, unique_ptr<>, make_unique<> #include // for string @@ -233,5 +231,3 @@ class SimulatorFactory : public ModelFactory { }; } // namespace cloe - -#endif // CLOE_SIMULATOR_HPP_ diff --git a/runtime/include/cloe/sync.hpp b/runtime/include/cloe/sync.hpp index 59aa1d188..0b9962324 100644 --- a/runtime/include/cloe/sync.hpp +++ b/runtime/include/cloe/sync.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_SYNC_HPP_ -#define CLOE_SYNC_HPP_ #include // for uint64_t @@ -110,5 +108,3 @@ inline void to_json(Json& j, const Sync& s) { } } // namespace cloe - -#endif // CLOE_SYNC_HPP_ diff --git a/runtime/include/cloe/trigger.hpp b/runtime/include/cloe/trigger.hpp index 926bd5e0f..b715abe4d 100644 --- a/runtime/include/cloe/trigger.hpp +++ b/runtime/include/cloe/trigger.hpp @@ -25,8 +25,6 @@ */ #pragma once -#ifndef CLOE_TRIGGER_HPP_ -#define CLOE_TRIGGER_HPP_ #include // for unique_ptr<>, shared_ptr<> #include // for string @@ -664,4 +662,3 @@ using ActionFactory = TriggerFactory; using ActionFactoryPtr = std::unique_ptr; } // namespace cloe -#endif // CLOE_TRIGGER_HPP_ diff --git a/runtime/include/cloe/trigger/evaluate_event.hpp b/runtime/include/cloe/trigger/evaluate_event.hpp index 0a299abdb..5070d5f3e 100644 --- a/runtime/include/cloe/trigger/evaluate_event.hpp +++ b/runtime/include/cloe/trigger/evaluate_event.hpp @@ -44,8 +44,6 @@ */ #pragma once -#ifndef CLOE_TRIGGER_EVALUATE_EVENT_HPP_ -#define CLOE_TRIGGER_EVALUATE_EVENT_HPP_ #include // for function<> #include // for string @@ -82,5 +80,3 @@ using EvaluateCallback = DirectCallback; } // namespace events } // namespace cloe - -#endif // CLOE_TRIGGER_EVALUATE_EVENT_HPP_ diff --git a/runtime/include/cloe/trigger/example_actions.hpp b/runtime/include/cloe/trigger/example_actions.hpp index d9c4ebec0..3161c26e4 100644 --- a/runtime/include/cloe/trigger/example_actions.hpp +++ b/runtime/include/cloe/trigger/example_actions.hpp @@ -24,8 +24,6 @@ */ #pragma once -#ifndef CLOE_TRIGGER_EXAMPLE_ACTIONS_HPP_ -#define CLOE_TRIGGER_EXAMPLE_ACTIONS_HPP_ #include // for unique_ptr<> #include // for string @@ -166,5 +164,3 @@ class PushReleaseFactory : public ActionFactory { } // namespace actions } // namespace cloe - -#endif // CLOE_TRIGGER_EXAMPLE_ACTIONS_HPP_ diff --git a/runtime/include/cloe/trigger/helper_macros.hpp b/runtime/include/cloe/trigger/helper_macros.hpp index ba13b1e53..0d98c3151 100644 --- a/runtime/include/cloe/trigger/helper_macros.hpp +++ b/runtime/include/cloe/trigger/helper_macros.hpp @@ -20,10 +20,6 @@ */ #pragma once -#ifndef CLOE_TRIGGER_HELPER_MACROS_HPP_ -#define CLOE_TRIGGER_HELPER_MACROS_HPP_ #define _X_FACTORY(xName) xName##Factory #define _X_CALLBACK(xName) xName##Callback - -#endif // CLOE_TRIGGER_HELPER_MACROS_HPP_ diff --git a/runtime/include/cloe/trigger/nil_event.hpp b/runtime/include/cloe/trigger/nil_event.hpp index cae73e269..7d4636cce 100644 --- a/runtime/include/cloe/trigger/nil_event.hpp +++ b/runtime/include/cloe/trigger/nil_event.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_TRIGGER_NIL_EVENT_HPP_ -#define CLOE_TRIGGER_NIL_EVENT_HPP_ #include // for unique_ptr<>, make_unique<> #include // for string @@ -81,5 +79,3 @@ }; \ \ using _X_CALLBACK(xName) = ::cloe::DirectCallback; - -#endif // CLOE_TRIGGER_NIL_EVENT_HPP_ diff --git a/runtime/include/cloe/trigger/set_action.hpp b/runtime/include/cloe/trigger/set_action.hpp index 4710a4fcc..c65cd699f 100644 --- a/runtime/include/cloe/trigger/set_action.hpp +++ b/runtime/include/cloe/trigger/set_action.hpp @@ -22,8 +22,6 @@ */ #pragma once -#ifndef CLOE_TRIGGER_SET_ACTION_HPP_ -#define CLOE_TRIGGER_SET_ACTION_HPP_ #include // for unique_ptr<> #include // for string @@ -253,5 +251,3 @@ class SetVariableActionFactory : public ActionFactory { private: \ xDataType* ptr_; \ }; - -#endif // CLOE_TRIGGER_SET_ACTION_HPP_ diff --git a/runtime/include/cloe/trigger/transition_event.hpp b/runtime/include/cloe/trigger/transition_event.hpp index e9d5004ef..ba3451fed 100644 --- a/runtime/include/cloe/trigger/transition_event.hpp +++ b/runtime/include/cloe/trigger/transition_event.hpp @@ -62,8 +62,6 @@ */ #pragma once -#ifndef CLOE_TRIGGER_TRANSITION_EVENT_HPP_ -#define CLOE_TRIGGER_TRANSITION_EVENT_HPP_ #include // for string @@ -168,5 +166,3 @@ using TransitionCallback = DirectCallback, T>; } // namespace events } // namespace cloe - -#endif // CLOE_TRIGGER_TRANSITION_EVENT_HPP_ diff --git a/runtime/include/cloe/utility/command.hpp b/runtime/include/cloe/utility/command.hpp index c1d08dc87..d31150ac9 100644 --- a/runtime/include/cloe/utility/command.hpp +++ b/runtime/include/cloe/utility/command.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_COMMAND_HPP_ -#define CLOE_UTILITY_COMMAND_HPP_ #include // for string #include // for vector<> @@ -182,5 +180,3 @@ ENUM_SERIALIZATION(Command::Verbosity, ({ // clang-format on } // namespace cloe - -#endif // CLOE_UTILITY_COMMAND_HPP_ diff --git a/runtime/include/cloe/utility/constexpr.hpp b/runtime/include/cloe/utility/constexpr.hpp index 0f55e7215..3704bf1fd 100644 --- a/runtime/include/cloe/utility/constexpr.hpp +++ b/runtime/include/cloe/utility/constexpr.hpp @@ -26,13 +26,9 @@ */ #pragma once -#ifndef CLOE_UTILITY_CONSTEXPR_HPP_ -#define CLOE_UTILITY_CONSTEXPR_HPP_ #ifdef NDEBUG #define CONSTEXPR constexpr #else #define CONSTEXPR #endif - -#endif // CLOE_UTILITY_CONSTEXPR_HPP_ diff --git a/runtime/include/cloe/utility/evaluate.hpp b/runtime/include/cloe/utility/evaluate.hpp index 8cbb15ed1..dfe4689ec 100644 --- a/runtime/include/cloe/utility/evaluate.hpp +++ b/runtime/include/cloe/utility/evaluate.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_EVALUATE_HPP_ -#define CLOE_UTILITY_EVALUATE_HPP_ #include // for function<> #include // for string @@ -46,5 +44,3 @@ std::function compile_evaluation(const std::string& op, double val } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_EVALUATE_HPP_ diff --git a/runtime/include/cloe/utility/inja.hpp b/runtime/include/cloe/utility/inja.hpp index cc6c9fdbd..f8a80167f 100644 --- a/runtime/include/cloe/utility/inja.hpp +++ b/runtime/include/cloe/utility/inja.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_INJA_HPP_ -#define CLOE_UTILITY_INJA_HPP_ #include // for move @@ -47,5 +45,3 @@ inline inja::Environment inja_env() { } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_INJA_HPP_ diff --git a/runtime/include/cloe/utility/maybe_own.hpp b/runtime/include/cloe/utility/maybe_own.hpp index 874212825..bc4b71e50 100644 --- a/runtime/include/cloe/utility/maybe_own.hpp +++ b/runtime/include/cloe/utility/maybe_own.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_MAYBE_OWN_HPP_ -#define CLOE_UTILITY_MAYBE_OWN_HPP_ #include @@ -63,5 +61,3 @@ using maybe_own = std::unique_ptr>; } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_MAYBE_OWN_HPP_ diff --git a/runtime/include/cloe/utility/output_serializer.hpp b/runtime/include/cloe/utility/output_serializer.hpp index ff9fc4983..71f3a0945 100644 --- a/runtime/include/cloe/utility/output_serializer.hpp +++ b/runtime/include/cloe/utility/output_serializer.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_OUTPUT_SERIALIZER_HPP_ -#define CLOE_UTILITY_OUTPUT_SERIALIZER_HPP_ #include // for ofstream #include // for string @@ -225,5 +223,3 @@ class SequentialFileSerializer } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_OUTPUT_SERIALIZER_HPP_ diff --git a/runtime/include/cloe/utility/output_serializer_json.hpp b/runtime/include/cloe/utility/output_serializer_json.hpp index 62d8d6986..40319e290 100644 --- a/runtime/include/cloe/utility/output_serializer_json.hpp +++ b/runtime/include/cloe/utility/output_serializer_json.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_OUTPUT_SERIALIZER_JSON_HPP_ -#define CLOE_UTILITY_OUTPUT_SERIALIZER_JSON_HPP_ #include // for string @@ -136,5 +134,3 @@ std::unique_ptr make_json_file_serializer(JsonFileType type, } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_OUTPUT_SERIALIZER_JSON_HPP_ diff --git a/runtime/include/cloe/utility/output_serializer_msgpack.hpp b/runtime/include/cloe/utility/output_serializer_msgpack.hpp index e2b2ee8ca..ab8df8daf 100644 --- a/runtime/include/cloe/utility/output_serializer_msgpack.hpp +++ b/runtime/include/cloe/utility/output_serializer_msgpack.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_OUTPUT_SERIALIZER_MSGPACK_HPP_ -#define CLOE_UTILITY_OUTPUT_SERIALIZER_MSGPACK_HPP_ #include // for string @@ -63,5 +61,3 @@ class AbstractMsgPackSerializer : public Serializer { } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_OUTPUT_SERIALIZER_MSGPACK_HPP_ diff --git a/runtime/include/cloe/utility/resource.hpp b/runtime/include/cloe/utility/resource.hpp index 685e4e205..238325914 100644 --- a/runtime/include/cloe/utility/resource.hpp +++ b/runtime/include/cloe/utility/resource.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_RESOURCE_HPP_ -#define CLOE_UTILITY_RESOURCE_HPP_ #include #include @@ -74,5 +72,3 @@ class Resource { const size_t size_; const char* filepath_; }; - -#endif // CLOE_UTILITY_RESOURCE_HPP_ diff --git a/runtime/include/cloe/utility/resource_handler.hpp b/runtime/include/cloe/utility/resource_handler.hpp index 3fb69a40b..2b966a175 100644 --- a/runtime/include/cloe/utility/resource_handler.hpp +++ b/runtime/include/cloe/utility/resource_handler.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_RESOURCE_HANDLER_HPP_ -#define CLOE_UTILITY_RESOURCE_HANDLER_HPP_ #include #include // for string @@ -96,5 +94,3 @@ void to_json(cloe::Json& j, const ResourceLoader& c) { } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_RESOURCE_HANDLER_HPP_ diff --git a/runtime/include/cloe/utility/statistics.hpp b/runtime/include/cloe/utility/statistics.hpp index 1ac96a7a8..90f5480c8 100644 --- a/runtime/include/cloe/utility/statistics.hpp +++ b/runtime/include/cloe/utility/statistics.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_STATISTICS_HPP_ -#define CLOE_UTILITY_STATISTICS_HPP_ #include // for sqrt #include // for map<> @@ -227,5 +225,3 @@ class Accumulator { } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_STATISTICS_HPP_ diff --git a/runtime/include/cloe/utility/std_extensions.hpp b/runtime/include/cloe/utility/std_extensions.hpp index e09e14ae6..41fb0e941 100644 --- a/runtime/include/cloe/utility/std_extensions.hpp +++ b/runtime/include/cloe/utility/std_extensions.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_STD_EXTENSIONS_HPP_ -#define CLOE_UTILITY_STD_EXTENSIONS_HPP_ #include // for map<> #include // for string @@ -49,5 +47,3 @@ std::vector map_keys(const std::map& m) { } // namespace utility } // namespace cloe - -#endif diff --git a/runtime/include/cloe/utility/tcp_transceiver.hpp b/runtime/include/cloe/utility/tcp_transceiver.hpp index 026e7bb87..dbade3bc3 100644 --- a/runtime/include/cloe/utility/tcp_transceiver.hpp +++ b/runtime/include/cloe/utility/tcp_transceiver.hpp @@ -20,8 +20,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_TCP_TRANSCEIVER_HPP_ -#define CLOE_UTILITY_TCP_TRANSCEIVER_HPP_ #include // for duration<> #include // for unique_ptr<> @@ -271,5 +269,3 @@ auto create_or_null_with(const TcpTransceiverFullConfiguration& c) } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_TCP_TRANSCEIVER_HPP_ diff --git a/runtime/include/cloe/utility/tcp_transceiver_config.hpp b/runtime/include/cloe/utility/tcp_transceiver_config.hpp index 4cf21c8b5..3ba7937c2 100644 --- a/runtime/include/cloe/utility/tcp_transceiver_config.hpp +++ b/runtime/include/cloe/utility/tcp_transceiver_config.hpp @@ -21,8 +21,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_TCP_TRANSCEIVER_CONFIG_HPP_ -#define CLOE_UTILITY_TCP_TRANSCEIVER_CONFIG_HPP_ #include // for duration #include // for string @@ -117,5 +115,3 @@ struct TcpTransceiverFullConfiguration : public TcpTransceiverConfiguration { } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_TCP_TRANSCEIVER_CONFIG_HPP_ diff --git a/runtime/include/cloe/utility/timer.hpp b/runtime/include/cloe/utility/timer.hpp index 02ddbafa4..21bb3cf88 100644 --- a/runtime/include/cloe/utility/timer.hpp +++ b/runtime/include/cloe/utility/timer.hpp @@ -34,8 +34,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_TIMER_HPP_ -#define CLOE_UTILITY_TIMER_HPP_ #include // for now, duration, ... #include // for functional<> @@ -101,5 +99,3 @@ class DurationTimer { }; } // namespace timer - -#endif // CLOE_UTILITY_TIMER_HPP_ diff --git a/runtime/include/cloe/utility/uid_tracker.hpp b/runtime/include/cloe/utility/uid_tracker.hpp index e625873e9..f0a6b01b7 100644 --- a/runtime/include/cloe/utility/uid_tracker.hpp +++ b/runtime/include/cloe/utility/uid_tracker.hpp @@ -27,8 +27,6 @@ */ #pragma once -#ifndef CLOE_UTILITY_UID_TRACKER_HPP_ -#define CLOE_UTILITY_UID_TRACKER_HPP_ #include // for assert #include // for std::function @@ -118,5 +116,3 @@ class UniqueIDTracker { } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_UID_TRACKER_HPP_ diff --git a/runtime/include/cloe/utility/xdg.hpp b/runtime/include/cloe/utility/xdg.hpp index 3ce662f84..dec369154 100644 --- a/runtime/include/cloe/utility/xdg.hpp +++ b/runtime/include/cloe/utility/xdg.hpp @@ -25,8 +25,7 @@ * Inspiration for the API of this library taken from https://github.com/goulash/xdg. */ -#ifndef CLOE_UTILITY_XDG_HPP_ -#define CLOE_UTILITY_XDG_HPP_ +#pragma once #include // for function #include // for string @@ -234,5 +233,3 @@ inline void merge_data(const boost::filesystem::path& file, } // namespace utility } // namespace cloe - -#endif // CLOE_UTILITY_XDG_HPP_ diff --git a/runtime/include/cloe/vehicle.hpp b/runtime/include/cloe/vehicle.hpp index 28e473be0..bf6113617 100644 --- a/runtime/include/cloe/vehicle.hpp +++ b/runtime/include/cloe/vehicle.hpp @@ -23,8 +23,6 @@ */ #pragma once -#ifndef CLOE_VEHICLE_HPP_ -#define CLOE_VEHICLE_HPP_ #include // for uint64_t #include // for map<> @@ -283,5 +281,3 @@ class Vehicle : public Model { }; } // namespace cloe - -#endif // CLOE_VEHICLE_HPP_