Skip to content

Add documentation for include sanitization #3048

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

Merged
merged 2 commits into from
May 17, 2025
Merged

Conversation

AmirhosseinPoolad
Copy link
Contributor

Adds documentation explaining how you can use IWYU or clangd diagnostics to clean up includes. This is the first step in trying to slowly fix #624. The number of include errors we currently have is very high and I don't think it's feasible to fix the entire thing in one go, so I'm proposing to start with making anyone that touches a file in a PR responsible for fixing the includes for that file (This should probably and ideally be enforced by CI). Doing this should slowly make the code cleaner and maybe in the future we can add an IWYU stage to CI.

Note that IWYU can automatically fix includes but I don't think it's a good idea to do something like this automatically.

Copy link
Contributor

@AlexandreSinger AlexandreSinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AlexandreSinger AlexandreSinger merged commit 8bc845f into master May 17, 2025
2 of 4 checks passed
@AlexandreSinger AlexandreSinger deleted the docs_add_iwyu branch May 17, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support include_what_you_use running on CI
2 participants