Skip to content

Runtime: Add a convenient -[_SwiftValue _swiftTypeName] method for debugging. #4307

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
merged 1 commit into from
Aug 15, 2016

Conversation

jckarter
Copy link
Contributor

This makes it a bit easier to diagnose unexpected boxing problems in the debugger, by allowing po [value _swiftTypeName] to work, instead of forcing users to know how to call swift_getTypeName from lldb themselves.

@jckarter
Copy link
Contributor Author

@swift-ci smoke test os x

…debugging.

This makes it a bit easier to diagnose unexpected boxing problems in the debugger, by allowing `po [value _swiftTypeName]` to work, instead of forcing users to know how to call `swift_getTypeName` from lldb themselves.
@jckarter jckarter force-pushed the swiftvalue-swifttypename-method branch from 8484f06 to f998c62 Compare August 15, 2016 20:54
@jckarter
Copy link
Contributor Author

@swift-ci smoke test os x

TwoWordPair<const char *, uintptr_t> typeName
= swift_getTypeName(getSwiftValueTypeMetadata(self), true);

return [NSString stringWithUTF8String: typeName.first];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style nitpick: Objective-C does not have spaces after selector colons.

@jckarter
Copy link
Contributor Author

@swift-ci Please smoke test OS X

@jckarter jckarter merged commit 53e0d78 into swiftlang:master Aug 15, 2016
@jckarter jckarter deleted the swiftvalue-swifttypename-method branch August 15, 2016 23:33
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.

2 participants