Skip to content

Conversation

adrian-prantl
Copy link

The name translation only affects selectors and not classes, so it already isn't correct in all cases. The translation is implemented on top of SwiftASTContext, which is very expensive to start up and on top of that may fail if the compiler flags aren't all available.

Right now the cost-benefit trade-off for this feature doesn't work out. We should look into reimplementing it on top of TypeSystemSwiftTypeRef::GetSwiftName() which uses the APINotes and ClangImporter's name translation engine to do the job.

rdar://162496659
(cherry picked from commit 1b1fed2)

The name translation only affects selectors and not classes, so it
already isn't correct in all cases. The translation is implemented on
top of SwiftASTContext, which is very expensive to start up and on top
of that may fail if the compiler flags aren't all available.

Right now the cost-benefit trade-off for this feature doesn't work
out. We should look into reimplementing it on top of
TypeSystemSwiftTypeRef::GetSwiftName() which uses the APINotes and
ClangImporter's name translation engine to do the job.

rdar://162496659
(cherry picked from commit 1b1fed2)
@adrian-prantl adrian-prantl requested a review from a team as a code owner October 16, 2025 21:16
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 781397c into swiftlang:swift/release/6.2 Oct 17, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants