Commit Graph

2 Commits

Author SHA1 Message Date
Egor Zhdan
80cd6b0795 [cxx-interop] Remove redundant [extern_c] in tests
`[extern_c]` module attribute has no effect in these tests.
2024-10-04 16:50:21 +01:00
Puyan Lotfi
d2051be853 [cxx-interop] Pass clangSema.TUScope when calling LookupName for availability
In C++-Interop mode some of the Foundation @availables were not getting
their "renamed:" attributes filled in and this was because of the
LookupName issue as we have seen before where LookupName bails in C++
mode due to a nullptr scope resulting in something not getting imported
completely.

This patch merely passes a TUscope to avert this.

I believe ignoring the existing enum issues this should bring
Foundation with C++-Interop to parity with ObjC-Interop.
2022-05-16 14:06:07 -07:00