Skip to content

Make conversion between BridgedIdentifier and Identifier implicit #68347

Open
@ahoppen

Description

@ahoppen

In CASTBridging.cpp, we have quite a few calls to convertIdentifier. We should check if we can eliminate them.

To do this, we have two options:

  • Use C++ interop, remove BridgedIdentifier and pass Identifier everywhere we currently pass BridgedIdentifier
  • Define a conversion initializer on Identifier that takes a BridgedIdentifier so that we get implicit conversion from BridgedIdentifier to Identifier.

Metadata

Metadata

Assignees

Labels

ASTGenArea → compiler: The ASTGen module, which translates SwiftSyntax trees to the C++ ASTcompilerThe Swift compiler itself

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions