Skip to content

[lldb] Implement TypeSystemSwiftTypeRef::IsTypedefType and TypeSystemSwiftTypeRef::GetTypedefedType #2936

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

augusto2112
Copy link

@adrian-prantl since we need debug info to resolve a typedef, is it possible to unit test TypeSystemSwiftTypeRef::GetTypedefedType?

rdar://68171433
rdar://68171443

@augusto2112
Copy link
Author

@swift-ci test

@augusto2112 augusto2112 force-pushed the ts-swift-typeref-typealias branch from f42965e to bc24cef Compare May 10, 2021 12:32
@augusto2112
Copy link
Author

@swift-ci test

if (!node || node->getKind() != Node::Kind::TypeAlias)
return {};
auto pair = ResolveTypeAlias(m_swift_ast_context, dem, node);
if (NodePointer resolved = std::get<swift::Demangle::NodePointer>(pair)) {

Choose a reason for hiding this comment

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

since this function has using namespace swift::Demangle, you don't need the fully qualified <swift::Demangle::NodePointer>, it could be reduced to <NodePointer>. Feel free to merge, not worth another round of testing to change just this.

@augusto2112 augusto2112 merged commit 025ff07 into swiftlang:swift/release/5.5 May 10, 2021
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