Page MenuHomePhabricator

Add linter to ensure chrono::duration is always initialized
ClosedPublic

Authored by sdulfari on Jul 16 2022, 03:33.

Details

Summary

Follow up to D11759. This avoids accidentially leaving chrono::duration uninitialized which can lead to unexpected behavior.
A reasonable default of 0 has been picked.

Test Plan

Revert D11759, then arc lint

Diff Detail

Repository
rABC Bitcoin ABC
Branch
chrono-linter
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19653
Build 39025: Build Diff
Build 39024: arc lint + arc unit

Event Timeline

Fabien added a subscriber: Fabien.
Fabien added inline comments.
.arclint
141

no need for c files

This revision is now accepted and ready to land.Jul 16 2022, 15:03