doc: fix docs and enable -Wdocumentation-unknown-command

bitcoin/bitcoin: PR #36704

2 suggestions

Optional improvements

Link

[suggestion] · Newly Doxygen-visible coin-selection docs describe the wrong failure return

Converting these comments to Doxygen exposes their pre-existing claim that SelectCoinsBnB and CoinGrinder return std::nullopt, although both return util::Result<SelectionResult> with errors on failure.

Location: src/wallet/coinselection.cpp:112 (head).

Details and suggested fix

Both @returns lines still say “or std::nullopt”. Insufficient funds returns util::Error(), and an empty best_selection returns either ErrorMaxWeightExceeded() or util::Error(). Update both descriptions to say “The selection result, or an error if no valid selection was found.” Keep the wording about what was found: reaching TOTAL_TRIES can still return a successful, non-optimal selection, and an unsuccessful bounded search does not prove that no valid selection exists.


Link

[suggestion] · VectorWriter documents its mutable output buffer as input-only

The newly Doxygen-visible constructor comments label vchDataIn as [in], although construction can resize the vector and serialization overwrites or appends to it.

Location: src/streams.h:38 (head).

Details and suggested fix

The two-argument constructor calls resize(nPos) when the starting position exceeds the vector's size. The variadic overload delegates to it and then calls SerializeMany, whose writes modify the same vector. Existing callers rely on that output, for example MakeAndPushFeature serializes into feature_data before sending it. Use @param[in,out] vchDataIn in both blocks to describe the buffer's existing contents and possible modification accurately.


Coverage details