chore: Enable clang-tidy misc checks (#6655)

This commit is contained in:
Alex Kremer
2026-03-31 18:29:45 +01:00
committed by GitHub
parent c3fae847f3
commit 2502befb42
469 changed files with 3915 additions and 3965 deletions

View File

@@ -21,7 +21,7 @@ CachedViewImpl::read(Keylet const& k) const
auto const digest = [&]() -> std::optional<uint256> {
{
std::lock_guard lock(mutex_);
std::lock_guard const lock(mutex_);
auto const iter = map_.find(k.key);
if (iter != map_.end())
{
@@ -57,7 +57,7 @@ CachedViewImpl::read(Keylet const& k) const
// Avoid acquiring this lock unless necessary. It is only necessary if
// the key was not found in the map_. The lock is needed to add the key
// and digest.
std::lock_guard lock(mutex_);
std::lock_guard const lock(mutex_);
map_.emplace(k.key, *digest);
}
if (!sle || !k.check(*sle))