summaryrefslogtreecommitdiff
path: root/src/buildtool/build_engine/expression/expression.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-06-28 11:00:47 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-06-29 15:36:20 +0200
commit16a61d5c4b1faff9571a3f02ebaeecc7684603af (patch)
tree7a93f7976d8a1d9a4e33ac2318ee741dc82a9aaa /src/buildtool/build_engine/expression/expression.hpp
parent39cab886df1a50ea8e70504dff83cc77c6140bcb (diff)
downloadjustbuild-16a61d5c4b1faff9571a3f02ebaeecc7684603af.tar.gz
Use a more meaningful abbreviation of expression values
... in error messages. The outer structure is usually more important than the the details of the first element.
Diffstat (limited to 'src/buildtool/build_engine/expression/expression.hpp')
-rw-r--r--src/buildtool/build_engine/expression/expression.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buildtool/build_engine/expression/expression.hpp b/src/buildtool/build_engine/expression/expression.hpp
index 68dddb10..334dfb0d 100644
--- a/src/buildtool/build_engine/expression/expression.hpp
+++ b/src/buildtool/build_engine/expression/expression.hpp
@@ -212,6 +212,7 @@ class Expression {
-> nlohmann::json;
[[nodiscard]] auto IsCacheable() const -> bool;
[[nodiscard]] auto ToString() const -> std::string;
+ [[nodiscard]] auto ToAbbrevString(size_t len) const -> std::string;
[[nodiscard]] auto ToHash() const noexcept -> std::string;
[[nodiscard]] auto ToIdentifier() const noexcept -> std::string {
return ToHexString(ToHash());