Skip to content

[ClangImporter] Record C declarations found in @interfaces. #1449

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
Mar 14, 2016

Conversation

jrose-apple
Copy link
Contributor

(including both classes and categories, and also @protocol declarations)

This is a hack in that we use two different mechanisms for importing
bridging header decls now: the manual output of ParseTopLevelDecl, and
the callbacks of a clang::ASTConsumer. We should probably unify these,
but that's a bigger change that isn't as obviously safe.

Also note that we probably aren't getting this right for things included
with -include, which we already don't have a good model for.

This adds test cases for both the module and bridging header cases,
although the former worked correctly already.

rdar://problem/24806068

(including both classes and categories, and also @protocol declarations)

This is a hack in that we use two different mechanisms for importing
bridging header decls now: the manual output of ParseTopLevelDecl, and
the callbacks of a clang::ASTConsumer. We should probably unify these,
but that's a bigger change that isn't as obviously safe.

Also note that we probably aren't getting this right for things included
with -include, which we already don't have a good model for.

This adds test cases for both the module and bridging header cases,
although the former worked correctly already.

rdar://problem/24806068
@tkremenek
Copy link
Member

@swift-ci please test

@tkremenek tkremenek assigned jrose-apple and unassigned DougGregor Mar 12, 2016
DougGregor added a commit that referenced this pull request Mar 14, 2016
[ClangImporter] Record C declarations found in @interfaces.
@DougGregor DougGregor merged commit c7dfed7 into swiftlang:master Mar 14, 2016
jrose-apple pushed a commit to jrose-apple/swift that referenced this pull request Mar 30, 2016
…terface

[ClangImporter] Record C declarations found in @interfaces.
(cherry picked from commit c7dfed7)
@jrose-apple jrose-apple deleted the c-decls-in-objc-interface branch April 21, 2016 22:34
DougGregor added a commit to DougGregor/swift that referenced this pull request Apr 29, 2016
…terface

[ClangImporter] Record C declarations found in @interfaces.
(cherry picked from commit c7dfed7)
MaxDesiatov pushed a commit that referenced this pull request Oct 19, 2020
[pull] swiftwasm from master
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