Skip to content

[libclang] Add C interface for querying against ModuleDeps #10323

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
Mar 26, 2025

Conversation

cyndyishida
Copy link

Previously the callback used for getting the output path of pcm's took in the ModuleID, which represents the name & context hash. Now that there are more attributes to determine the output path, like the attribute isInStableDirectories. To support this case, allow clients to override the callback's signature to pass along a reference to the whole ModuleDep object instead.

Additionally, this patch:

  • Makes calls that unwrap CXDepGraphModule const correct.
  • Provides an API to query whether a module comes from
    stable directories.

Previously the callback used for getting the output path of pcm's took
in the ModuleID, which represents the name & context hash. Now that
there are more attributes to determine the output path, like the
attribute `isInStableDirectories`. To support this case,
allow clients to override the signature of the callback to pass along a reference to the whole
`ModuleDep` object instead.

Additionally, this patch:

* Makes calls that unwrap `CXDepGraphModule` const correct.
* Provides an API to query whether a module comes from
  stable directories.
@cyndyishida
Copy link
Author

@swift-ci please test LLVM

@cyndyishida cyndyishida merged commit bf81f39 into swiftlang:next Mar 26, 2025
2 checks passed
@cyndyishida cyndyishida deleted the eng/PR-147409864 branch March 26, 2025 14:42
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