Skip to content

Cherry-pick changes on swift/master but not on swift/swift-5.2-branch #492

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

Merged

Conversation

adrian-prantl
Copy link

No description provided.

Teemperor and others added 6 commits December 18, 2019 08:51
…n the host config

Summary:
Our Editline implementation in LLDB supports using the wchar interface of Editline which
should improve handling of unicode input when using Editline. At the moment we essentially
just ignore unicode input and echo the escaped unicode code point (`\U1234`) to the command line
(which we then also incorrectly treat as multiple characters, so console navigation is also broken afterwards).

This patch just adds the include to the host config file which already contains the LLDB_EDITLINE_USE_WCHAR
define to enable the Editline support (we just never included it in the file before). With this we now actually
echo back unicode characters on macOS and we no longer ignore unicode input. On Linux this doesn't
seem to improve the echoing back of characters but at least it fixes that we ignore unicode input.

Reviewers: labath

Reviewed By: labath

Subscribers: JDevlieghere, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D71251

(cherry picked from commit bd528c7)
This reverts commit 746e52a.

(cherry picked from commit e8f68ef)
Prior to this patch SwiftOptionSetSummaryProvider would bregister
itself for any Clang-imported type, but only provide a non-empty
summary for enums. By moving the enum check into
WouldEvenConsiderFormatting, this is avoided.

rdar://problem/55026321
(cherry picked from commit c9bf5ff)
C unions are struct types in Swift, but their fields are not
implemented as stored properties, so the default implementation did
not work for them. This patch adds special handling for unions by
iterating over the imported VarDecls.

rdar://problem/55026321
(cherry picked from commit ca7ab28)
@adrian-prantl
Copy link
Author

@swift-ci test

@fredriss fredriss merged commit c47b992 into swiftlang:swift/swift-5.2-branch Dec 18, 2019
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.

3 participants