summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-07-14 14:03:38 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-08-07 17:01:00 +0200
commit10501d91b4d7268c9a123eebb28e42ac3aff688e (patch)
treee081dbe3d52ff15b47651f9fc1ce7e3d0055b530 /src/utils
parentd89c3e5e49f484c28569fed09f431240f557a677 (diff)
downloadjustbuild-10501d91b4d7268c9a123eebb28e42ac3aff688e.tar.gz
utils: path normalization method should be noexcept
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/cpp/path.hpp4
1 files changed, 2 insertions, 2 deletions
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 <filesystem>
#include <sstream>
-[[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();