Skip to content

Conversation

@QuietMisdreavus
Copy link
Contributor

@QuietMisdreavus QuietMisdreavus commented Sep 14, 2022

Cherry-pick of #61049

Description: This PR fixes a handful of bugs in SymbolGraphGen's export-import logic, primarily around Clang modules, deep levels of extensions, and synthesized symbols. This allows symbol graphs for modules which export-import Foundation to successfully be processed by Swift-DocC without crashing.

Risk: Low. The changes are specific to SymbolGraphGen, and only affect modules which use @_exported import statements. Regular compilation is unaffected.

Review by: @franklinsch

Testing: Two lit tests, SymbolGraph/ClangImporter/ExportedImport.swift and SymbolGraph/Module/ThirdOrder, were added to reproduce the issues which occur in Foundation. Existing lit tests all pass.

Issue: rdar://99939379

@QuietMisdreavus QuietMisdreavus requested a review from a team as a code owner September 14, 2022 22:23
@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please build toolchain macOS

@QuietMisdreavus QuietMisdreavus merged commit 7980273 into release/5.7 Sep 17, 2022
@QuietMisdreavus QuietMisdreavus deleted the QuietMisdreavus/5.7/reexport-ext branch September 17, 2022 20:35
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