From 4c12fa12f7ad54174cce97ee511b9a897c992fc1 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 3 Nov 2023 12:46:04 +0100 Subject: just_mr utils: Add missing nodiscard attributes --- src/other_tools/just_mr/utils.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/other_tools/just_mr/utils.hpp b/src/other_tools/just_mr/utils.hpp index 3aff2348..0fc18748 100644 --- a/src/other_tools/just_mr/utils.hpp +++ b/src/other_tools/just_mr/utils.hpp @@ -142,17 +142,18 @@ namespace JustMR::Utils { /// \brief Recursive part of the ResolveRepo function. /// Keeps track of repository names to detect any cyclic dependencies. -auto ResolveRepo(ExpressionPtr const& repo_desc, - ExpressionPtr const& repos, - gsl::not_null*> const& seen) +[[nodiscard]] auto ResolveRepo( + ExpressionPtr const& repo_desc, + ExpressionPtr const& repos, + gsl::not_null*> const& seen) -> std::optional; /// \brief Resolves any cyclic dependency issues and follows the repository /// dependencies until the one containing the WS root is found. /// Returns a repository entry as an ExpressionPtr, or nullopt if cyclic /// dependency found. -auto ResolveRepo(ExpressionPtr const& repo_desc, - ExpressionPtr const& repos) noexcept +[[nodiscard]] auto ResolveRepo(ExpressionPtr const& repo_desc, + ExpressionPtr const& repos) noexcept -> std::optional; } // namespace JustMR::Utils -- cgit v1.2.3