@@ -1171,7 +1171,8 @@ namespace {
11711171 auto *enumDecl = Impl.createDeclWithClangNode <EnumDecl>(
11721172 decl, AccessLevel::Public, Impl.importSourceLoc (decl->getBeginLoc ()),
11731173 importedName.getBaseIdentifier (Impl.SwiftContext ),
1174- Impl.importSourceLoc (decl->getLocation ()), std::nullopt , nullptr , dc);
1174+ Impl.importSourceLoc (decl->getLocation ()), ArrayRef<InheritedEntry>(),
1175+ nullptr , dc);
11751176 // TODO: we only have this for the sid effect of calling
11761177 // "FirstDeclAndLazyMembers.setInt(true)".
11771178 // This should never actually try to use Impl as the member loader,
@@ -1595,7 +1596,8 @@ namespace {
15951596 auto access = importer::convertClangAccess (decl->getAccess ());
15961597 auto Loc = Impl.importSourceLoc (decl->getLocation ());
15971598 auto structDecl = Impl.createDeclWithClangNode <StructDecl>(
1598- decl, access, Loc, name, Loc, std::nullopt , nullptr , dc);
1599+ decl, access, Loc, name, Loc, ArrayRef<InheritedEntry>(), nullptr ,
1600+ dc);
15991601
16001602 auto options = getDefaultMakeStructRawValuedOptions ();
16011603 options |= MakeStructRawValuedFlags::MakeUnlabeledValueInit;
@@ -1649,7 +1651,7 @@ namespace {
16491651 " NSError enums shouldn't be defined as non-public C++ members" );
16501652 // Create the wrapper struct.
16511653 errorWrapper =
1652- new (C) StructDecl (loc, name, loc, std:: nullopt , nullptr , dc);
1654+ new (C) StructDecl (loc, name, loc, /* Inherited */ {} , nullptr , dc);
16531655 SourceLoc end = Impl.importSourceLoc (decl->getEndLoc ());
16541656 errorWrapper->setBraces (SourceRange (loc, end));
16551657 errorWrapper->setAccess (AccessLevel::Public);
@@ -1719,8 +1721,8 @@ namespace {
17191721 // Create the enumeration.
17201722 auto enumDecl = Impl.createDeclWithClangNode <EnumDecl>(
17211723 decl, importer::convertClangAccess (decl->getAccess ()), loc,
1722- enumName, Impl.importSourceLoc (decl->getLocation ()), std:: nullopt ,
1723- nullptr , enumDC);
1724+ enumName, Impl.importSourceLoc (decl->getLocation ()),
1725+ ArrayRef<InheritedEntry>(), nullptr , enumDC);
17241726 enumDecl->setHasFixedRawValues ();
17251727
17261728 // Annotate as 'frozen' if appropriate.
@@ -2223,7 +2225,7 @@ namespace {
22232225 else
22242226 result = Impl.createDeclWithClangNode <StructDecl>(
22252227 decl, importer::convertClangAccess (decl->getAccess ()), loc, name,
2226- loc, std:: nullopt , nullptr , dc);
2228+ loc, ArrayRef<InheritedEntry>() , nullptr , dc);
22272229 Impl.ImportedDecls [{decl->getCanonicalDecl (), getVersion ()}] = result;
22282230
22292231 if (recordHasMoveOnlySemantics (decl)) {
@@ -4789,7 +4791,7 @@ namespace {
47894791
47904792 auto structDecl = Impl.createDeclWithClangNode <StructDecl>(
47914793 decl, importer::convertClangAccess (decl->getAccess ()), loc, name, loc,
4792- std:: nullopt , genericParamList, dc);
4794+ ArrayRef<InheritedEntry>() , genericParamList, dc);
47934795
47944796 auto attr = AvailableAttr::createUniversallyUnavailable (
47954797 Impl.SwiftContext , " Un-specialized class templates are not currently "
@@ -5801,7 +5803,8 @@ namespace {
58015803 /* allowForwardDeclaration=*/ true ),
58025804 Impl.importSourceLoc (decl->getBeginLoc ()),
58035805 Impl.importSourceLoc (decl->getLocation ()), name,
5804- ArrayRef<PrimaryAssociatedTypeName>(), std::nullopt ,
5806+ ArrayRef<PrimaryAssociatedTypeName>(),
5807+ ArrayRef<InheritedEntry>(),
58055808 /* TrailingWhere=*/ nullptr );
58065809
58075810 Impl.ImportedDecls [{decl->getCanonicalDecl (), getVersion ()}] = result;
@@ -5841,7 +5844,7 @@ namespace {
58415844 decl, AccessLevel::Public, dc,
58425845 Impl.importSourceLoc (decl->getBeginLoc ()),
58435846 Impl.importSourceLoc (decl->getLocation ()), name,
5844- ArrayRef<PrimaryAssociatedTypeName>(), std:: nullopt ,
5847+ ArrayRef<PrimaryAssociatedTypeName>(), ArrayRef<InheritedEntry>() ,
58455848 /* TrailingWhere=*/ nullptr );
58465849
58475850 addObjCAttribute (result, Impl.importIdentifier (decl->getIdentifier ()));
@@ -5884,7 +5887,7 @@ namespace {
58845887
58855888 auto result = Impl.createDeclWithClangNode <ClassDecl>(
58865889 decl, AccessLevel::Public, SourceLoc (), name, SourceLoc (),
5887- std:: nullopt , nullptr , dc,
5890+ ArrayRef<InheritedEntry>() , nullptr , dc,
58885891 /* isActor*/ false );
58895892 if (cacheResult)
58905893 Impl.ImportedDecls [{decl->getCanonicalDecl (), getVersion ()}] = result;
@@ -5998,7 +6001,8 @@ namespace {
59986001 // Create the class declaration and record it.
59996002 auto result = Impl.createDeclWithClangNode <ClassDecl>(
60006003 decl, access, Impl.importSourceLoc (decl->getBeginLoc ()), name,
6001- Impl.importSourceLoc (decl->getLocation ()), std::nullopt , nullptr , dc,
6004+ Impl.importSourceLoc (decl->getLocation ()), ArrayRef<InheritedEntry>(),
6005+ nullptr , dc,
60026006 /* isActor*/ false );
60036007
60046008 // Import generic arguments, if any.
@@ -6472,7 +6476,7 @@ SwiftDeclConverter::importCFClassType(const clang::TypedefNameDecl *decl,
64726476
64736477 auto theClass = Impl.createDeclWithClangNode <ClassDecl>(
64746478 decl, AccessLevel::Public, SourceLoc (), className, SourceLoc (),
6475- std:: nullopt , nullptr , dc, /* isActor*/ false );
6479+ ArrayRef<InheritedEntry>() , nullptr , dc, /* isActor*/ false );
64766480 theClass->setSuperclass (superclass);
64776481 theClass->setAddedImplicitInitializers (); // suppress all initializers
64786482 theClass->setHasMissingVTableEntries (false );
@@ -6638,7 +6642,7 @@ SwiftDeclConverter::importSwiftNewtype(const clang::TypedefNameDecl *decl,
66386642
66396643 auto structDecl = Impl.createDeclWithClangNode <StructDecl>(
66406644 decl, importer::convertClangAccess (decl->getAccess ()), Loc, name, Loc,
6641- std:: nullopt , nullptr , dc);
6645+ ArrayRef<InheritedEntry>() , nullptr , dc);
66426646
66436647 // Import the type of the underlying storage
66446648 ImportDiagnosticAdder addImportDiag (Impl, decl, decl->getLocation ());
@@ -6946,7 +6950,7 @@ SwiftDeclConverter::importAsOptionSetType(DeclContext *dc, Identifier name,
69466950 // Create a struct with the underlying type as a field.
69476951 auto structDecl = Impl.createDeclWithClangNode <StructDecl>(
69486952 decl, importer::convertClangAccess (decl->getAccess ()), Loc, name, Loc,
6949- std:: nullopt , nullptr , dc);
6953+ ArrayRef<InheritedEntry>() , nullptr , dc);
69506954 Impl.ImportedDecls [{decl->getCanonicalDecl (), getVersion ()}] = structDecl;
69516955
69526956 // Compute the underlying type.
0 commit comments