-
Notifications
You must be signed in to change notification settings - Fork 10.6k
ClangImporter: Preserve CChar type #32692
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 test |
|
Build failed |
|
Looks good. My one ask is for additional ClangImporter tests for the other char types. |
|
@compnerd Does the |
9b344e8 to
bb6ebb8
Compare
|
@swift-ci test |
|
There might be an expectation problem with regard to wide characters. Regardless of this patch, I think similar problem exists on platforms where |
|
@benrimmington - yeah, it does, @dduan - Android and Linux IIRC are The more interesting problem here is that we might have to change the mapping based upon |
|
@dduan Thanks for the fix! Could you add a test to the |
|
@gribozavr Added |
|
@swift-ci test |
|
Ah, right, wchar_t is a typedef in C and a built-in type in C++, so we've just been silently doing the wrong thing for a long time because it's not in MappedTypes. :-/ |
Addresses SR-466.
|
@swift-ci please smoke test |
|
I've captured discussions here in a few tickets. Thanks to all participants! https://bugs.swift.org/browse/SR-13174 |
Preserve
CCharandCWideCharwhen they are imported as part of C signatures.Resolves SR-466.