From 10501d91b4d7268c9a123eebb28e42ac3aff688e Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 14 Jul 2023 14:03:38 +0200 Subject: utils: path normalization method should be noexcept --- src/utils/cpp/path.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/cpp/path.hpp') diff --git a/src/utils/cpp/path.hpp b/src/utils/cpp/path.hpp index a9fb08e5..3b44748a 100644 --- a/src/utils/cpp/path.hpp +++ b/src/utils/cpp/path.hpp @@ -18,8 +18,8 @@ #include #include -[[nodiscard]] static inline auto ToNormalPath(std::filesystem::path const& p) - -> std::filesystem::path { +[[nodiscard]] static inline auto ToNormalPath( + std::filesystem::path const& p) noexcept -> std::filesystem::path { auto n = p.lexically_normal(); if (not n.has_filename()) { n = n.parent_path(); -- cgit v1.2.3