Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process. 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. |
03e8d7f to
9c732df
Compare
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
70d05dd to
48296da
Compare
3b04ffa to
f2e0f61
Compare
| # Nothing for now. | ||
| [ | ||
| # Standard C library symbols. | ||
| { "include": [ "<bits/types/cookie_io_functions_t.h>", "private", "<cstdio>", "public" ] }, |
There was a problem hiding this comment.
Why is this needed? Has it been upstreamed?
There was a problem hiding this comment.
Has it been upstreamed?
Working on this.
f2e0f61 to
8faa1e4
Compare
04ce74c to
af4fb74
Compare
ca14da9 lint: Require all code in a header to be inside its include guard (Hennadii Stepanov) 00e1f35 Enclose all header content in include guards (Hennadii Stepanov) Pull request description: From https://gcc.gnu.org/onlinedocs/cpp/Once-Only-Headers.html: > If a header file happens to be included twice, the compiler will process its contents twice. This is very likely to cause an error, e.g. when the compiler sees the same structure definition twice. Even if it does not, it will certainly waste time. This PR fixes the three headers that have content outside their guards and modifies [`test/lint/lint-include-guards.py`](https://github.com/bitcoin/bitcoin/blob/master/test/lint/lint-include-guards.py) to catch such violations in the future. A prerequisite for #36808. ACKs for top commit: maflcko: review ACK ca14da9 🖨 Tree-SHA512: 79a3e7591d4393343df9dcd39d48fe637d62b640e4dad71079fdc2bbbbcf2c01db36c3de77e82d26f90bbc0bdd2864f0e289eb45536f9df9f6e797ee7467874d
The changes in non-fuzz headers are enforced by IWYU because, due to the stem name coincidence, it considers them associated headers of the corresponding fuzz sources. For example, This, in turn, requires adding includes to some non-fuzz sources for headers that were previously included transitively.
I'm going to split out the non-fuzz changes so that they can be reviewed separately. |
af4fb74 to
dd7228c
Compare
08d7d41 to
106b2d8
Compare
106b2d8 to
ee6df5d
Compare
ee6df5d to
9591e3f
Compare
This makes the list easier to read and extend, and keeps diffs minimal when files are added.
Fix IWYU warnings in the following source files and their associated headers, and add them to `IWYU_SRC_FILES`, so that any new warnings there fail CI: - chain.cpp - headerssync.cpp - key_io.cpp - merkleblock.cpp - pow.cpp The changes in other files add includes of headers that were previously included transitively.
9591e3f to
3d224a7
Compare
|
🐙 This pull request conflicts with the target branch and needs rebase. |

This PR continues the ongoing effort to enforce IWYU warnings.
See Developer Notes.
Based on #36844.