diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-07-14 14:03:38 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-08-07 17:01:00 +0200 |
commit | 10501d91b4d7268c9a123eebb28e42ac3aff688e (patch) | |
tree | e081dbe3d52ff15b47651f9fc1ce7e3d0055b530 /src/utils | |
parent | d89c3e5e49f484c28569fed09f431240f557a677 (diff) | |
download | justbuild-10501d91b4d7268c9a123eebb28e42ac3aff688e.tar.gz |
utils: path normalization method should be noexcept
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/cpp/path.hpp | 4 |
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(); |