-
Notifications
You must be signed in to change notification settings - Fork 1.2k
backport: bitcoin/bitcoin#25645, #25668 fix iwyu on node/chainstate, dbwrapper.h and related fixes #6900
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
faf98ae Remove unused includes in rpc/fees.cpp (MacroFake) 1111dde Remove unused includes from dbwrapper.h (MacroFake) fa77fdd Add missing includes (MacroFake) fa869ce Add missing includes to node/chainstate (MacroFake) Pull request description: Unused includes are confusing, but also cause unrelated compile errors when the unused includes were to be removed. Fix that by adding the missing includes where they are needed and then remove them where they are not needed. This is also checked by iwyu. ACKs for top commit: hebasto: ACK faf98ae, I have reviewed the code and it looks OK, I agree it can be merged. jarolrod: Code Review ACK bitcoin@faf98ae Tree-SHA512: 75f3c6e6f6ecf8a98233e1a1463c75ca4e0eb3ec341150d274141072fe95413a3c2ec6386d1c527899cc63d43f63f5eb5991509847412773362808ddfb1bb435
✅ No Merge Conflicts DetectedThis PR currently has no conflicts with other open PRs. |
WalkthroughThis pull request systematically updates and reorganizes include directives across the codebase, primarily expanding the set of files analyzed by the include-what-you-use (IWYU) tool during CI checks. Changes include adding Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Rationale: The diff consists primarily of homogeneous include-directive modifications repeated across ~17 files, which individually require minimal review effort. However, the heterogeneous elements present—particularly the significant Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
fad3c58 refactor: Fix iwyu on node/chainstate (MacroFake) Pull request description: Fix the CI warning on master: https://cirrus-ci.com/task/5398182703136768?logs=ci#L7020 ACKs for top commit: fanquake: ACK fad3c58 - could do chain.h Tree-SHA512: 94f6ea0b3d9667863a4217b65bd1b9e07c65bdb566378faf0727bae5eb38d2d527ecae0c39efdda740b7ab7c8269141437ffbcb470cca7d559f09b8ee132d101
|
I looked more to bitcoin's implementation of iwyu - it's never triggers error; moreover at some moment they just added all src/ to the iwyu linter and just use it for information as possible refactorings, but not like CI that must succeed. So, iwyu linter stays just advisory, not mandatory |
UdjinM6
left a comment
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.
utACK 79f7424
kwvg
left a comment
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.
utACK 79f7424
Issue being fixed or feature implemented
Some files has been missing when added to iwyu linter list.
What was done?
Backport bitcoin#25645, bitcoin#25668 missing fixes from bitcoin#24974, bitcoin#25694, bitcoin#25254 and related fixes to apply linter's messages.
How Has This Been Tested?
Revised output of CI iwuy
Breaking Changes
N/A
Checklist:
Go over all the following points, and put an
xin all the boxes that apply.