Skip to content

[AST] Break some header dependencies for faster rebuilds #27374

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 1 commit into from
Sep 26, 2019

Conversation

jrose-apple
Copy link
Contributor

DiagnosticEngine.h no longer depends on Attr.h.
Expr.h no longer depends on TypeRepr.h.

No functionality change.

DiagnosticEngine.h no longer depends on Attr.h.
Expr.h no longer depends on TypeRepr.h.

No functionality change.
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@jrose-apple
Copy link
Contributor Author

The original goal of this was to make Attr.def touch fewer files but I don't think I succeeded because of AttrKind.h.

Copy link
Contributor

@CodaFi CodaFi left a comment

Choose a reason for hiding this comment

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

Good stuff. Is there a tool or methodology you have for detecting these coarse dependencies?

@jrose-apple
Copy link
Contributor Author

Nothing so advanced, just find a header that bothers me and look wherever it's included in other headers (as opposed to .cpp files). If I can't break a link, see if I can break the next link after that.

@jrose-apple jrose-apple merged commit 8ff1dac into swiftlang:master Sep 26, 2019
@jrose-apple jrose-apple deleted the getting-ahead-of-the-game branch September 26, 2019 16:17
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.

3 participants