Skip to content

[cxx-interop] Print decls in the __ObjC module. #39431

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
Oct 8, 2021

Conversation

zoecarver
Copy link
Contributor

This is one change from #38675.

@zoecarver zoecarver added the c++ interop Feature: Interoperability with C++ label Sep 23, 2021
@zoecarver
Copy link
Contributor Author

@swift-ci please smoke test.

// RUN: %target-swift-ide-test -print-module -module-to-print=Submodules.SubmoduleA -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s -check-prefix=CHECK-A
// RUN: %target-swift-ide-test -print-module -module-to-print=Submodules.SubmoduleB -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s -check-prefix=CHECK-B
// RUN: %target-swift-ide-test -print-module -module-to-print=Submodules.SubmoduleA -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s
// RUN: %target-swift-ide-test -print-module -module-to-print=Submodules.SubmoduleB -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I need to investigate this change. I'm not sure it's what we want. I think this was one of @egorzhdan's comments on the other PR.

@zoecarver
Copy link
Contributor Author

I'm going to go ahead and merge this PR. I think it's not the behavior that we want, but once we have lazy type loading, we can add it back by only printing the specific namespace decl we are given and not all the redecls-decls. Right now we don't have a way to implement this because all members (from all redecls) are eagerly added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant