Skip to content

[6.0] [SymbolGraphGen] Handle cxx module imports in swift-symbolgraph-extract #74016

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
May 30, 2024

Conversation

rauhul
Copy link
Member

@rauhul rauhul commented May 30, 2024

Explanation: Updates swift-symbolgraph-extract to parse "-cxx-interoperability-mode" flags and updates the underlying compiler invocation. This fixes a bug where were are unable to extract the symbol graph from swiftmodules with transitive cxx modules because we parsed cxx headers as c headers.

Scope: Documentation generation

Issue: rdar://128888548 (Add support for parsing cxx headers)

Original PR: #73963

Risk: Very low, purely additive.

Testing: CI & at desk usage directly and via SwiftPM

Reviewer: @bnbarham @egorzhdan @daniel-grumberg

Updates swift-symbolgraph-extract to parse "-cxx-interoperability-mode"
flags and update the underlying compiler invocation. This fixes a bug
where were are unable to extract the symbol graph from swiftmodules with
transitive cxx modules because we parsed cxx headers as c headers.

rdar://128888548 (Add support for parsing cxx headers)
@rauhul rauhul requested a review from a team as a code owner May 30, 2024 17:18
@rauhul
Copy link
Member Author

rauhul commented May 30, 2024

@swift-ci test

@bnbarham bnbarham added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels May 30, 2024
@rauhul rauhul enabled auto-merge May 30, 2024 17:19
@d-ronnqvist
Copy link
Contributor

FYI I didn't review the original PR

@rauhul
Copy link
Member Author

rauhul commented May 30, 2024

FYI I didn't review the original PR

Oops sorry, I didn't pay enough attention to GitHub autocomplete

@rauhul rauhul merged commit 6348cfd into release/6.0 May 30, 2024
5 checks passed
@rauhul rauhul deleted the cxx-swift-symbolgraph-extract branch May 30, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants