diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-16 13:12:13 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-18 16:47:40 +0200 |
commit | 62929ab02c7f8e93b3d7241df775acdf2a1e1b36 (patch) | |
tree | c814f25d710559a097df96da794dcfdca8426c8f | |
parent | bf66b1cc04a0b1e13d53e6c52e44188753b932c4 (diff) | |
download | justbuild-62929ab02c7f8e93b3d7241df775acdf2a1e1b36.tar.gz |
Add missing #endif comments in headers
39 files changed, 39 insertions, 39 deletions
diff --git a/src/buildtool/build_engine/analysed_target/target_graph_information.hpp b/src/buildtool/build_engine/analysed_target/target_graph_information.hpp index 672aeddc..7b94a91a 100644 --- a/src/buildtool/build_engine/analysed_target/target_graph_information.hpp +++ b/src/buildtool/build_engine/analysed_target/target_graph_information.hpp @@ -55,4 +55,4 @@ class TargetGraphInformation { inline const TargetGraphInformation TargetGraphInformation::kSource = TargetGraphInformation{nullptr, {}, {}, {}}; -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILDENGINE_ANALYSED_TARGET_TARGET_GRAPH_INFORMATION_HPP diff --git a/src/buildtool/build_engine/base_maps/directory_map.hpp b/src/buildtool/build_engine/base_maps/directory_map.hpp index 59f17da1..463b273d 100644 --- a/src/buildtool/build_engine/base_maps/directory_map.hpp +++ b/src/buildtool/build_engine/base_maps/directory_map.hpp @@ -37,4 +37,4 @@ auto CreateDirectoryEntriesMap( } // namespace BuildMaps::Base -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_BASE_MAPS_DIRECTORY_MAP_HPP diff --git a/src/buildtool/build_engine/base_maps/entity_name.hpp b/src/buildtool/build_engine/base_maps/entity_name.hpp index 397a82f0..8190157d 100644 --- a/src/buildtool/build_engine/base_maps/entity_name.hpp +++ b/src/buildtool/build_engine/base_maps/entity_name.hpp @@ -302,4 +302,4 @@ template <typename T> } // namespace BuildMaps::Base -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_BASE_MAPS_ENTITY_NAME_HPP diff --git a/src/buildtool/build_engine/base_maps/entity_name_data.hpp b/src/buildtool/build_engine/base_maps/entity_name_data.hpp index ba227bc4..a8d207ac 100644 --- a/src/buildtool/build_engine/base_maps/entity_name_data.hpp +++ b/src/buildtool/build_engine/base_maps/entity_name_data.hpp @@ -211,4 +211,4 @@ struct hash<BuildMaps::Base::EntityName> { } // namespace std -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_BASE_MAPS_ENTITY_NAME_DATA_HPP diff --git a/src/buildtool/build_engine/base_maps/module_name.hpp b/src/buildtool/build_engine/base_maps/module_name.hpp index 8ff582c5..495254d8 100644 --- a/src/buildtool/build_engine/base_maps/module_name.hpp +++ b/src/buildtool/build_engine/base_maps/module_name.hpp @@ -51,4 +51,4 @@ struct hash<BuildMaps::Base::ModuleName> { } // namespace std -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_BASE_MAPS_MODULE_NAME_HPP diff --git a/src/buildtool/build_engine/base_maps/source_map.hpp b/src/buildtool/build_engine/base_maps/source_map.hpp index fa18190b..a65de692 100644 --- a/src/buildtool/build_engine/base_maps/source_map.hpp +++ b/src/buildtool/build_engine/base_maps/source_map.hpp @@ -41,4 +41,4 @@ auto CreateSourceTargetMap( } // namespace BuildMaps::Base -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_BASE_MAPS_SOURCE_MAP_HPP diff --git a/src/buildtool/build_engine/base_maps/targets_file_map.hpp b/src/buildtool/build_engine/base_maps/targets_file_map.hpp index 167f12f8..f14ea7f1 100644 --- a/src/buildtool/build_engine/base_maps/targets_file_map.hpp +++ b/src/buildtool/build_engine/base_maps/targets_file_map.hpp @@ -34,4 +34,4 @@ constexpr auto CreateTargetsFileMap = } // namespace BuildMaps::Base -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_BASE_MAPS_TARGETS_FILE_MAP_HPP diff --git a/src/buildtool/build_engine/target_map/absent_target_map.hpp b/src/buildtool/build_engine/target_map/absent_target_map.hpp index 6dc36a7d..874204a7 100644 --- a/src/buildtool/build_engine/target_map/absent_target_map.hpp +++ b/src/buildtool/build_engine/target_map/absent_target_map.hpp @@ -76,4 +76,4 @@ struct hash<BuildMaps::Target::AbsentTargetDescription> { }; } // namespace std -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_TARGET_MAP_ABSENT_TARGET_MAP_HPP diff --git a/src/buildtool/build_engine/target_map/built_in_rules.hpp b/src/buildtool/build_engine/target_map/built_in_rules.hpp index 653344f2..242b68c3 100644 --- a/src/buildtool/build_engine/target_map/built_in_rules.hpp +++ b/src/buildtool/build_engine/target_map/built_in_rules.hpp @@ -33,4 +33,4 @@ auto HandleBuiltin(const gsl::not_null<AnalyseContext*>& context, const gsl::not_null<BuildMaps::Target::ResultTargetMap*>& result_map) -> bool; } // namespace BuildMaps::Target -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_TARGET_MAP_BUILT_IN_RULES_HPP diff --git a/src/buildtool/build_engine/target_map/configured_target.hpp b/src/buildtool/build_engine/target_map/configured_target.hpp index 88c59cf2..6f83d73d 100644 --- a/src/buildtool/build_engine/target_map/configured_target.hpp +++ b/src/buildtool/build_engine/target_map/configured_target.hpp @@ -66,4 +66,4 @@ struct hash<BuildMaps::Target::ConfiguredTarget> { }; } // namespace std -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_TARGET_MAP_CONFIGURED_TARGET_HPP diff --git a/src/buildtool/build_engine/target_map/export.hpp b/src/buildtool/build_engine/target_map/export.hpp index e0e6e568..5845514e 100644 --- a/src/buildtool/build_engine/target_map/export.hpp +++ b/src/buildtool/build_engine/target_map/export.hpp @@ -31,4 +31,4 @@ void ExportRule( const BuildMaps::Target::TargetMap::LoggerPtr& logger, const gsl::not_null<BuildMaps::Target::ResultTargetMap*>& result_map); -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_TARGET_MAP_EXPORT_HPP diff --git a/src/buildtool/build_engine/target_map/target_map.hpp b/src/buildtool/build_engine/target_map/target_map.hpp index 11273ad0..d411da1c 100644 --- a/src/buildtool/build_engine/target_map/target_map.hpp +++ b/src/buildtool/build_engine/target_map/target_map.hpp @@ -54,4 +54,4 @@ auto IsBuiltInRule(nlohmann::json const& rule_type) -> bool; } // namespace BuildMaps::Target -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_TARGET_MAP_TARGET_MAP_HPP diff --git a/src/buildtool/build_engine/target_map/utils.hpp b/src/buildtool/build_engine/target_map/utils.hpp index 8c469bbe..9ffd6374 100644 --- a/src/buildtool/build_engine/target_map/utils.hpp +++ b/src/buildtool/build_engine/target_map/utils.hpp @@ -77,4 +77,4 @@ auto createAction(const ActionDescription::outputs_t& output_files, const ExpressionPtr& inputs_exp) -> ActionDescription::Ptr; } // namespace BuildMaps::Target::Utils -#endif +#endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_TARGET_MAP_UTILS_HPP diff --git a/src/buildtool/common/retry_cli.hpp b/src/buildtool/common/retry_cli.hpp index 53076252..a78c360e 100644 --- a/src/buildtool/common/retry_cli.hpp +++ b/src/buildtool/common/retry_cli.hpp @@ -48,4 +48,4 @@ static inline void SetupRetryArguments( "the resources that survived the outage. (Default: 60)"); } -#endif +#endif // INCLUDED_SRC_BUILDTOOL_COMMON_RETRY_CLI_HPP diff --git a/src/buildtool/execution_api/execution_service/ac_server.hpp b/src/buildtool/execution_api/execution_service/ac_server.hpp index 59b8297f..268bbf9a 100644 --- a/src/buildtool/execution_api/execution_service/ac_server.hpp +++ b/src/buildtool/execution_api/execution_service/ac_server.hpp @@ -73,4 +73,4 @@ class ActionCacheServiceImpl final : public bazel_re::ActionCache::Service { Logger logger_{"execution-service"}; }; -#endif +#endif // AC_SERVER_HPP diff --git a/src/buildtool/execution_api/execution_service/bytestream_server.hpp b/src/buildtool/execution_api/execution_service/bytestream_server.hpp index e246da0c..27ea1972 100644 --- a/src/buildtool/execution_api/execution_service/bytestream_server.hpp +++ b/src/buildtool/execution_api/execution_service/bytestream_server.hpp @@ -88,4 +88,4 @@ class BytestreamServiceImpl : public ::google::bytestream::ByteStream::Service { Logger logger_{"execution-service:bytestream"}; }; -#endif +#endif // BYTESTREAM_SERVER_HPP diff --git a/src/buildtool/execution_api/execution_service/cas_server.hpp b/src/buildtool/execution_api/execution_service/cas_server.hpp index 30f8697b..2e139560 100644 --- a/src/buildtool/execution_api/execution_service/cas_server.hpp +++ b/src/buildtool/execution_api/execution_service/cas_server.hpp @@ -222,4 +222,4 @@ class CASServiceImpl final Storage const& storage_; Logger logger_{"execution-service"}; }; -#endif +#endif // CAS_SERVER_HPP diff --git a/src/buildtool/execution_api/execution_service/execution_server.hpp b/src/buildtool/execution_api/execution_service/execution_server.hpp index 01ede03e..65709cf2 100644 --- a/src/buildtool/execution_api/execution_service/execution_server.hpp +++ b/src/buildtool/execution_api/execution_service/execution_server.hpp @@ -150,4 +150,4 @@ class ExecutionServiceImpl final : public bazel_re::Execution::Service { ::google::longrunning::Operation&& op) noexcept; }; -#endif +#endif // EXECUTION_SERVER_HPP diff --git a/src/buildtool/execution_api/execution_service/operation_cache.hpp b/src/buildtool/execution_api/execution_service/operation_cache.hpp index a53aff98..1d51854e 100644 --- a/src/buildtool/execution_api/execution_service/operation_cache.hpp +++ b/src/buildtool/execution_api/execution_service/operation_cache.hpp @@ -82,4 +82,4 @@ class OperationCache final { void GarbageCollection(); }; -#endif +#endif // OPERATION_CACHE_HPP diff --git a/src/buildtool/execution_api/execution_service/operations_server.hpp b/src/buildtool/execution_api/execution_service/operations_server.hpp index 1023771b..5947eeb7 100644 --- a/src/buildtool/execution_api/execution_service/operations_server.hpp +++ b/src/buildtool/execution_api/execution_service/operations_server.hpp @@ -74,4 +74,4 @@ class OperationsServiceImpl final Logger logger_{"execution-service:operations"}; }; -#endif +#endif // OPERATIONS_SERVER_HPP diff --git a/src/buildtool/execution_api/execution_service/server_implementation.hpp b/src/buildtool/execution_api/execution_service/server_implementation.hpp index 932011c0..0236b17d 100644 --- a/src/buildtool/execution_api/execution_service/server_implementation.hpp +++ b/src/buildtool/execution_api/execution_service/server_implementation.hpp @@ -62,4 +62,4 @@ class ServerImpl final { std::string pid_file_{}; }; -#endif +#endif // SERVER_IMPLEMENATION_HPP diff --git a/src/buildtool/execution_api/git/git_api.hpp b/src/buildtool/execution_api/git/git_api.hpp index 4fdd712f..ed28f237 100644 --- a/src/buildtool/execution_api/git/git_api.hpp +++ b/src/buildtool/execution_api/git/git_api.hpp @@ -342,4 +342,4 @@ class GitApi final : public IExecutionApi { } }; -#endif +#endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_API_GIT_GIT_API_HPP diff --git a/src/buildtool/execution_api/utils/outputscheck.hpp b/src/buildtool/execution_api/utils/outputscheck.hpp index 431a5328..4719d2d6 100644 --- a/src/buildtool/execution_api/utils/outputscheck.hpp +++ b/src/buildtool/execution_api/utils/outputscheck.hpp @@ -63,4 +63,4 @@ #endif -#endif +#endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_API_UTILS_OUTPUTSCHECK_HPP diff --git a/src/buildtool/main/add_to_cas.hpp b/src/buildtool/main/add_to_cas.hpp index b7b25bb7..564caa7e 100644 --- a/src/buildtool/main/add_to_cas.hpp +++ b/src/buildtool/main/add_to_cas.hpp @@ -25,4 +25,4 @@ ApiBundle const& apis) -> bool; #endif -#endif +#endif // INCLUDED_SRC_BUILDTOOL_MAIN_ADD_TO_CAS_HPP diff --git a/src/buildtool/main/analyse.hpp b/src/buildtool/main/analyse.hpp index 0c637a0e..4e75c26a 100644 --- a/src/buildtool/main/analyse.hpp +++ b/src/buildtool/main/analyse.hpp @@ -43,4 +43,4 @@ struct AnalysisResult { Logger const* logger = nullptr, BuildMaps::Target::ServeFailureLogReporter* = nullptr) -> std::optional<AnalysisResult>; -#endif +#endif // INCLUDED_SRC_BUILDOOL_MAIN_ANALYSE_HPP diff --git a/src/buildtool/main/archive.hpp b/src/buildtool/main/archive.hpp index e9ed037e..da61a5c3 100644 --- a/src/buildtool/main/archive.hpp +++ b/src/buildtool/main/archive.hpp @@ -32,4 +32,4 @@ #endif -#endif +#endif // INCLUDED_SRC_BUILDTOOL_MAIN_ARCHIVE_HPP diff --git a/src/buildtool/main/cli.hpp b/src/buildtool/main/cli.hpp index c2d14ba9..d68cba4b 100644 --- a/src/buildtool/main/cli.hpp +++ b/src/buildtool/main/cli.hpp @@ -61,4 +61,4 @@ struct CommandLineArguments { auto ParseCommandLineArguments(int argc, char const* const* argv) -> CommandLineArguments; -#endif +#endif // INCLUDED_SRC_BUILDTOOL_MAIN_CLI diff --git a/src/buildtool/main/diagnose.hpp b/src/buildtool/main/diagnose.hpp index 79a150b8..cb3d57a6 100644 --- a/src/buildtool/main/diagnose.hpp +++ b/src/buildtool/main/diagnose.hpp @@ -22,4 +22,4 @@ void DiagnoseResults(AnalysisResult const& result, BuildMaps::Target::ResultTargetMap const& result_map, DiagnosticArguments const& clargs); -#endif +#endif // INCLUDED_SRC_BUILDTOOL_MAIN_DIAGNOSE_HPP diff --git a/src/buildtool/main/exit_codes.hpp b/src/buildtool/main/exit_codes.hpp index d668e154..ff30a5f2 100644 --- a/src/buildtool/main/exit_codes.hpp +++ b/src/buildtool/main/exit_codes.hpp @@ -21,4 +21,4 @@ enum ExitCodes { kExitSuccessFailedArtifacts = 2 }; -#endif +#endif // INCLUDED_SRC_BUILDTOOL_MAIN_EXIT_CODES_HPP diff --git a/src/buildtool/main/version.hpp b/src/buildtool/main/version.hpp index af72a12e..30597f58 100644 --- a/src/buildtool/main/version.hpp +++ b/src/buildtool/main/version.hpp @@ -19,4 +19,4 @@ auto version() -> std::string; -#endif +#endif // INCLUDED_SRC_BUILDOOL_MAIN_VERSION_HPP diff --git a/src/other_tools/just_mr/rc.hpp b/src/other_tools/just_mr/rc.hpp index fe8e3d89..a24fdb2e 100644 --- a/src/other_tools/just_mr/rc.hpp +++ b/src/other_tools/just_mr/rc.hpp @@ -26,4 +26,4 @@ [[nodiscard]] auto ReadJustMRRC( gsl::not_null<CommandLineArguments*> const& clargs) -> std::optional<std::filesystem::path>; -#endif +#endif // INCLUDED_SRC_OTHER_TOOLS_JUST_MR_RC_HPP diff --git a/src/other_tools/just_mr/rc_merge.hpp b/src/other_tools/just_mr/rc_merge.hpp index d559ed9d..61901a05 100644 --- a/src/other_tools/just_mr/rc_merge.hpp +++ b/src/other_tools/just_mr/rc_merge.hpp @@ -21,4 +21,4 @@ [[nodiscard]] auto MergeMRRC(const Configuration& base, const Configuration& delta) noexcept -> Configuration; -#endif +#endif // INCLUDED_SRC_OTHER_TOOLS_JUST_MR_RC_MERGE_HPP diff --git a/src/other_tools/root_maps/foreign_file_git_map.hpp b/src/other_tools/root_maps/foreign_file_git_map.hpp index 2efd1ae6..e2662c4c 100644 --- a/src/other_tools/root_maps/foreign_file_git_map.hpp +++ b/src/other_tools/root_maps/foreign_file_git_map.hpp @@ -42,4 +42,4 @@ using ForeignFileGitMap = bool fetch_absent, std::size_t jobs) -> ForeignFileGitMap; -#endif +#endif // INCLUDED_SRC_OTHER_TOOLS_ROOT_MAPS_FOREIGN_FILE_GIT_MAP_HPP diff --git a/src/other_tools/utils/parse_archive.hpp b/src/other_tools/utils/parse_archive.hpp index bf7f02fc..198bfa48 100644 --- a/src/other_tools/utils/parse_archive.hpp +++ b/src/other_tools/utils/parse_archive.hpp @@ -43,4 +43,4 @@ auto ParseForeignFileDescription(ExpressionPtr const& repo_desc, const AsyncMapConsumerLoggerPtr& logger) -> std::optional<ForeignFileInfo>; -#endif +#endif // INCLUDED_SRC_OTHER_TOOLS_UTILS_PARSE_ARCHIVE_HPP diff --git a/src/utils/cpp/hash_combine.hpp b/src/utils/cpp/hash_combine.hpp index 78fed417..5a63abfa 100644 --- a/src/utils/cpp/hash_combine.hpp +++ b/src/utils/cpp/hash_combine.hpp @@ -28,4 +28,4 @@ inline auto hash_combine(gsl::not_null<std::size_t*> const& seed, std::hash<T>{}(v) + 0x9e3779b9 + (*seed << 6) + (*seed >> 2); // NOLINT } -#endif +#endif // INCLUDED_SRC_UTILS_CPP_HASH_COMBINE_HPP diff --git a/src/utils/cpp/path.hpp b/src/utils/cpp/path.hpp index f9b937a1..77ea647c 100644 --- a/src/utils/cpp/path.hpp +++ b/src/utils/cpp/path.hpp @@ -59,4 +59,4 @@ return PathIsNonUpwards(applied_to.parent_path() / path); } -#endif +#endif // INCLUDED_SRC_UTILS_CPP_PATH_HPP diff --git a/src/utils/cpp/path_rebase.hpp b/src/utils/cpp/path_rebase.hpp index 25b99724..e98baf5b 100644 --- a/src/utils/cpp/path_rebase.hpp +++ b/src/utils/cpp/path_rebase.hpp @@ -36,4 +36,4 @@ return result; } -#endif +#endif // INCLUDED_SRC_UTILS_CPP_PATH_REBASE_HPP diff --git a/src/utils/cpp/prefix.hpp b/src/utils/cpp/prefix.hpp index 604e8226..5574c01a 100644 --- a/src/utils/cpp/prefix.hpp +++ b/src/utils/cpp/prefix.hpp @@ -30,4 +30,4 @@ return out.str(); } -#endif +#endif // INCLUDED_SRC_UTILS_CPP_PREFIX_HPP diff --git a/src/utils/cpp/vector.hpp b/src/utils/cpp/vector.hpp index ce76f9cf..e5bcd3da 100644 --- a/src/utils/cpp/vector.hpp +++ b/src/utils/cpp/vector.hpp @@ -25,4 +25,4 @@ void sort_and_deduplicate(std::vector<T>* x) { auto it = std::unique(x->begin(), x->end()); x->erase(it, x->end()); } -#endif +#endif // INCLUDED_SRC_UTILS_CPP_VECTOR_HPP |