From d9e35f9d82acbc661aca0cb5608e052434e52dc8 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 15 Jun 2022 15:45:24 +0200 Subject: expression: cache the cacheability property --- src/buildtool/build_engine/expression/expression.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/buildtool/build_engine/expression/expression.hpp') diff --git a/src/buildtool/build_engine/expression/expression.hpp b/src/buildtool/build_engine/expression/expression.hpp index 047089d2..68dddb10 100644 --- a/src/buildtool/build_engine/expression/expression.hpp +++ b/src/buildtool/build_engine/expression/expression.hpp @@ -242,6 +242,7 @@ class Expression { data_{none_t{}}; AtomicValue hash_{}; + AtomicValue is_cachable_{}; template requires(IsValidType()) [[nodiscard]] static consteval auto GetIndexOf() @@ -325,6 +326,7 @@ class Expression { [[nodiscard]] auto TypeStringForIndex() const noexcept -> std::string; [[nodiscard]] auto TypeString() const noexcept -> std::string; [[nodiscard]] auto ComputeHash() const noexcept -> std::string; + [[nodiscard]] auto ComputeIsCacheable() const -> bool; }; namespace std { -- cgit v1.2.3