mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[interop][SwiftToCxx] print availability attributes for Swift decls in C++
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user