chore: Enable most cppcoreguidelines checks (#7660)

This commit is contained in:
Ayaz Salikhov
2026-07-07 14:12:52 +01:00
committed by GitHub
parent f5e63f8a91
commit c5a6de6ef7
29 changed files with 86 additions and 74 deletions

View File

@@ -80,7 +80,9 @@ TxTest::TxTest(std::optional<FeatureBitset> features)
std::vector<uint256>{featureSet_.begin(), featureSet_.end()},
registry_.getNodeFamily());
// Initialize time from the genesis ledger
// Initialize time from the genesis ledger. closedLedger_ is created above
// in the body, so this cannot be a member initializer.
// NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer)
now_ = closedLedger_->header().closeTime;
// Create an open view on top of the genesis ledger