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);
716
716
// / Determine whether this typedef is a CF type.
717
717
bool isCFTypeDecl (const clang::TypedefNameDecl *Decl);
718
718
719
- // / Determine whether type is a c++ foreign reference type.
720
- bool isForeignReferenceTypeWithoutImmortalAttrs (const clang::QualType type);
721
-
722
719
// / Determine the imported CF type for the given typedef-name, or the empty
723
720
// / string if this is not an imported CF type name.
724
721
llvm::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) {
7798
7798
});
7799
7799
}
7800
7800
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
-
7815
7801
static bool hasDiamondInheritanceRefType (const clang::CXXRecordDecl *decl) {
7816
7802
if (!decl->hasDefinition () || decl->isDependentType ())
7817
7803
return false ;
You can’t perform that action at this time.
0 commit comments