Skip to content

[6.0][IncludeTree] Fix PPCallback for include tree that can cause missing .d file #8641

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

Conversation

cachemeifyoucan
Copy link

….d file

For IncludeDirective callback from include-tree, do not callback with
null FileEntry as that dependency collector using that to indicate a
missing header include, and will not emit dependency file in this case.

Unlike a regular callback from Lexer, include tree doesn't resolve
headers so it cannot callback with a FileEntry to the header file being
included when the include is actually a module. The behavior for the
callback has to be changed slightly that it uses the ASTFile FileEntry.

rdar://126885995
(cherry picked from commit 5b7c747)
@cachemeifyoucan cachemeifyoucan requested a review from a team April 25, 2024 17:20
@cachemeifyoucan
Copy link
Author

@swift-ci please test

@cachemeifyoucan
Copy link
Author

All tests are passed. Ping for merging since I have no permission.

@nkcsgexi nkcsgexi merged commit c8cf6f4 into swiftlang:swift/release/6.0 Apr 25, 2024
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