Skip to content

[cxx-interop] Test for apinotes fix in llvm-project. #41827

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 17, 2022

Conversation

plotfi
Copy link
Contributor

@plotfi plotfi commented Mar 15, 2022

This is the test that goes with swiftlang/llvm-project#4074

In the PR to apple/llvm-project we were bailing on DeclContexts that
were not isFileContext == true. This is problematic because with
C++-Interop enabled we can end up with a DeclContext that is an extern
"C". This test makes sure that the APINote is applied and that the code
from the 4074 PR no longer bails out.

Note: The llvm-project change is in apple/llvm-project rather than llvm/llvm-project because the file clang/lib/Sema/SemaAPINotes.cpp has not been upstreamed to llvm.org yet.

@plotfi
Copy link
Contributor Author

plotfi commented Mar 15, 2022

@hyp @zoecarver @drodriguez @bulbazord

This is my end to end swift test to go with swiftlang/llvm-project#4074

I still want to get the clang-only lit test on the llvm-project side working, but if we want to land what we have here for now that is fine too.

Copy link
Contributor

@zoecarver zoecarver left a comment

Choose a reason for hiding this comment

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

Thanks, Puyan.

@drodriguez
Copy link
Contributor

swiftlang/llvm-project#4074

@swift-ci please smoke test

This is the test that goes with swiftlang/llvm-project#4074

In the PR to apple/llvm-project we were bailing on DeclContexts that
were not isFileContext == true. This is problematic because with
C++-Interop enabled we can end up with a DeclContext that is an extern
"C". This test makes sure that the APINote is applied and that the code
from the 4074 PR no longer bails out.
@bulbazord
Copy link
Contributor

swiftlang/llvm-project#4074

@swift-ci please smoke test

@bulbazord
Copy link
Contributor

swiftlang/llvm-project#4074

@swift-ci please smoke test Linux Platform

@zoecarver
Copy link
Contributor

Want to test again or just merge it?

@zoecarver zoecarver merged commit 78f6baf into swiftlang:main Mar 17, 2022
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.

4 participants