Skip to content

[clang][Dependency Scanning] Report What a Module Exports during Scanning (#137421) #10604

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

qiongsiwu
Copy link

We would like to report, for a module, which direct dependencies it exports during dependency scanning. This PR implements this reporting by augmenting ModuleDep's ClangModuleDeps variable. ClangModuleDeps now contains instances of DepInfo, which is made of a ModuleID and a boolean flag that indicates if a particular dependence is exported.

rdar://144794793
(cherry picked from commit ea1bfbf)

@qiongsiwu qiongsiwu requested a review from a team as a code owner May 1, 2025 18:28
@qiongsiwu
Copy link
Author

@swift-ci please test

@qiongsiwu qiongsiwu changed the base branch from swift/release/6.2 to stable/20240723 May 1, 2025 19:43
…ning (llvm#137421)

We would like to report, for a module, which direct dependencies it
exports during dependency scanning. This PR implements this reporting by
augmenting `ModuleDep`'s `ClangModuleDeps` variable. `ClangModuleDeps`
now contains instances of `DepInfo`, which is made of a `ModuleID` and a
boolean flag that indicates if a particular dependence is exported.

rdar://144794793
(cherry picked from commit ea1bfbf)
@qiongsiwu qiongsiwu force-pushed the cherry_pick_144794793 branch from e17f9f6 to 7da77c4 Compare May 1, 2025 23:32
@qiongsiwu
Copy link
Author

I am investigating the test failures.

@qiongsiwu
Copy link
Author

It seems that both the macOS and Windows runs timed out. I am triggering the test again to see what happens.

@qiongsiwu
Copy link
Author

@qiongsiwu qiongsiwu merged commit af6cc83 into swiftlang:stable/20240723 May 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants