Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove outdated ifndef-define-endif header guards #192

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions engine/src/plugins/nop_controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
*/

#pragma once
#ifndef CLOE_CONTROLLER_NOP_HPP_
#define CLOE_CONTROLLER_NOP_HPP_

#include <cloe/controller.hpp> // for DEFINE_CONTROLLER_FACTORY, Json, ...

Expand All @@ -42,5 +40,3 @@ DEFINE_CONTROLLER_FACTORY(NopFactory, NopConfiguration, "nop", "stand-in that do

} // namespace controller
} // namespace cloe

#endif // CLOE_CONTROLLER_NOP_HPP_
4 changes: 0 additions & 4 deletions engine/src/plugins/nop_simulator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
*/

#pragma once
#ifndef CLOE_SIMULATOR_NOP_HPP_
#define CLOE_SIMULATOR_NOP_HPP_

#include <memory> // for unique_ptr<>
#include <string> // for string
Expand Down Expand Up @@ -53,5 +51,3 @@ DEFINE_SIMULATOR_FACTORY(NopFactory, NopConfiguration, "nop", "stand-in no-opera

} // namespace simulator
} // namespace cloe

#endif // CLOE_SIMULATOR_NOP_HPP_
2 changes: 2 additions & 0 deletions engine/src/utility/defer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* \file defer.hpp
*/

#pragma once

#include <functional> // for function<>

namespace engine {
Expand Down
4 changes: 0 additions & 4 deletions fable/include/fable/conf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
*/

#pragma once
#ifndef FABLE_CONF_HPP_
#define FABLE_CONF_HPP_

#include <functional> // for function<>
#include <string> // for string
Expand Down Expand Up @@ -348,5 +346,3 @@ class Conf {
};

} // namespace fable

#endif // FABLE_CONF_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/confable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
*/

#pragma once
#ifndef FABLE_CONFABLE_HPP_
#define FABLE_CONFABLE_HPP_

#include <memory> // for unique_ptr<>

Expand Down Expand Up @@ -138,5 +136,3 @@ struct adl_serializer<fable::Confable> {
};

} // namespace nlohmann

#endif // FABLE_CONFABLE_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/enum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
*/

#pragma once
#ifndef FABLE_ENUM_HPP_
#define FABLE_ENUM_HPP_

#include <map> // for map<>
#include <string> // for string
Expand Down Expand Up @@ -172,5 +170,3 @@ T from_string(const std::string& s) {
}

} // namespace fable

#endif // FABLE_ENUM_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/environment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
*/

#pragma once
#ifndef FABLE_ENVIRONMENT_HPP_
#define FABLE_ENVIRONMENT_HPP_

#include <cassert> // for assert
#include <map> // for map<>
Expand Down Expand Up @@ -134,5 +132,3 @@ inline std::string interpolate_vars(const std::string& s, const Environment* env
}

} // namespace fable

#endif // FABLE_ENVIRONMENT_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
*/

#pragma once
#ifndef FABLE_ERROR_HPP_
#define FABLE_ERROR_HPP_

#include <stdexcept> // for exception
#include <string> // for string
Expand Down Expand Up @@ -154,5 +152,3 @@ class SchemaError : public ConfError {
};

} // namespace fable

#endif // FABLE_ERROR_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/fable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
*/

#pragma once
#ifndef FABLE_FABLE_HPP_
#define FABLE_FABLE_HPP_

#include <fable/conf.hpp>
#include <fable/confable.hpp>
Expand All @@ -34,5 +32,3 @@
#include <fable/json.hpp>
#include <fable/json/with_std.hpp>
#include <fable/schema.hpp>

#endif // FABLE_FABLE_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*/

#pragma once
#ifndef FABLE_JSON_HPP_
#define FABLE_JSON_HPP_

#include <string> // for string

Expand Down Expand Up @@ -108,5 +106,3 @@ inline Json parse_json(InputType&& input) {
}

} // namespace fable

#endif // FABLE_JSON_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/json/with_boost.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
*/

#pragma once
#ifndef FABLE_JSON_WITH_BOOST_HPP_
#define FABLE_JSON_WITH_BOOST_HPP_

#include <nlohmann/json.hpp>

Expand Down Expand Up @@ -61,5 +59,3 @@ struct adl_serializer<boost::optional<T>> {
};

} // namespace nlohmann

#endif // FABLE_JSON_WITH_BOOST_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/json/with_eigen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
*/

#pragma once
#ifndef FABLE_JSON_WITH_EIGEN_HPP_
#define FABLE_JSON_WITH_EIGEN_HPP_

#include <nlohmann/json.hpp>

Expand Down Expand Up @@ -87,5 +85,3 @@ struct adl_serializer<Eigen::Isometry3d> {
};

} // namespace nlohmann

#endif // FABLE_JSON_WITH_EIGEN_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/json/with_std.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
*/

#pragma once
#ifndef FABLE_JSON_WITH_STD_HPP_
#define FABLE_JSON_WITH_STD_HPP_

#include <memory> // for unique_ptr<>, shared_ptr<>, weak_ptr<>

Expand Down Expand Up @@ -76,5 +74,3 @@ struct adl_serializer<std::weak_ptr<T>> {
};

} // namespace nlohmann

#endif // FABLE_JSON_WITH_STD_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_HPP_
#define FABLE_SCHEMA_HPP_

#include <chrono> // for duration<>
#include <map> // for map<>
Expand Down Expand Up @@ -269,5 +267,3 @@ class Schema : public schema::Interface {
};

} // namespace fable

#endif // FABLE_SCHEMA_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_ARRAY_HPP_
#define FABLE_SCHEMA_ARRAY_HPP_

#include <limits> // for numeric_limits<>
#include <memory> // for shared_ptr<>
Expand Down Expand Up @@ -182,5 +180,3 @@ Array<T, P> make_schema(std::vector<T>* ptr, const P& prototype, std::string&& d

} // namespace schema
} // namespace fable

#endif // FABLE_SCHEMA_ARRAY_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/boolean.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_BOOLEAN_HPP_
#define FABLE_SCHEMA_BOOLEAN_HPP_

#include <string> // for string
#include <utility> // for move
Expand Down Expand Up @@ -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_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/confable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_CONFABLE_HPP_
#define FABLE_SCHEMA_CONFABLE_HPP_

#include <memory> // for shared_ptr<>
#include <string> // for string
Expand Down Expand Up @@ -110,5 +108,3 @@ FromConfable<T> make_schema(T* ptr, std::string&& desc) {

} // namespace schema
} // namespace fable

#endif // FABLE_SCHEMA_CONFABLE_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/const.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_CONST_HPP_
#define FABLE_SCHEMA_CONST_HPP_

#include <string> // for string
#include <utility> // for move
Expand Down Expand Up @@ -105,5 +103,3 @@ inline Const<std::string, String> make_const_str(const char* constant, std::stri

} // namespace schema
} // namespace fable

#endif // FABLE_SCHEMA_CONST_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/custom.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_CUSTOM_HPP_
#define FABLE_SCHEMA_CUSTOM_HPP_

#include <functional> // for function<>

Expand Down Expand Up @@ -93,5 +91,3 @@ class CustomDeserializer : public schema::Interface {

} // namespace schema
} // namespace fable

#endif // FABLE_SCHEMA_CUSTOM_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/duration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_DURATION_HPP_
#define FABLE_SCHEMA_DURATION_HPP_

#include <chrono> // for duration<>
#include <limits> // for numeric_limits<>
Expand Down Expand Up @@ -196,5 +194,3 @@ inline Duration<Rep, Period> make_schema(std::chrono::duration<Rep, Period>* ptr

} // namespace schema
} // namespace fable

#endif // FABLE_SCHEMA_DURATION_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/enum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_ENUM_HPP_
#define FABLE_SCHEMA_ENUM_HPP_

#include <map> // for map<>
#include <string> // for string
Expand Down Expand Up @@ -111,5 +109,3 @@ inline Enum<T> make_schema(T* ptr, std::string&& desc) {

} // namespace schema
} // namespace fable

#endif // FABLE_SCHEMA_ENUM_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_FACTORY_HPP_
#define FABLE_SCHEMA_FACTORY_HPP_

#include <functional> // for function<>
#include <limits> // for numeric_limits<>
Expand Down Expand Up @@ -420,5 +418,3 @@ class Factory : public FactoryBase<T, Factory<T>> {

} // namespace schema
} // namespace fable

#endif // FABLE_SCHEMA_FACTORY_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/ignore.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_IGNORE_HPP_
#define FABLE_SCHEMA_IGNORE_HPP_

#include <string> // for string
#include <utility> // for move
Expand Down Expand Up @@ -68,5 +66,3 @@ inline Ignore make_schema(std::string&& desc, JsonType t = JsonType::object) {

} // namespace schema
} // namespace fable

#endif // FABLE_SCHEMA_IGNORE_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_INTERFACE_HPP_
#define FABLE_SCHEMA_INTERFACE_HPP_

#include <memory> // for shared_ptr<>
#include <string> // for string
Expand Down Expand Up @@ -467,5 +465,3 @@ auto make_prototype(std::string&& desc = "");

} // namespace schema
} // namespace fable

#endif // FABLE_SCHEMA_INTERFACE_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_JSON_HPP_
#define FABLE_SCHEMA_JSON_HPP_

#include <string> // for string
#include <utility> // for move
Expand Down Expand Up @@ -88,5 +86,3 @@ inline FromJson<T> make_schema(T* ptr, JsonType t, std::string&& desc) {

} // namespace schema
} // namespace fable

#endif // FABLE_SCHEMA_JSON_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/magic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_MAGIC_HPP_
#define FABLE_SCHEMA_MAGIC_HPP_

#include <map> // for map<>
#include <string> // for string
Expand Down Expand Up @@ -105,5 +103,3 @@ auto make_prototype(std::string&& desc) {

} // namespace schema
} // namespace fable

#endif // FABLE_SCHEMA_MAGIC_HPP_
4 changes: 0 additions & 4 deletions fable/include/fable/schema/map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
*/

#pragma once
#ifndef FABLE_SCHEMA_MAP_HPP_
#define FABLE_SCHEMA_MAP_HPP_

#include <limits> // for numeric_limits<>
#include <map> // for map<>
Expand Down Expand Up @@ -197,5 +195,3 @@ Map<T, P> make_schema(std::map<std::string, T>* ptr, const P& prototype, std::st

} // namespace schema
} // namespace fable

#endif // FABLE_SCHEMA_MAP_HPP_
Loading