[interop][SwiftToCxx] print availability attributes for Swift decls in C++

This commit is contained in:
Alex Lorenz
2023-02-27 10:42:21 -08:00
parent a0e1810f62
commit f8c3895f32
14 changed files with 363 additions and 138 deletions

View File

@@ -289,12 +289,14 @@ public:
return;
auto it = seenClangTypes.insert(clangType.getTypePtr());
if (it.second)
ClangValueTypePrinter::printClangTypeSwiftGenericTraits(os, typeDecl, &M);
ClangValueTypePrinter::printClangTypeSwiftGenericTraits(os, typeDecl, &M,
printer);
}
void forwardDeclareCxxValueTypeIfNeeded(const NominalTypeDecl *NTD) {
forwardDeclare(NTD,
[&]() { ClangValueTypePrinter::forwardDeclType(os, NTD); });
forwardDeclare(NTD, [&]() {
ClangValueTypePrinter::forwardDeclType(os, NTD, printer);
});
}
void forwardDeclareType(const TypeDecl *TD) {