diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-02 16:03:45 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-07 13:37:39 +0200 |
commit | 6e74b1448bf8d94d73ef3134aa9e8bf36e51a2aa (patch) | |
tree | 535d3c7bdf73251379cff7b541d7e50c3beccca7 /src/buildtool/common/artifact.hpp | |
parent | e8085c1c209e98a31c32e2032d02d620449006e4 (diff) | |
download | justbuild-6e74b1448bf8d94d73ef3134aa9e8bf36e51a2aa.tar.gz |
Enable bugprone-exception-escape check
Diffstat (limited to 'src/buildtool/common/artifact.hpp')
-rw-r--r-- | src/buildtool/common/artifact.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/common/artifact.hpp b/src/buildtool/common/artifact.hpp index a933433e..1ef169d3 100644 --- a/src/buildtool/common/artifact.hpp +++ b/src/buildtool/common/artifact.hpp @@ -64,7 +64,7 @@ class Artifact { // Create JSON of the form '{"id": "hash", "size": x, "file_type": "f"}' // As the failed property is only internal to a run, discard it. - [[nodiscard]] auto ToJson() const noexcept -> nlohmann::json { + [[nodiscard]] auto ToJson() const -> nlohmann::json { return {{"id", digest.hash()}, {"size", digest.size()}, {"file_type", std::string{ToChar(type)}}}; |