Skip to content
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

i#4103 clang-tidy: Mark hierarchical headers for IWYU #7073

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

derekbruening
Copy link
Contributor

Adds clang-tidy annotations to the deliberately hierarchical headers in core DR where one header is meant to include a set of other headers. This avoids clang-tidy Include What You Use complaints which can cause users to include individual sub-headers, which sometimes have ordering constraints if the top-level header is not included first (or solely).

Issue: #4103

Adds clang-tidy annotations to the deliberately hierarchical headers
in core DR where one header is meant to include a set of other
headers.  This avoids clang-tidy Include What You Use complaints which
can cause users to include individual sub-headers, which sometimes
have ordering constraints if the top-level header is not included
first (or solely).

Issue: #4103
@derekbruening
Copy link
Contributor Author

The failures are all bugs in clang-format-diff where with its smaller context it doesn't match clang-format on the whole file. Probably best to override and check in what full clang-format says; the next change to globals_shared.h is just going to hit the same problem so me reverting just that part of the file won't help long-term.

@derekbruening
Copy link
Contributor Author

3 of the failures are the aforementioned clang-format-diff; the x64 failure is type_is_instr #3320.

@derekbruening derekbruening merged commit 9ae8f30 into master Nov 11, 2024
13 of 17 checks passed
@derekbruening derekbruening deleted the i4103-clang-tidy-export branch November 11, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants