diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-06-28 11:00:47 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-06-29 15:36:20 +0200 |
commit | 16a61d5c4b1faff9571a3f02ebaeecc7684603af (patch) | |
tree | 7a93f7976d8a1d9a4e33ac2318ee741dc82a9aaa /src/buildtool/build_engine/expression/expression.hpp | |
parent | 39cab886df1a50ea8e70504dff83cc77c6140bcb (diff) | |
download | justbuild-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.hpp | 1 |
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()); |