The documentation, and a single commit extracted from #24661.
Motivation:
Incorrect named args are source of bugs, like #22979.
To allow them being checked by clang-tidy, use a format it can understand.
lgtm
961 | - /*bucket=*/bucket, 962 | - /*position=*/addr_info->GetBucketPosition(nKey, true, bucket)); 963 | + return AddressPosition(/*tried_in=*/false, 964 | + /*multiplicity_in=*/addr_info->nRefCount, 965 | + /*bucket_in=*/bucket, 966 | + /*position_in=*/addr_info->GetBucketPosition(nKey, true, bucket));
unrelated comment:
If msvc was less crappy, we could use designated initializers to enforce named args in constructors without clang-tidy, see #24531
Concept ACK, would be nice to be able to point to developer notes when someone asks why I'm formatting arg names this way. The instructions look correct. Were you planning on fixing all of the clang-tidy violations or just these in addrman.cpp?
ACK 7e22d80af333b202939bcb2631082006c097bf22