Lines Matching refs:Reader
38 ASTReader &Reader; member in clang::ASTDeclReader
55 return Reader.ReadSourceLocation(F, R, I); in ReadSourceLocation()
59 return Reader.ReadSourceRange(F, R, I); in ReadSourceRange()
63 return Reader.GetTypeSourceInfo(F, R, I); in GetTypeSourceInfo()
67 return Reader.ReadDeclID(F, R, I); in ReadDeclID()
76 return Reader.ReadDecl(F, R, I); in ReadDecl()
81 return Reader.ReadDeclAs<T>(F, R, I); in ReadDeclAs()
86 Reader.ReadQualifierInfo(F, Info, R, I); in ReadQualifierInfo()
91 Reader.ReadDeclarationNameLoc(F, DNLoc, Name, R, I); in ReadDeclarationNameLoc()
96 Reader.ReadDeclarationNameInfo(F, NameInfo, R, I); in ReadDeclarationNameInfo()
104 return Reader.getGlobalSubmoduleID(F, R[I++]); in readSubmoduleID()
108 return Reader.getSubmodule(readSubmoduleID(R, I)); in readModule()
117 static NamedDecl *getAnonymousDeclForMerging(ASTReader &Reader,
120 static void setAnonymousDeclForMerging(ASTReader &Reader, DeclContext *DC,
127 ASTReader &Reader; member in clang::ASTDeclReader::RedeclarableResult
136 RedeclarableResult(ASTReader &Reader, GlobalDeclID FirstID, in RedeclarableResult() argument
138 : Reader(Reader), FirstID(FirstID), MergeWith(MergeWith), in RedeclarableResult()
142 : Reader(Other.Reader), FirstID(Other.FirstID), in RedeclarableResult()
150 auto Canon = Reader.GetDecl(FirstID)->getCanonicalDecl(); in ~RedeclarableResult()
151 if (Reader.PendingDeclChainsKnown.insert(Canon).second) in ~RedeclarableResult()
152 Reader.PendingDeclChains.push_back(Canon); in ~RedeclarableResult()
170 ASTReader &Reader; member in clang::ASTDeclReader::FindExistingResult
181 FindExistingResult(ASTReader &Reader) in FindExistingResult() argument
182 : Reader(Reader), New(nullptr), Existing(nullptr), AddResult(false), in FindExistingResult()
185 FindExistingResult(ASTReader &Reader, NamedDecl *New, NamedDecl *Existing, in FindExistingResult() argument
188 : Reader(Reader), New(New), Existing(Existing), AddResult(true), in FindExistingResult()
193 : Reader(Other.Reader), New(Other.New), Existing(Other.Existing), in FindExistingResult()
212 static DeclContext *getPrimaryContextForMerging(ASTReader &Reader,
217 ASTDeclReader(ASTReader &Reader, ModuleFile &F, DeclID thisDeclID, in ASTDeclReader() argument
219 : Reader(Reader), F(F), ThisDeclID(thisDeclID), in ASTDeclReader()
230 static void attachPreviousDeclImpl(ASTReader &Reader,
233 static void attachPreviousDeclImpl(ASTReader &Reader, ...);
234 static void attachPreviousDecl(ASTReader &Reader, Decl *D, Decl *Previous,
392 TD->setTypeForDecl(Reader.GetType(TypeIDForTypeDecl).getTypePtrOrNull()); in Visit()
398 cast<NamedDecl>(Reader.GetDecl(NamedDeclForTagDecl)); in Visit()
401 ID->TypeForDecl = Reader.GetType(TypeIDForTypeDecl).getTypePtrOrNull(); in Visit()
412 Reader.ReadCXXCtorInitializersRef(F, Record, Idx); in Visit()
414 Reader.PendingBodies[FD] = GetCurrentCursorOffset(); in Visit()
431 Reader.addPendingDeclContextInfo(D, in VisitDecl()
434 D->setDeclContext(Reader.getContext().getTranslationUnitDecl()); in VisitDecl()
438 DeclContext *MergedSemaDC = Reader.MergedDeclContexts.lookup(SemaDC); in VisitDecl()
442 Reader.getContext()); in VisitDecl()
444 D->setLocation(Reader.ReadSourceLocation(F, RawLocation)); in VisitDecl()
448 Reader.ReadAttributes(F, Attrs, Record, Idx); in VisitDecl()
451 D->setAttrsImpl(Attrs, Reader.getContext()); in VisitDecl()
470 if (Module *Owner = Reader.getSubmodule(SubmoduleID)) { in VisitDecl()
477 Reader.HiddenNamesMap[Owner].HiddenDecls.push_back(D); in VisitDecl()
490 ND->setDeclName(Reader.ReadDeclarationName(F, Record, Idx)); in VisitNamedDecl()
498 TypeIDForTypeDecl = Reader.getGlobalTypeID(F, Record[Idx++]); in VisitTypeDecl()
507 QualType modedT = Reader.readType(F, Record, Idx); in VisitTypedefNameDecl()
545 TagDecl::ExtInfo *Info = new (Reader.getContext()) TagDecl::ExtInfo(); in VisitTagDecl()
552 TypedefNameForLinkage = Reader.GetIdentifierInfo(F, Record, Idx); in VisitTagDecl()
568 if (TypeSourceInfo *TI = Reader.GetTypeSourceInfo(F, Record, Idx)) in VisitEnumDecl()
571 ED->setIntegerType(Reader.readType(F, Record, Idx)); in VisitEnumDecl()
572 ED->setPromotionType(Reader.readType(F, Record, Idx)); in VisitEnumDecl()
582 Reader.getContext().getLangOpts().Modules && in VisitEnumDecl()
583 Reader.getContext().getLangOpts().CPlusPlus) { in VisitEnumDecl()
584 if (EnumDecl *&OldDef = Reader.EnumDefinitions[ED->getCanonicalDecl()]) { in VisitEnumDecl()
585 Reader.MergedDeclContexts.insert(std::make_pair(ED, OldDef)); in VisitEnumDecl()
595 ED->setInstantiationOfMemberEnum(Reader.getContext(), InstED, TSK); in VisitEnumDecl()
612 VD->setType(Reader.readType(F, Record, Idx)); in VisitValueDecl()
618 ECD->setInitExpr(Reader.ReadExpr(F)); in VisitEnumConstantDecl()
619 ECD->setInitVal(Reader.ReadAPSInt(Record, Idx)); in VisitEnumConstantDecl()
628 = new (Reader.getContext()) DeclaratorDecl::ExtInfo(); in VisitDeclaratorDecl()
675 FD->setInstantiationOfMemberFunction(Reader.getContext(), InstFD, TSK); in VisitFunctionDecl()
687 Reader.ReadTemplateArgumentList(TemplArgs, F, Record, Idx); in VisitFunctionDecl()
698 Reader.ReadTemplateArgumentLoc(F, Record, Idx)); in VisitFunctionDecl()
706 ASTContext &C = Reader.getContext(); in VisitFunctionDecl()
738 assert(Reader.getContext().getLangOpts().Modules && in VisitFunctionDecl()
757 TemplArgs.addArgument(Reader.ReadTemplateArgumentLoc(F, Record, Idx)); in VisitFunctionDecl()
761 FD->setDependentTemplateSpecialization(Reader.getContext(), in VisitFunctionDecl()
775 FD->setParams(Reader.getContext(), Params); in VisitFunctionDecl()
783 Reader.PendingBodies[MD] = GetCurrentCursorOffset(); in VisitObjCMethodDecl()
798 Reader.getContext().setObjCMethodRedeclaration(MD, in VisitObjCMethodDecl()
804 MD->setReturnType(Reader.readType(F, Record, Idx)); in VisitObjCMethodDecl()
820 MD->setParamsAndSelLocs(Reader.getContext(), Params, SelLocs); in VisitObjCMethodDecl()
832 TypeIDForTypeDecl = Reader.getGlobalTypeID(F, Record[Idx++]); in VisitObjCInterfaceDecl()
863 Reader.getContext()); in VisitObjCInterfaceDecl()
872 Reader.getContext()); in VisitObjCInterfaceDecl()
878 Reader.PendingDefinitions.insert(ID); in VisitObjCInterfaceDecl()
881 Reader.ObjCClassesLoaded.push_back(ID); in VisitObjCInterfaceDecl()
919 Reader.getContext()); in VisitObjCProtocolDecl()
922 Reader.PendingDefinitions.insert(PD); in VisitObjCProtocolDecl()
941 Reader.CategoriesDeserialized.insert(CD); in VisitObjCCategoryDecl()
954 Reader.getContext()); in VisitObjCCategoryDecl()
975 D->setGetterName(Reader.ReadDeclarationName(F,Record, Idx).getObjCSelector()); in VisitObjCPropertyDecl()
976 D->setSetterName(Reader.ReadDeclarationName(F,Record, Idx).getObjCSelector()); in VisitObjCPropertyDecl()
989 D->setIdentifier(Reader.GetIdentifierInfo(F, Record, Idx)); in VisitObjCCategoryImplDecl()
1003 D->IvarInitializers = Reader.ReadCXXCtorInitializersRef(F, Record, Idx); in VisitObjCImplementationDecl()
1013 D->setGetterCXXConstructor(Reader.ReadExpr(F)); in VisitObjCPropertyImplDecl()
1014 D->setSetterCXXAssignment(Reader.ReadExpr(F)); in VisitObjCPropertyImplDecl()
1026 Reader.readType(F, Record, Idx).getAsOpaquePtr()); in VisitFieldDecl()
1028 FD->InitStorage.setPointer(Reader.ReadExpr(F)); in VisitFieldDecl()
1033 Reader.getContext().setInstantiatedFromUnnamedFieldDecl(FD, Tmpl); in VisitFieldDecl()
1040 PD->GetterId = Reader.GetIdentifierInfo(F, Record, Idx); in VisitMSPropertyDecl()
1041 PD->SetterId = Reader.GetIdentifierInfo(F, Record, Idx); in VisitMSPropertyDecl()
1049 FD->Chaining = new (Reader.getContext())NamedDecl*[FD->ChainingSize]; in VisitIndirectFieldDecl()
1078 VD->setInit(Reader.ReadExpr(F)); in VisitVarDeclImpl()
1104 Reader.getContext().setInstantiatedFromStaticDataMember(VD, Tmpl, TSK,POI); in VisitVarDeclImpl()
1133 PD->setUninstantiatedDefaultArg(Reader.ReadExpr(F)); in VisitParmVarDecl()
1141 AD->setAsmString(cast<StringLiteral>(Reader.ReadExpr(F))); in VisitFileScopeAsmDecl()
1147 BD->setBody(cast_or_null<CompoundStmt>(Reader.ReadStmt(F))); in VisitBlockDecl()
1169 Expr *copyExpr = ((flags & 4) ? Reader.ReadExpr(F) : nullptr); in VisitBlockDecl()
1173 BD->setCaptures(Reader.getContext(), captures.begin(), in VisitBlockDecl()
1229 NamespaceDecl *Anon = cast<NamespaceDecl>(Reader.GetDecl(AnonNamespace)); in VisitNamespaceDecl()
1240 D->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx); in VisitNamespaceAliasDecl()
1248 D->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx); in VisitUsingDecl()
1253 Reader.getContext().setInstantiatedFromUsingDecl(D, Pattern); in VisitUsingDecl()
1264 Reader.getContext().setInstantiatedFromUsingShadowDecl(D, Pattern); in VisitUsingShadowDecl()
1272 D->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx); in VisitUsingDirectiveDecl()
1280 D->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx); in VisitUnresolvedUsingValueDecl()
1289 D->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx); in VisitUnresolvedUsingTypenameDecl()
1337 Data.Bases = Reader.readCXXBaseSpecifiers(F, Record, Idx); in ReadCXXDefinitionData()
1340 Data.VBases = Reader.readCXXBaseSpecifiers(F, Record, Idx); in ReadCXXDefinitionData()
1342 Reader.ReadUnresolvedSet(F, Data.Conversions, Record, Idx); in ReadCXXDefinitionData()
1343 Reader.ReadUnresolvedSet(F, Data.VisibleConversions, Record, Idx); in ReadCXXDefinitionData()
1359 = (Capture*)Reader.Context.Allocate(sizeof(Capture)*Lambda.NumCaptures); in ReadCXXDefinitionData()
1395 Reader.MergedLookups[DD.Definition].push_back(MergeDD.Definition); in MergeDefinitionData()
1405 Reader.HiddenNamesMap[Reader.getSubmodule(SubmoduleID)] in MergeDefinitionData()
1411 auto PFDI = Reader.PendingFakeDefinitionData.find(&DD); in MergeDefinitionData()
1412 if (PFDI != Reader.PendingFakeDefinitionData.end() && in MergeDefinitionData()
1495 Reader.PendingOdrMergeFailures[DD.Definition].push_back(MergeDD.Definition); in MergeDefinitionData()
1500 ASTContext &C = Reader.getContext(); in ReadCXXRecordDefinition()
1519 Reader.MergedDeclContexts.insert( in ReadCXXRecordDefinition()
1535 Reader.PendingDefinitions.insert(D); in ReadCXXRecordDefinition()
1540 Reader.MergedDeclContexts.insert( in ReadCXXRecordDefinition()
1553 Reader.PendingDefinitions.insert(D); in ReadCXXRecordDefinition()
1561 ASTContext &C = Reader.getContext(); in VisitCXXRecordDeclImpl()
1629 Reader.getContext().addOverriddenMethod(D, MD->getCanonicalDecl()); in VisitCXXMethodDecl()
1685 D->getTPLists()[i] = Reader.ReadTemplateParameterList(F, Record, Idx); in VisitFriendDecl()
1697 D->Params[i] = Reader.ReadTemplateParameterList(F, Record, Idx); in VisitFriendTemplateDecl()
1709 NamedDecl *TemplatedDecl = cast_or_null<NamedDecl>(Reader.GetDecl(PatternID)); in VisitTemplateDecl()
1711 = Reader.ReadTemplateParameterList(F, Record, Idx); in VisitTemplateDecl()
1728 CanonD->Common = CanonD->newCommon(Reader.getContext()); in VisitRedeclarableTemplateDecl()
1729 Reader.PendingDefinitions.insert(CanonD); in VisitRedeclarableTemplateDecl()
1786 Reader.getContext(), CommonPtr->LazySpecializations, SpecIDs); in VisitClassTemplateDecl()
1794 Reader.Context.getInjectedClassNameType( in VisitClassTemplateDecl()
1814 Reader.getContext(), CommonPtr->LazySpecializations, SpecIDs); in VisitVarTemplateDecl()
1824 ASTContext &C = Reader.getContext(); in VisitClassTemplateSpecializationDeclImpl()
1830 Reader.ReadTemplateArgumentList(TemplArgs, F, Record, Idx); in VisitClassTemplateSpecializationDeclImpl()
1845 Reader.ReadTemplateArgumentList(TemplArgs, F, Record, Idx); in VisitClassTemplateSpecializationDeclImpl()
1874 Reader.PendingDefinitions.erase(D); in VisitClassTemplateSpecializationDeclImpl()
1875 Reader.MergedDeclContexts.insert( in VisitClassTemplateSpecializationDeclImpl()
1904 D->TemplateParams = Reader.ReadTemplateParameterList(F, Record, Idx); in VisitClassTemplatePartialSpecializationDecl()
1905 D->ArgsAsWritten = Reader.ReadASTTemplateArgumentListInfo(F, Record, Idx); in VisitClassTemplatePartialSpecializationDecl()
1932 Reader.getContext(), CommonPtr->LazySpecializations, SpecIDs); in VisitFunctionTemplateDecl()
1947 ASTContext &C = Reader.getContext(); in VisitVarTemplateSpecializationDeclImpl()
1953 Reader.ReadTemplateArgumentList(TemplArgs, F, Record, Idx); in VisitVarTemplateSpecializationDeclImpl()
1977 Reader.ReadTemplateArgumentList(TemplArgs, F, Record, Idx); in VisitVarTemplateSpecializationDeclImpl()
2009 D->TemplateParams = Reader.ReadTemplateParameterList(F, Record, Idx); in VisitVarTemplatePartialSpecializationDecl()
2010 D->ArgsAsWritten = Reader.ReadASTTemplateArgumentListInfo(F, Record, Idx); in VisitVarTemplatePartialSpecializationDecl()
2038 Data[2*I] = Reader.readType(F, Record, Idx).getAsOpaquePtr(); in VisitNonTypeTemplateParmDecl()
2045 Expr *DefArg = Reader.ReadExpr(F); in VisitNonTypeTemplateParmDecl()
2061 Data[I] = Reader.ReadTemplateParameterList(F, Record, Idx); in VisitTemplateTemplateParmDecl()
2064 TemplateArgumentLoc Arg = Reader.ReadTemplateArgumentLoc(F, Record, Idx); in VisitTemplateTemplateParmDecl()
2077 D->AssertExprAndFailed.setPointer(Reader.ReadExpr(F)); in VisitStaticAssertDecl()
2079 D->Message = cast<StringLiteral>(Reader.ReadExpr(F)); in VisitStaticAssertDecl()
2114 T *FirstDecl = cast_or_null<T>(Reader.GetDecl(FirstDeclID)); in VisitRedeclarable()
2125 Reader.RedeclsDeserialized.insert(static_cast<T *>(D)); in VisitRedeclarable()
2129 return RedeclarableResult(Reader, FirstDeclID, MergeWith, in VisitRedeclarable()
2142 if (!Reader.getContext().getLangOpts().Modules) in mergeRedeclarable()
2172 RedeclarableResult Result(Reader, DPattern->getCanonicalDecl()->getGlobalID(), in mergeTemplatePattern()
2183 Reader.PendingDefinitions.erase(DClass); in mergeTemplatePattern()
2184 Reader.MergedDeclContexts.insert( in mergeTemplatePattern()
2189 Reader.PendingDefinitions.insert(DClass); in mergeTemplatePattern()
2242 Reader.MergedDecls[ExistingCanon].push_back(Redecl.getFirstID()); in mergeRedeclarable()
2243 if (Reader.PendingDeclChainsKnown.insert(ExistingCanon).second) in mergeRedeclarable()
2244 Reader.PendingDeclChains.push_back(ExistingCanon); in mergeRedeclarable()
2256 if (!Reader.getContext().getLangOpts().Modules) in mergeMergeable()
2262 if (!Reader.getContext().getLangOpts().CPlusPlus) in mergeMergeable()
2267 Reader.Context.setPrimaryMergedDecl(static_cast<T*>(D), in mergeMergeable()
2277 Vars.push_back(Reader.ReadExpr(F)); in VisitOMPThreadPrivateDecl()
2585 DeclContext *ASTDeclReader::getPrimaryContextForMerging(ASTReader &Reader, in getPrimaryContextForMerging() argument
2601 DD = new (Reader.Context) struct CXXRecordDecl::DefinitionData(RD); in getPrimaryContextForMerging()
2607 Reader.PendingFakeDefinitionData.insert( in getPrimaryContextForMerging()
2631 Reader.ImportedTypedefNamesForLinkage.insert( in ~FindExistingResult()
2642 setAnonymousDeclForMerging(Reader, New->getLexicalDeclContext(), in ~FindExistingResult()
2644 } else if (DC->isTranslationUnit() && Reader.SemaObj && in ~FindExistingResult()
2645 !Reader.getContext().getLangOpts().CPlusPlus) { in ~FindExistingResult()
2646 if (Reader.SemaObj->IdResolver.tryAddTopLevelDecl(New, Name)) in ~FindExistingResult()
2647 Reader.PendingFakeLookupResults[Name.getAsIdentifierInfo()] in ~FindExistingResult()
2649 } else if (DeclContext *MergeDC = getPrimaryContextForMerging(Reader, DC)) { in ~FindExistingResult()
2676 NamedDecl *ASTDeclReader::getAnonymousDeclForMerging(ASTReader &Reader, in getAnonymousDeclForMerging() argument
2681 if (auto *Merged = Reader.MergedDeclContexts.lookup(DC)) in getAnonymousDeclForMerging()
2685 auto &Previous = Reader.AnonymousDeclarationsForMerging[DC]; in getAnonymousDeclForMerging()
2703 void ASTDeclReader::setAnonymousDeclForMerging(ASTReader &Reader, in setAnonymousDeclForMerging() argument
2706 if (auto *Merged = Reader.MergedDeclContexts.lookup(DC)) in setAnonymousDeclForMerging()
2709 auto &Previous = Reader.AnonymousDeclarationsForMerging[DC]; in setAnonymousDeclForMerging()
2723 FindExistingResult Result(Reader, D, /*Existing=*/nullptr, in findExisting()
2734 auto It = Reader.ImportedTypedefNamesForLinkage.find( in findExisting()
2736 if (It != Reader.ImportedTypedefNamesForLinkage.end()) in findExisting()
2738 return FindExistingResult(Reader, D, It->second, AnonymousDeclNumber, in findExisting()
2748 Reader, D->getLexicalDeclContext(), AnonymousDeclNumber)) in findExisting()
2750 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber, in findExisting()
2752 } else if (DC->isTranslationUnit() && Reader.SemaObj && in findExisting()
2753 !Reader.getContext().getLangOpts().CPlusPlus) { in findExisting()
2754 IdentifierResolver &IdResolver = Reader.SemaObj->IdResolver; in findExisting()
2784 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber, in findExisting()
2787 } else if (DeclContext *MergeDC = getPrimaryContextForMerging(Reader, DC)) { in findExisting()
2792 return FindExistingResult(Reader, D, Existing, AnonymousDeclNumber, in findExisting()
2797 return FindExistingResult(Reader); in findExisting()
2805 auto MergedDCIt = Reader.MergedDeclContexts.find(D->getLexicalDeclContext()); in findExisting()
2806 if (MergedDCIt != Reader.MergedDeclContexts.end() && in findExisting()
2808 Reader.PendingOdrMergeChecks.push_back(D); in findExisting()
2810 return FindExistingResult(Reader, D, /*Existing=*/nullptr, in findExisting()
2840 void ASTDeclReader::attachPreviousDeclImpl(ASTReader &Reader, in attachPreviousDeclImpl() argument
2848 void ASTDeclReader::attachPreviousDeclImpl(ASTReader &Reader, in attachPreviousDeclImpl() argument
2887 Reader.PendingExceptionSpecUpdates.insert( in attachPreviousDeclImpl()
2892 void ASTDeclReader::attachPreviousDeclImpl(ASTReader &Reader, ...) { in attachPreviousDeclImpl() argument
2896 void ASTDeclReader::attachPreviousDecl(ASTReader &Reader, Decl *D, in attachPreviousDecl() argument
2904 attachPreviousDeclImpl(Reader, cast<TYPE##Decl>(D), Previous, Canon); \ in attachPreviousDecl()
2983 ASTDeclReader Reader(*this, *Loc.F, ID, RawLocation, Record,Idx); in ReadDeclRecord() local
3190 Reader.Visit(D); in ReadDeclRecord()
3201 std::pair<uint64_t, uint64_t> Offsets = Reader.VisitDeclContext(DC); in ReadDeclRecord()
3241 if (isConsumerInterestedIn(D, Reader.hasPendingBody())) in ReadDeclRecord()
3269 ASTDeclReader Reader(*this, *F, ID, 0, Record, Idx); in loadDeclUpdateRecords() local
3270 Reader.UpdateDecl(D, *F, Record); in loadDeclUpdateRecords()
3275 isConsumerInterestedIn(D, Reader.hasPendingBody())) { in loadDeclUpdateRecords()
3287 ASTReader &Reader; member in __anon49bd3e1c0211::RedeclChainVisitor
3294 RedeclChainVisitor(ASTReader &Reader, SmallVectorImpl<DeclID> &SearchDecls, in RedeclChainVisitor() argument
3297 : Reader(Reader), SearchDecls(SearchDecls), Deserialized(Deserialized), in RedeclChainVisitor()
3300 addToChain(Reader.GetDecl(CanonID)); in RedeclChainVisitor()
3321 DeclID ID = Reader.mapGlobalIDToModuleFileGlobalID(M, GlobalID); in searchForID()
3328 if (CanonID != GlobalID && Reader.isDeclIDFromModule(GlobalID, M)) in searchForID()
3329 addToChain(Reader.GetDecl(GlobalID)); in searchForID()
3347 addToChain(Reader.GetDecl(GlobalID)); in searchForID()
3358 addToChain(Reader.GetLocalDecl(M, M.RedeclarationChains[Offset++])); in searchForID()
3421 ASTReader &Reader; member in __anon49bd3e1c0311::ObjCCategoriesVisitor
3438 Reader.getOwningModuleFile(Existing) in add()
3439 != Reader.getOwningModuleFile(Cat)) { in add()
3451 Reader.Diag(Cat->getLocation(), diag::warn_dup_category_def) in add()
3453 Reader.Diag(Existing->getLocation(), diag::note_previous_definition); in add()
3469 ObjCCategoriesVisitor(ASTReader &Reader, in ObjCCategoriesVisitor() argument
3474 : Reader(Reader), InterfaceID(InterfaceID), Interface(Interface), in ObjCCategoriesVisitor()
3501 DeclID LocalID = Reader.mapGlobalIDToModuleFileGlobalID(M, InterfaceID); in visit()
3517 return Reader.isDeclIDFromModule(InterfaceID, M); in visit()
3526 Reader.GetLocalDecl(M, M.ObjCCategories[Offset++]))); in visit()
3611 Decl *MD = Reader.ReadDecl(ModuleFile, Record, Idx); in UpdateDecl()
3622 auto &Merged = Reader.MergedLookups[DD->Definition]; in UpdateDecl()
3632 (void)Reader.ReadDecl(ModuleFile, Record, Idx); in UpdateDecl()
3637 = Reader.ReadDeclAs<NamespaceDecl>(ModuleFile, Record, Idx); in UpdateDecl()
3654 Reader.ReadSourceLocation(ModuleFile, Record, Idx)); in UpdateDecl()
3659 if (Reader.PendingBodies[FD]) { in UpdateDecl()
3673 FD->setInnerLocStart(Reader.ReadSourceLocation(ModuleFile, Record, Idx)); in UpdateDecl()
3678 Reader.ReadCXXCtorInitializersRef(F, Record, Idx); in UpdateDecl()
3681 Reader.PendingBodies[FD] = GetCurrentCursorOffset(); in UpdateDecl()
3692 !Reader.PendingFakeDefinitionData.count(OldDD)); in UpdateDecl()
3699 Reader.ReadDeclContextStorage(ModuleFile, ModuleFile.DeclsCursor, in UpdateDecl()
3702 Reader.PendingFakeDefinitionData.erase(OldDD); in UpdateDecl()
3706 SourceLocation POI = Reader.ReadSourceLocation(ModuleFile, Record, Idx); in UpdateDecl()
3721 Reader.ReadTemplateArgumentList(TemplArgs, F, Record, Idx); in UpdateDecl()
3723 Reader.getContext(), TemplArgs.data(), TemplArgs.size()); in UpdateDecl()
3734 RD->setLocation(Reader.ReadSourceLocation(ModuleFile, Record, Idx)); in UpdateDecl()
3735 RD->setLocStart(Reader.ReadSourceLocation(ModuleFile, Record, Idx)); in UpdateDecl()
3736 RD->setRBraceLoc(Reader.ReadSourceLocation(ModuleFile, Record, Idx)); in UpdateDecl()
3740 Reader.ReadAttributes(F, Attrs, Record, Idx); in UpdateDecl()
3741 D->setAttrsImpl(Attrs, Reader.getContext()); in UpdateDecl()
3749 auto *Del = Reader.ReadDeclAs<FunctionDecl>(ModuleFile, Record, Idx); in UpdateDecl()
3760 Reader.readExceptionSpec(ModuleFile, ExceptionStorage, ESI, Record, Idx); in UpdateDecl()
3768 FD->setType(Reader.Context.getFunctionType( in UpdateDecl()
3774 Reader.PendingExceptionSpecUpdates.insert( in UpdateDecl()
3782 QualType DeducedResultType = Reader.readType(ModuleFile, Record, Idx); in UpdateDecl()
3786 Reader.Context.adjustDeducedFunctionResultType(FD, DeducedResultType); in UpdateDecl()
3801 Reader.Context.setManglingNumber(cast<NamedDecl>(D), Record[Idx++]); in UpdateDecl()
3805 Reader.Context.setStaticLocalNumber(cast<VarDecl>(D), Record[Idx++]); in UpdateDecl()
3810 Reader.Context, ReadSourceRange(Record, Idx))); in UpdateDecl()
3815 Module *Owner = SubmoduleID ? Reader.getSubmodule(SubmoduleID) : nullptr; in UpdateDecl()
3819 Reader.HiddenNamesMap[Owner].HiddenDecls.push_back(D); in UpdateDecl()