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

Run IWYU across the entire compiler code base. #3767

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Dec 9, 2022

Clean up the compiler includes by running IWYU across them. This also exposes how some files have a massive amount of includes, some of which may not be necessary.

If requested, I can also add a comment per include which lists why that particular include was added.

Also reduces the size of binaries by a little. For example p4c-bm2-ss 201MB -> 198MB.

@fruffy fruffy force-pushed the fruffy/iwyu branch 4 times, most recently from d041d1c to 386408d Compare December 16, 2022 14:59
@fruffy fruffy force-pushed the fruffy/iwyu branch 2 times, most recently from ff483a5 to 86d026e Compare January 8, 2023 19:07
@fruffy fruffy force-pushed the fruffy/iwyu branch 4 times, most recently from 1b62418 to cc7fbe8 Compare April 5, 2023 21:05
@fruffy fruffy changed the title Run IWYU across the entire compiler [WiP]. Run IWYU across the entire compiler code base. Apr 5, 2023
@fruffy fruffy force-pushed the fruffy/iwyu branch 5 times, most recently from 24c89fe to dc3a882 Compare April 17, 2023 12:08
@fruffy fruffy mentioned this pull request Apr 17, 2023
@fruffy fruffy force-pushed the fruffy/iwyu branch 3 times, most recently from 532b84c to b36412d Compare August 13, 2023 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Topics related to code style and build and test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant