summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/target_client.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-02-29 15:17:26 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-02-29 15:57:17 +0100
commite8a9df96a084dc8c34d928a63e8fedbcb2eec9b6 (patch)
tree30976722418f87b620441e4698590108e56f25bb /src/buildtool/serve_api/remote/target_client.hpp
parenta0e21b45baac40462089d7b80faa33ebabe7b010 (diff)
downloadjustbuild-e8a9df96a084dc8c34d928a63e8fedbcb2eec9b6.tar.gz
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.
Diffstat (limited to 'src/buildtool/serve_api/remote/target_client.hpp')
-rw-r--r--src/buildtool/serve_api/remote/target_client.hpp12
1 files changed, 6 insertions, 6 deletions
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<std::pair<TargetCacheEntry, Artifact::ObjectInfo>>;
/// \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<std::vector<std::string>>;
/// \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<ArtifactDigest>;
+ [[nodiscard]] auto ServeTargetDescription(
+ std::string const& target_root_id,
+ std::string const& target_file,
+ std::string const& target) noexcept -> std::optional<ArtifactDigest>;
private:
std::unique_ptr<justbuild::just_serve::Target::Stub> stub_;