mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:47:36 +00:00
doc: fix docs and enable -Wdocumentation-pedantic #36704
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36704
Loading…
Reference in a new issue
No description provided.
Delete branch "doc_param_direction_fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Prompted by https://github.com/bitcoin/bitcoin/pull/36594#discussion_r4415881033.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Conflicts
No conflicts as of last run.
🔵 Suggestion · New Doxygen blocks describe the wrong coin-selection return value
Converting these comments to Doxygen exposes the stale claim that
SelectCoinsBnBandCoinGrinderreturnstd::nullopt, although both returnutil::Result<SelectionResult>.Location:
src/wallet/coinselection.cpp:111(head).🔵 Suggestion · The
read_allparameter documentation omits its nonempty-vector requirementThe rewritten
read_alldocumentation retains a pre-existing wrong type and omits the nonzero size requirement; an empty vector loops indefinitely, though no current caller supplying one was found.Location:
src/util/subprocess.h:449(head).Review coverage was incomplete.
Reviewed:
e8b442c76108· Review report · Previous reportspermalink
Tested
3e3ed748bfon Fedora 45 using Clang 23.Comments in
src/util/subprocess.hare still missing@paramcommands.My main concern about this PR is that it introduces escaping in Doxygen comments to please the compiler. There are two issues with that::
-Wdocumentation-unknown-commanddoes not trigger on\n. So a few cases remain in the code. And it is rendered simply as a line break, which is wrong: https://doxygen.bitcoincore.org/classutil_1_1_line_reader.html#a36462c325f3e18b1ceb453e6a7282bce.The changes to the parameter direction attributes are correct. However, they are neither necessary for enabling
-Wdocumentation-unknown-commandnor enforced by it, which means we can't be sure that they are complete. At least some more cases were noted by Ralph.A broader warning group works as well:
Wouldn't it be better to rename the parameter in the declaration to
psbtx, matching the function definition, instead?The entire comment shouldn't be a Doxygen one in the first place.
ACK
2c21beac90.A Doxygen rendering nit:
ACK
651d4b65cd.Might this be:
and perhaps L38 too?
Pushed.
ACK
e8b442c761.