diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-12-01 10:40:11 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-12-05 10:52:23 +0100 |
commit | 73d7feb6a9ce885863213bfeffbbdec0ad7c2935 (patch) | |
tree | 0eb4a1739b127f7bae99ab262d26739073fbf548 | |
parent | be353baa567da5de46b257a4f73b48dc301aacf0 (diff) | |
download | justbuild-73d7feb6a9ce885863213bfeffbbdec0ad7c2935.tar.gz |
FileRoot: Add ignore-special flag getter and remove unneeded inlining
-rw-r--r-- | src/buildtool/file_system/file_root.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/buildtool/file_system/file_root.hpp b/src/buildtool/file_system/file_root.hpp index 4c6b07a3..950cd36b 100644 --- a/src/buildtool/file_system/file_root.hpp +++ b/src/buildtool/file_system/file_root.hpp @@ -595,11 +595,11 @@ class FileRoot { return std::nullopt; // absent roots are neither LOCAL nor KNOWN } - [[nodiscard]] inline auto IsAbsent() const noexcept -> bool { + [[nodiscard]] auto IsAbsent() const noexcept -> bool { return std::holds_alternative<absent_root_t>(root_); } - [[nodiscard]] inline auto GetAbsentTreeId() const noexcept + [[nodiscard]] auto GetAbsentTreeId() const noexcept -> std::optional<std::string> { if (std::holds_alternative<absent_root_t>(root_)) { try { @@ -611,6 +611,10 @@ class FileRoot { return std::nullopt; } + [[nodiscard]] auto IgnoreSpecial() const noexcept -> bool { + return ignore_special_; + } + /// \brief Parses a FileRoot from string. On errors, populates error_msg. /// \returns the FileRoot and optional local path (if the root is local), /// nullopt on errors. |