Lines Matching full:auto

58   auto GetModified =  in applyNullability()
69 if (auto Function = dyn_cast<FunctionDecl>(D)) { in applyNullability()
70 if (auto Modified = in applyNullability()
80 } else if (auto Method = dyn_cast<ObjCMethodDecl>(D)) { in applyNullability()
81 if (auto Modified = GetModified(D, Method->getReturnType(), Nullability)) { in applyNullability()
89 } else if (auto Value = dyn_cast<ValueDecl>(D)) { in applyNullability()
90 if (auto Modified = GetModified(D, Value->getType(), Nullability)) { in applyNullability()
94 if (auto Parm = dyn_cast<ParmVarDecl>(D)) { in applyNullability()
100 } else if (auto Property = dyn_cast<ObjCPropertyDecl>(D)) { in applyNullability()
101 if (auto Modified = GetModified(D, Property->getType(), Nullability)) { in applyNullability()
147 auto Existing = GetExistingAttr(D); in handleAPINotedAttribute()
151 auto *Versioned = SwiftVersionedAdditionAttr::CreateImplicit( in handleAPINotedAttribute()
160 if (auto Attr = CreateAttr()) in handleAPINotedAttribute()
167 if (auto Attr = CreateAttr()) { in handleAPINotedAttribute()
168 auto *Versioned = SwiftVersionedAdditionAttr::CreateImplicit( in handleAPINotedAttribute()
177 auto *Versioned = SwiftVersionedRemovalAttr::CreateImplicit( in handleAPINotedAttribute()
279 if (const auto *AA = dyn_cast<AvailabilityAttr>(next)) in ProcessAPINotes()
280 if (const auto *II = AA->getPlatform()) in ProcessAPINotes()
288 if (auto SwiftPrivate = Info.isSwiftPrivate()) { in ProcessAPINotes()
302 auto &C = S.getASTContext(); in ProcessAPINotes()
323 if (auto SwiftBridge = Info.getSwiftBridge()) { in ProcessAPINotes()
333 if (auto NSErrorDomain = Info.getNSErrorDomain()) { in ProcessAPINotes()
369 auto ParsedType = S.ParseTypeFromStringCallback( in ProcessAPINotes()
373 auto TypeInfo = in ProcessAPINotes()
376 if (auto Var = dyn_cast<VarDecl>(D)) { in ProcessAPINotes()
389 } else if (auto Property = dyn_cast<ObjCPropertyDecl>(D)) { in ProcessAPINotes()
400 if (auto Nullability = Info.getNullability()) in ProcessAPINotes()
413 if (auto NoEscape = Info.isNoEscape()) in ProcessAPINotes()
444 if (auto AsAccessors = Info.getSwiftImportAsAccessors()) { in ProcessAPINotes()
499 auto ParsedType = S.ParseTypeFromStringCallback( in ProcessAPINotes()
507 auto ResultTypeInfo = in ProcessAPINotes()
523 if (const auto *fnProtoType = FD->getType()->getAs<FunctionProtoType>()) { in ProcessAPINotes()
528 for (auto Param : FD->parameters()) in ProcessAPINotes()
534 const auto *FnNoProtoType = FD->getType()->castAs<FunctionNoProtoType>(); in ProcessAPINotes()
598 if (auto ImportAs = Info.SwiftImportAs) in ProcessAPINotes()
601 if (auto RetainOp = Info.SwiftRetainOp) in ProcessAPINotes()
604 if (auto ReleaseOp = Info.SwiftReleaseOp) in ProcessAPINotes()
608 if (auto Copyable = Info.isSwiftCopyable()) { in ProcessAPINotes()
613 if (auto Extensibility = Info.EnumExtensibility) { in ProcessAPINotes()
634 if (auto FlagEnum = Info.isFlagEnum()) { in ProcessAPINotes()
652 if (auto SwiftWrapper = Info.SwiftWrapper) { in ProcessAPINotes()
695 if (auto AsNonGeneric = Info.getSwiftImportAsNonGeneric()) { in ProcessAPINotes()
703 if (auto ObjcMembers = Info.getSwiftObjCMembers()) { in ProcessAPINotes()
743 for (const auto &VersionAndInfoSlice : Info) { in maybeAttachUnversionedSwiftName()
775 auto Active = (i == Selected) ? IsActive_t::Active : IsActive_t::Inactive; in ProcessVersionedAPINotes()
776 auto Replacement = IsSubstitution_t::Original; in ProcessVersionedAPINotes()
792 auto GetNamespaceContext = in ProcessAPINotes()
794 if (auto NamespaceContext = dyn_cast<NamespaceDecl>(DC)) { in ProcessAPINotes()
795 for (auto Reader : in ProcessAPINotes()
800 for (auto CurrentNamespace = NamespaceContext; CurrentNamespace; in ProcessAPINotes()
809 auto CurrentNamespace = NamespaceStack.top(); in ProcessAPINotes()
832 if (auto VD = dyn_cast<VarDecl>(D)) { in ProcessAPINotes()
833 for (auto Reader : APINotes.findAPINotes(D->getLocation())) { in ProcessAPINotes()
834 auto Info = in ProcessAPINotes()
843 if (auto FD = dyn_cast<FunctionDecl>(D)) { in ProcessAPINotes()
845 for (auto Reader : APINotes.findAPINotes(D->getLocation())) { in ProcessAPINotes()
846 auto Info = in ProcessAPINotes()
856 if (auto Class = dyn_cast<ObjCInterfaceDecl>(D)) { in ProcessAPINotes()
857 for (auto Reader : APINotes.findAPINotes(D->getLocation())) { in ProcessAPINotes()
858 auto Info = Reader->lookupObjCClassInfo(Class->getName()); in ProcessAPINotes()
866 if (auto Protocol = dyn_cast<ObjCProtocolDecl>(D)) { in ProcessAPINotes()
867 for (auto Reader : APINotes.findAPINotes(D->getLocation())) { in ProcessAPINotes()
868 auto Info = Reader->lookupObjCProtocolInfo(Protocol->getName()); in ProcessAPINotes()
876 if (auto Tag = dyn_cast<TagDecl>(D)) { in ProcessAPINotes()
901 for (auto Reader : APINotes.findAPINotes(D->getLocation())) { in ProcessAPINotes()
902 auto Info = Reader->lookupTag(LookupName, APINotesContext); in ProcessAPINotes()
910 if (auto Typedef = dyn_cast<TypedefNameDecl>(D)) { in ProcessAPINotes()
911 for (auto Reader : APINotes.findAPINotes(D->getLocation())) { in ProcessAPINotes()
912 auto Info = Reader->lookupTypedef(Typedef->getName(), APINotesContext); in ProcessAPINotes()
923 if (auto EnumConstant = dyn_cast<EnumConstantDecl>(D)) { in ProcessAPINotes()
924 for (auto Reader : APINotes.findAPINotes(D->getLocation())) { in ProcessAPINotes()
925 auto Info = Reader->lookupEnumConstant(EnumConstant->getName()); in ProcessAPINotes()
933 if (auto ObjCContainer = dyn_cast<ObjCContainerDecl>(D->getDeclContext())) { in ProcessAPINotes()
935 auto GetContext = [&](api_notes::APINotesReader *Reader) in ProcessAPINotes()
937 if (auto Protocol = dyn_cast<ObjCProtocolDecl>(ObjCContainer)) { in ProcessAPINotes()
938 if (auto Found = Reader->lookupObjCProtocolID(Protocol->getName())) in ProcessAPINotes()
944 if (auto Impl = dyn_cast<ObjCCategoryImplDecl>(ObjCContainer)) { in ProcessAPINotes()
945 if (auto Cat = Impl->getCategoryDecl()) in ProcessAPINotes()
951 if (auto Category = dyn_cast<ObjCCategoryDecl>(ObjCContainer)) { in ProcessAPINotes()
958 if (auto Impl = dyn_cast<ObjCImplDecl>(ObjCContainer)) { in ProcessAPINotes()
965 if (auto Class = dyn_cast<ObjCInterfaceDecl>(ObjCContainer)) { in ProcessAPINotes()
966 if (auto Found = Reader->lookupObjCClassID(Class->getName())) in ProcessAPINotes()
976 if (auto Method = dyn_cast<ObjCMethodDecl>(D)) { in ProcessAPINotes()
977 for (auto Reader : APINotes.findAPINotes(D->getLocation())) { in ProcessAPINotes()
978 if (auto Context = GetContext(Reader)) { in ProcessAPINotes()
993 auto Info = Reader->lookupObjCMethod(*Context, SelectorRef, in ProcessAPINotes()
1001 if (auto Property = dyn_cast<ObjCPropertyDecl>(D)) { in ProcessAPINotes()
1002 for (auto Reader : APINotes.findAPINotes(D->getLocation())) { in ProcessAPINotes()
1003 if (auto Context = GetContext(Reader)) { in ProcessAPINotes()
1007 auto Info = Reader->lookupObjCProperty(*Context, Property->getName(), in ProcessAPINotes()
1017 if (auto CXXRecord = dyn_cast<CXXRecordDecl>(D->getDeclContext())) { in ProcessAPINotes()
1018 auto GetRecordContext = [&](api_notes::APINotesReader *Reader) in ProcessAPINotes()
1020 auto ParentContext = GetNamespaceContext(CXXRecord->getDeclContext()); in ProcessAPINotes()
1021 if (auto Found = Reader->lookupTagID(CXXRecord->getName(), ParentContext)) in ProcessAPINotes()
1027 if (auto CXXMethod = dyn_cast<CXXMethodDecl>(D)) { in ProcessAPINotes()
1028 for (auto Reader : APINotes.findAPINotes(D->getLocation())) { in ProcessAPINotes()
1029 if (auto Context = GetRecordContext(Reader)) { in ProcessAPINotes()
1030 auto Info = Reader->lookupCXXMethod(*Context, CXXMethod->getName()); in ProcessAPINotes()