summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/file_root.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/file_system/file_root.hpp')
-rw-r--r--src/buildtool/file_system/file_root.hpp8
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.