Skip to content

[PrintAsObjC] Handle the importer's compatibility typealiases. #10042

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

jrose-apple
Copy link
Contributor

These are TypeAliasDecls whose Clang nodes are not TypedefNameDecls. This worked all right for classes, but dropped the tag keyword (e.g. struct) for tag decls with names of their own, and didn't print any name at all for C types that used the typedef-for-anonymous-tag pattern.

rdar://problem/32514335

These are TypeAliasDecls whose Clang nodes are not TypedefNameDecls.
This worked all right for classes, but dropped the tag keyword
(e.g. 'struct') for tag decls with names of their own, and didn't
print any name at all for C types that used the
typedef-for-anonymous-tag pattern.

rdar://problem/32514335
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

Copy link
Member

@milseman milseman left a comment

Choose a reason for hiding this comment

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

LGTM.

@jrose-apple jrose-apple merged commit eb9f047 into swiftlang:master Jun 1, 2017
@jrose-apple jrose-apple deleted the anonymous-structs-causing-problems-once-again branch June 1, 2017 22:28
jrose-apple added a commit to jrose-apple/swift that referenced this pull request Jun 1, 2017
…lang#10042)

These are TypeAliasDecls whose Clang nodes are not TypedefNameDecls.
This worked all right for classes, but dropped the tag keyword
(e.g. 'struct') for tag decls with names of their own, and didn't
print any name at all for C types that used the
typedef-for-anonymous-tag pattern.

rdar://problem/32514335
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