summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/target_cache_entry.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/storage/target_cache_entry.hpp')
-rw-r--r--src/buildtool/storage/target_cache_entry.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/storage/target_cache_entry.hpp b/src/buildtool/storage/target_cache_entry.hpp
index c83d7929..a976dd8c 100644
--- a/src/buildtool/storage/target_cache_entry.hpp
+++ b/src/buildtool/storage/target_cache_entry.hpp
@@ -16,6 +16,7 @@
#define INCLUDED_SRC_BUILDTOOL_STORAGE_TARGET_CACHE_ENTRY_HPP
#include <optional>
+#include <set>
#include <unordered_map>
#include <utility>
#include <vector>
@@ -46,6 +47,9 @@ class TargetCacheEntry {
// Obtain TargetResult from cache entry.
[[nodiscard]] auto ToResult() const noexcept -> std::optional<TargetResult>;
+ // Obtain the implied export targets
+ [[nodiscard]] auto ToImplied() const noexcept -> std::set<std::string>;
+
// Obtain all artifacts from cache entry (all should be known
// artifacts).
[[nodiscard]] auto ToArtifacts(