From e8a9df96a084dc8c34d928a63e8fedbcb2eec9b6 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 29 Feb 2024 15:17:26 +0100 Subject: just-mr and serve: Extend use of noexcept specifier The just serve client-side and API methods, as well as just-mr utilities should use the noexcept specifier. --- src/buildtool/serve_api/remote/target_client.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/buildtool/serve_api/remote/target_client.hpp') diff --git a/src/buildtool/serve_api/remote/target_client.hpp b/src/buildtool/serve_api/remote/target_client.hpp index 66c6dcf2..5b21208e 100644 --- a/src/buildtool/serve_api/remote/target_client.hpp +++ b/src/buildtool/serve_api/remote/target_client.hpp @@ -42,7 +42,7 @@ class TargetClient { /// \param[in] repo_key The RepositoryKey to upload as precondition /// \returns Pair of cache entry and its object info on success or nullopt. [[nodiscard]] auto ServeTarget(const TargetCacheKey& key, - const std::string& repo_key) + const std::string& repo_key) noexcept -> std::optional>; /// \brief Retrieve the flexible config variables of an export target. @@ -52,7 +52,7 @@ class TargetClient { /// \returns The list of flexible config variables, or nullopt on errors. [[nodiscard]] auto ServeTargetVariables(std::string const& target_root_id, std::string const& target_file, - std::string const& target) + std::string const& target) noexcept -> std::optional>; /// \brief Retrieve the artifact digest of the blob containing the export @@ -61,10 +61,10 @@ class TargetClient { /// \param[in] target_file Relative path of the target file. /// \param[in] target Name of the target to interrogate. /// \returns The artifact digest, or nullopt on errors. - [[nodiscard]] auto ServeTargetDescription(std::string const& target_root_id, - std::string const& target_file, - std::string const& target) - -> std::optional; + [[nodiscard]] auto ServeTargetDescription( + std::string const& target_root_id, + std::string const& target_file, + std::string const& target) noexcept -> std::optional; private: std::unique_ptr stub_; -- cgit v1.2.3