Skip to content

Conversation

zoecarver
Copy link
Contributor

Simply treat scoped enums as (pre-existing) "non-frozen enums". C++ scoped enums are actually imported as Swift enums (unlike other enums) and no global variables need to be created (given their "scoped" nature).

I'd really like to import all enums as Swift enums, but the ship may have sailed on that one for C, at least. Stay tuned for future patches...

@zoecarver zoecarver requested review from gribozavr and hlopko December 5, 2020 00:20
@zoecarver zoecarver added the c++ interop Feature: Interoperability with C++ label Dec 5, 2020
@hlopko
Copy link
Contributor

hlopko commented Dec 16, 2020

@swift-ci please test.

@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test.

@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test.

@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test OS X platform.

@zoecarver
Copy link
Contributor Author

@swift-ci please test Windows.

@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test OS X platform.

@zoecarver
Copy link
Contributor Author

@swift-ci please test Windows.

Simply treat scoped enums as (pre-existing) "non frozen enums". C++
scoped enums are actually imported as Swift enums (unlike other enums)
and no global variables need be created (given their "scoped" nature).
@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test.

@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test Linux.

1 similar comment
@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test Linux.

@zoecarver zoecarver merged commit fddac23 into swiftlang:main Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ interop Feature: Interoperability with C++

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants