diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-30 16:16:20 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-07 13:37:39 +0200 |
commit | 030af3e7af210617df00bf850476df6b46fb004d (patch) | |
tree | 6bfaff768b035c382fe0db07909ecd1f908f1eaf /src/buildtool/crypto/hasher.cpp | |
parent | ce23db59c6399199fa55b4b7dc8880522e2f1bca (diff) | |
download | justbuild-030af3e7af210617df00bf850476df6b46fb004d.tar.gz |
Enable readability-* checks.
Diffstat (limited to 'src/buildtool/crypto/hasher.cpp')
-rw-r--r-- | src/buildtool/crypto/hasher.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buildtool/crypto/hasher.cpp b/src/buildtool/crypto/hasher.cpp index 41182559..7c5d1d9c 100644 --- a/src/buildtool/crypto/hasher.cpp +++ b/src/buildtool/crypto/hasher.cpp @@ -66,15 +66,15 @@ struct InitializeVisitor final { static constexpr std::string_view kLogInfo = "Initialize"; // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA_CTX& ctx) const -> bool { return SHA1_Init(&ctx) == kOpenSslTrue; } // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA256_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA256_CTX& ctx) const -> bool { return SHA256_Init(&ctx) == kOpenSslTrue; } // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA512_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA512_CTX& ctx) const -> bool { return SHA512_Init(&ctx) == kOpenSslTrue; } }; @@ -86,15 +86,15 @@ struct UpdateVisitor final { : data_{*data} {} // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA_CTX& ctx) const -> bool { return SHA1_Update(&ctx, data_.data(), data_.size()) == kOpenSslTrue; } // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA256_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA256_CTX& ctx) const -> bool { return SHA256_Update(&ctx, data_.data(), data_.size()) == kOpenSslTrue; } // NOLINTNEXTLINE(google-runtime-references) - [[nodiscard]] inline auto operator()(SHA512_CTX& ctx) const -> bool { + [[nodiscard]] auto operator()(SHA512_CTX& ctx) const -> bool { return SHA512_Update(&ctx, data_.data(), data_.size()) == kOpenSslTrue; } |