Skip to content

[cxx-interop] [nfc] Make ClangTypeConverter.h a public header. #33054

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

Closed

Conversation

zoecarver
Copy link
Contributor

This way it can be used all over the code base.

Refs #33053.

This way it can be used all over the code base.
@zoecarver zoecarver added the c++ interop Feature: Interoperability with C++ label Jul 22, 2020
@zoecarver zoecarver requested review from gribozavr and hlopko July 22, 2020 19:35
@CodaFi
Copy link
Contributor

CodaFi commented Jul 22, 2020

Please don't widen the scope of this header - there's already a really bad layering violation because the ASTContext needs access to some tables in ClangImporter. What dependency are you trying to get at here?

@zoecarver
Copy link
Contributor Author

@CodaFi In #33053 it's needed in both SILGen and IRGen.

@CodaFi
Copy link
Contributor

CodaFi commented Jul 22, 2020

That's unfortunate. We should aim to not have this dependency leak even further into the compiler. The Clang Importer is intended to map imported declarations to Swift code. If we need to carry along additional information from Clang, we need to use the attached Clang node pointers to do so.

@zoecarver zoecarver closed this Aug 19, 2020
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.

2 participants