-
Notifications
You must be signed in to change notification settings - Fork 37.8k
refactor: add most of src/util to iwyu #25324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Concept ACK. |
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
" src/util/bip32.cpp"\ | ||
" src/util/bytevectorhash.cpp"\ | ||
" src/util/error.cpp"\ | ||
" src/util/getuniquepath.cpp"\ | ||
" src/util/hasher.cpp"\ | ||
" src/util/message.cpp"\ | ||
" src/util/moneystr.cpp"\ | ||
" src/util/serfloat.cpp"\ | ||
" src/util/spanparsing.cpp"\ | ||
" src/util/strencodings.cpp"\ | ||
" src/util/syserror.cpp"\ | ||
" src/util/url.cpp"\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, this PR affects more files, e.g., asmap.cpp
, readwritefile.cpp
etc. Should they be listed here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IWYU generates spurious output for some .cpp files, which would require adding headers that I'm not sure are correct, so I've excluded them for now.
These files change infrequently, and not much header shuffling is required. We don't add everything in src/util/ yet, because IWYU makes some dubious suggestions, which I'm going to follow up with upstream.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 07f2c25, I have reviewed the code and it looks OK, I agree it can be merged.
Suggesting to apply clang-format-diff.py
as well.
These files change infrequently, and not much header shuffling is required.
We don't add everything in src/util/ yet, because IWYU makes some
dubious suggestions, which I'm going to follow up with upstream.
Soon we'll swap
src/util/xyz.cpp
for justsrc/util/
.