-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[CxxInterop] Expose C++ static members as Swift static properties #31070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci Please test |
Build failed |
Build failed |
@swift-ci Please test |
Build failed |
Build failed |
@swift-ci Please test |
1 similar comment
@swift-ci Please test |
@swift-ci Please test Windows |
Build failed |
@swift-ci Please test |
Build failed |
Build failed |
@swift-ci Please test |
Build failed |
Build failed |
6774365
to
fa7daaa
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
1 similar comment
@swift-ci Please test Windows |
This PR does the following:
ImportDecl.cpp
ASTMangler::mangleGlobalVariableFull
test/Interop/Cxx/class
now that static members are supportedtest/Interop/Cxx/static
Doing some form of mangling (or including the record name in the name in any form) in
ASTMangler
is AFAIK needed to be able to have multiple static members with the same name. Without the mangling theSILGenGlobalVariable
is not created due to this line. Therefore with this PR we'll see Clang mangled names for static members in SIL output.Progres on SR-12464 and SR-12466.