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/configuration_client.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buildtool/serve_api/remote/configuration_client.hpp') diff --git a/src/buildtool/serve_api/remote/configuration_client.hpp b/src/buildtool/serve_api/remote/configuration_client.hpp index f4346a4e..45053c5e 100644 --- a/src/buildtool/serve_api/remote/configuration_client.hpp +++ b/src/buildtool/serve_api/remote/configuration_client.hpp @@ -34,9 +34,9 @@ class ConfigurationClient { : stub_{justbuild::just_serve::Configuration::NewStub( CreateChannelWithCredentials(server, port))} {} - auto CheckServeRemoteExecution() -> bool; + [[nodiscard]] auto CheckServeRemoteExecution() noexcept -> bool; - [[nodiscard]] auto IsCompatible() -> std::optional; + [[nodiscard]] auto IsCompatible() noexcept -> std::optional; private: std::unique_ptr stub_; -- cgit v1.2.3