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

feat: add include-what-you-use #13

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

feat: add include-what-you-use #13

wants to merge 1 commit into from

Conversation

sfoster1
Copy link
Member

Adds the include-what-you-use tool. This is another lint step that maeks
sure only appropriate headers are present, and that all required headers
are present (even if things are already compiling because those headers
are in some transitive #include). This makes things faster to compile
and also safer since you can't remove an include that doesn't seem like
it has anything to do with anything and suddenly break stuff.

Unfortunately, this also doesn't work because of a clang bug that prevents code that uses ranges from compiling in most cases. This breaks iwyu because iwyu depends on clang and llvm for semantic analysis.

Whenever upstream fixes that we can add iwyu.

Adds the include-what-you-use tool. This is another lint step that maeks
sure only appropriate headers are present, and that all required headers
are present (even if things are already compiling because those headers
are in some transitive #include). This makes things faster to compile
and also safer since you can't remove an include that doesn't seem like
it has anything to do with anything and suddenly break stuff.
@sfoster1 sfoster1 added the invalid This doesn't seem right label Jul 26, 2021
@sfoster1 sfoster1 requested a review from a team July 26, 2021 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant