Skip to content

Swift: Recurse clang submodules when computing extension indexes - #22234

Open
jketema wants to merge 1 commit into
github:mainfrom
jketema:jketema/swift-fix
Open

Swift: Recurse clang submodules when computing extension indexes#22234
jketema wants to merge 1 commit into
github:mainfrom
jketema:jketema/swift-fix

Conversation

@jketema

@jketema jketema commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

I had originally excluded this, as this didn't seem possible. Looks like I was mistaken. The crash on the linked issue is on an extension, not something private.

I just hope this doesn't make things even slower 😅

Fixes: #22224

@github-actions github-actions Bot added the Swift label Jul 27, 2026
@jketema jketema changed the title Swift: Recurse calng submodules when computing extension indexes Swift: Recurse clang submodules when computing extension indexes Jul 27, 2026
@jketema
jketema marked this pull request as ready for review July 27, 2026 11:30
Copilot AI review requested due to automatic review settings July 27, 2026 11:30
@jketema
jketema requested review from a team as code owners July 27, 2026 11:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Recursively indexes extensions and fileprivate values in nested Clang submodules, preventing Swift extraction assertions for deeply nested declarations.

Changes:

  • Adds recursive Clang submodule traversal while preserving index continuity.
  • Removes an unused generated trap-class include.
Show a summary per file
File Description
swift/extractor/mangler/SwiftMangler.h Declares the recursive indexing helper.
swift/extractor/mangler/SwiftMangler.cpp Implements recursive indexing across nested Clang submodules.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Medium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

2 participants