File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed
include/swift/ClangImporter Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -716,9 +716,6 @@ bool isCxxConstReferenceType(const clang::Type *type);
716716// / Determine whether this typedef is a CF type.
717717bool isCFTypeDecl (const clang::TypedefNameDecl *Decl);
718718
719- // / Determine whether type is a c++ foreign reference type.
720- bool isForeignReferenceTypeWithoutImmortalAttrs (const clang::QualType type);
721-
722719// / Determine the imported CF type for the given typedef-name, or the empty
723720// / string if this is not an imported CF type name.
724721llvm::StringRef getCFTypeName (const clang::TypedefNameDecl *decl);
Original file line number Diff line number Diff line change @@ -7798,20 +7798,6 @@ static bool hasImportAsRefAttr(const clang::RecordDecl *decl) {
77987798 });
77997799}
78007800
7801- // Is this a pointer to a foreign reference type.
7802- bool importer::isForeignReferenceTypeWithoutImmortalAttrs (const clang::QualType type) {
7803- if (!type->isPointerType ())
7804- return false ;
7805-
7806- auto pointeeType =
7807- dyn_cast<clang::RecordType>(type->getPointeeType ().getCanonicalType ());
7808- if (pointeeType == nullptr )
7809- return false ;
7810-
7811- return hasImportAsRefAttr (pointeeType->getDecl ()) &&
7812- !hasImmortalAttrs (pointeeType->getDecl ());
7813- }
7814-
78157801static bool hasDiamondInheritanceRefType (const clang::CXXRecordDecl *decl) {
78167802 if (!decl->hasDefinition () || decl->isDependentType ())
78177803 return false ;
You can’t perform that action at this time.
0 commit comments