Commit Graph

3 Commits

Author SHA1 Message Date
zoecarver
839839f924 [cxx-interop] Rename enable-cxx-interop -> enable-experimental-cxx-interop.
Also removes the driver flag, this will now also always be guarded on `-Xfrontend`.
2022-04-07 19:15:25 -07:00
Puyan Lotfi
a052979162 [c++-interop] APINotes test for ObjCMethods
This is swift test to go with https://github.com/apple/llvm-project/pull/4118

The test is verifying that a ObjCMethod that is annotated by an APINote
is in fact getting the APINote applied. These types of APINotes are
heavily used by UIKit for instance in didMoveToParentViewController in
UIViewController.
2022-03-23 23:57:34 -04:00
Puyan Lotfi
bb432e80b2 [cxx-interop] Test for apinotes fix in llvm-project.
This is the test that goes with https://github.com/apple/llvm-project/pull/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.
2022-03-16 14:35:46 -04:00