Lines Matching refs:F
669 F, endian::readNext<uint32_t, little, unaligned>(d)); in ReadKey()
679 F, endian::readNext<uint32_t, little, unaligned>(d))); in ReadKey()
692 F, endian::readNext<uint32_t, little, unaligned>(d)); in ReadData()
705 F, endian::readNext<uint32_t, little, unaligned>(d))) in ReadData()
712 F, endian::readNext<uint32_t, little, unaligned>(d))) in ReadData()
757 IdentID ID = Reader.getGlobalIdentifierID(F, RawID); in ReadData()
829 Reader.addPendingMacro(II, &F, MacroDirectivesOffset); in ReadData()
840 F, endian::readNext<uint32_t, little, unaligned>(d))); in ReadData()
923 F, endian::readNext<uint32_t, little, unaligned>(d)); in ReadKey()
930 F, endian::readNext<uint32_t, little, unaligned>( in ReadKey()
938 F, endian::readNext<uint32_t, little, unaligned>(d)); in ReadKey()
1028 bool ASTReader::ParseLineTable(ModuleFile &F, in ParseLineTable() argument
1037 auto Filename = ReadPath(F, Record, Idx); in ParseLineTable()
1047 FID += F.SLocEntryBaseID - 1; in ParseLineTable()
1071 bool ASTReader::ReadSourceManagerBlock(ModuleFile &F) { in ReadSourceManagerBlock() argument
1074 BitstreamCursor &SLocEntryCursor = F.SLocEntryCursor; in ReadSourceManagerBlock()
1080 SLocEntryCursor = F.Stream; in ReadSourceManagerBlock()
1083 if (F.Stream.SkipBlock()) { in ReadSourceManagerBlock()
1168 ModuleFile *F = GlobalSLocEntryMap.find(-ID)->second; in ReadSLocEntry() local
1169 F->SLocEntryCursor.JumpToBit(F->SLocEntryOffsets[ID - F->SLocEntryBaseID]); in ReadSLocEntry()
1170 BitstreamCursor &SLocEntryCursor = F->SLocEntryCursor; in ReadSLocEntry()
1171 unsigned BaseOffset = F->SLocEntryBaseOffset; in ReadSLocEntry()
1191 InputFile IF = getInputFile(*F, InputID); in ReadSLocEntry()
1201 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry()
1202 if (IncludeLoc.isInvalid() && F->Kind != MK_MainFile) { in ReadSLocEntry()
1204 IncludeLoc = getImportLocation(F); in ReadSLocEntry()
1216 const DeclID *FirstDecl = F->FileSortedDecls + Record[6]; in ReadSLocEntry()
1219 assert(F->FileSortedDecls && "FILE_SORTED_DECLS not encountered yet ?"); in ReadSLocEntry()
1220 FileDeclIDs[FID] = FileDeclsInfo(F, llvm::makeArrayRef(FirstDecl, in ReadSLocEntry()
1251 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry()
1253 (F->Kind == MK_ImplicitModule || F->Kind == MK_ExplicitModule)) { in ReadSLocEntry()
1254 IncludeLoc = getImportLocation(F); in ReadSLocEntry()
1274 SourceLocation SpellingLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry()
1276 ReadSourceLocation(*F, Record[2]), in ReadSLocEntry()
1277 ReadSourceLocation(*F, Record[3]), in ReadSLocEntry()
1308 SourceLocation ASTReader::getImportLocation(ModuleFile *F) { in getImportLocation() argument
1309 if (F->ImportLoc.isValid()) in getImportLocation()
1310 return F->ImportLoc; in getImportLocation()
1314 if (F->ImportedBy.empty() || !F->ImportedBy[0]) { in getImportLocation()
1319 return F->ImportedBy[0]->FirstLoc; in getImportLocation()
1344 Token ASTReader::ReadToken(ModuleFile &F, const RecordDataImpl &Record, in ReadToken() argument
1348 Tok.setLocation(ReadSourceLocation(F, Record, Idx)); in ReadToken()
1350 if (IdentifierInfo *II = getLocalIdentifier(F, Record[Idx++])) in ReadToken()
1357 MacroInfo *ASTReader::ReadMacroRecord(ModuleFile &F, uint64_t Offset) { in ReadMacroRecord() argument
1358 BitstreamCursor &Stream = F.MacroCursor; in ReadMacroRecord()
1406 SubmoduleID SubModID = getGlobalSubmoduleID(F, Record[NextIndex++]); in ReadMacroRecord()
1407 SourceLocation Loc = ReadSourceLocation(F, Record, NextIndex); in ReadMacroRecord()
1409 MI->setDefinitionEndLoc(ReadSourceLocation(F, Record, NextIndex)); in ReadMacroRecord()
1421 MacroArgs.push_back(getLocalIdentifier(F, Record[NextIndex++])); in ReadMacroRecord()
1440 GlobalID = getGlobalPreprocessedEntityID(F, Record[NextIndex]); in ReadMacroRecord()
1460 Token Tok = ReadToken(F, Record, Idx); in ReadMacroRecord()
1847 ASTReader::readInputFileInfo(ModuleFile &F, unsigned ID) { in readInputFileInfo() argument
1849 BitstreamCursor &Cursor = F.InputFilesCursor; in readInputFileInfo()
1851 Cursor.JumpToBit(F.InputFileOffsets[ID-1]); in readInputFileInfo()
1872 ResolveImportedPath(F, Filename); in readInputFileInfo()
1878 std::string ASTReader::getInputFileName(ModuleFile &F, unsigned int ID) { in getInputFileName() argument
1879 return readInputFileInfo(F, ID).Filename; in getInputFileName()
1882 InputFile ASTReader::getInputFile(ModuleFile &F, unsigned ID, bool Complain) { in getInputFile() argument
1884 if (ID == 0 || ID > F.InputFilesLoaded.size()) in getInputFile()
1888 if (F.InputFilesLoaded[ID-1].getFile()) in getInputFile()
1889 return F.InputFilesLoaded[ID-1]; in getInputFile()
1891 if (F.InputFilesLoaded[ID-1].isNotFound()) in getInputFile()
1895 BitstreamCursor &Cursor = F.InputFilesCursor; in getInputFile()
1897 Cursor.JumpToBit(F.InputFileOffsets[ID-1]); in getInputFile()
1899 InputFileInfo FI = readInputFileInfo(F, ID); in getInputFile()
1911 if (File == nullptr && !F.OriginalDir.empty() && !CurrentDir.empty() && in getInputFile()
1912 F.OriginalDir != CurrentDir) { in getInputFile()
1914 F.OriginalDir, in getInputFile()
1934 F.InputFilesLoaded[ID-1] = InputFile::getNotFound(); in getInputFile()
1975 F.Kind != MK_ExplicitModule) in getInputFile()
1980 SmallVector<ModuleFile *, 4> ImportStack(1, &F); in getInputFile()
2007 F.InputFilesLoaded[ID-1] = IF; in getInputFile()
2030 ASTReader::ReadControlBlock(ModuleFile &F, in ReadControlBlock() argument
2034 BitstreamCursor &Stream = F.Stream; in ReadControlBlock()
2045 bool AllowCompatibleConfigurationMismatch = F.Kind == MK_ExplicitModule; in ReadControlBlock()
2075 F.InputFilesValidationTimestamp <= HSOpts.BuildSessionTimestamp && in ReadControlBlock()
2076 F.Kind == MK_ImplicitModule)) in ReadControlBlock()
2080 InputFile IF = getInputFile(F, I+1, Complain); in ReadControlBlock()
2087 Listener->visitModuleFile(F.FileName); in ReadControlBlock()
2094 InputFileInfo FI = readInputFileInfo(F, I+1); in ReadControlBlock()
2105 F.InputFilesCursor = Stream; in ReadControlBlock()
2108 ReadBlockAbbrevs(F.InputFilesCursor, INPUT_FILES_BLOCK_ID)) { in ReadControlBlock()
2145 F.RelocatablePCH = Record[4]; in ReadControlBlock()
2147 if (F.RelocatablePCH) in ReadControlBlock()
2148 F.BaseDirectory = isysroot.empty() ? "/" : isysroot; in ReadControlBlock()
2161 assert((!F.Signature || F.Signature == Record[0]) && "signature changed"); in ReadControlBlock()
2162 F.Signature = Record[0]; in ReadControlBlock()
2179 auto ImportedFile = ReadPath(F, Record, Idx); in ReadControlBlock()
2182 switch(ReadASTCore(ImportedFile, ImportedKind, ImportLoc, &F, Loaded, in ReadControlBlock()
2204 if (Listener && &F == *ModuleMgr.begin() && in ReadControlBlock()
2214 if (Listener && &F == *ModuleMgr.begin() && in ReadControlBlock()
2224 if (Listener && &F == *ModuleMgr.begin() && in ReadControlBlock()
2234 if (Listener && &F == *ModuleMgr.begin() && in ReadControlBlock()
2244 if (Listener && &F == *ModuleMgr.begin() && in ReadControlBlock()
2254 if (Listener && &F == *ModuleMgr.begin() && in ReadControlBlock()
2264 F.OriginalSourceFileID = FileID::get(Record[0]); in ReadControlBlock()
2265 F.ActualOriginalSourceFileName = Blob; in ReadControlBlock()
2266 F.OriginalSourceFileName = F.ActualOriginalSourceFileName; in ReadControlBlock()
2267 ResolveImportedPath(F, F.OriginalSourceFileName); in ReadControlBlock()
2271 F.OriginalSourceFileID = FileID::get(Record[0]); in ReadControlBlock()
2275 F.OriginalDir = Blob; in ReadControlBlock()
2279 F.ModuleName = Blob; in ReadControlBlock()
2281 Listener->ReadModuleName(F.ModuleName); in ReadControlBlock()
2285 assert(!F.ModuleName.empty() && in ReadControlBlock()
2289 Module *M = PP.getHeaderSearchInfo().lookupModule(F.ModuleName); in ReadControlBlock()
2293 if (F.Kind != MK_ExplicitModule) { in ReadControlBlock()
2299 << F.ModuleName << Blob << M->Directory->getName(); in ReadControlBlock()
2303 F.BaseDirectory = M->Directory->getName(); in ReadControlBlock()
2305 F.BaseDirectory = Blob; in ReadControlBlock()
2312 ReadModuleMapFileBlock(Record, F, ImportedBy, ClientLoadCapabilities)) in ReadControlBlock()
2319 F.InputFileOffsets = in ReadControlBlock()
2321 F.InputFilesLoaded.resize(NumInputs); in ReadControlBlock()
2328 ASTReader::ReadASTBlock(ModuleFile &F, unsigned ClientLoadCapabilities) { in ReadASTBlock() argument
2329 BitstreamCursor &Stream = F.Stream; in ReadASTBlock()
2365 F.DeclsCursor = Stream; in ReadASTBlock()
2368 ReadBlockAbbrevs(F.DeclsCursor, DECLTYPES_BLOCK_ID)) { in ReadASTBlock()
2375 F.MacroCursor = Stream; in ReadASTBlock()
2380 ReadBlockAbbrevs(F.MacroCursor, PREPROCESSOR_BLOCK_ID)) { in ReadASTBlock()
2384 F.MacroStartOffset = F.MacroCursor.GetCurrentBitNo(); in ReadASTBlock()
2388 F.PreprocessorDetailCursor = Stream; in ReadASTBlock()
2390 ReadBlockAbbrevs(F.PreprocessorDetailCursor, in ReadASTBlock()
2395 F.PreprocessorDetailStartOffset in ReadASTBlock()
2396 = F.PreprocessorDetailCursor.GetCurrentBitNo(); in ReadASTBlock()
2405 if (ReadSourceManagerBlock(F)) in ReadASTBlock()
2410 if (ASTReadResult Result = ReadSubmoduleBlock(F, ClientLoadCapabilities)) in ReadASTBlock()
2421 CommentsCursors.push_back(std::make_pair(C, &F)); in ReadASTBlock()
2447 if (F.LocalNumTypes != 0) { in ReadASTBlock()
2451 F.TypeOffsets = (const uint32_t *)Blob.data(); in ReadASTBlock()
2452 F.LocalNumTypes = Record[0]; in ReadASTBlock()
2454 F.BaseTypeIndex = getTotalNumTypes(); in ReadASTBlock()
2456 if (F.LocalNumTypes > 0) { in ReadASTBlock()
2458 GlobalTypeMap.insert(std::make_pair(getTotalNumTypes(), &F)); in ReadASTBlock()
2461 F.TypeRemap.insertOrReplace( in ReadASTBlock()
2463 F.BaseTypeIndex - LocalBaseTypeIndex)); in ReadASTBlock()
2465 TypesLoaded.resize(TypesLoaded.size() + F.LocalNumTypes); in ReadASTBlock()
2471 if (F.LocalNumDecls != 0) { in ReadASTBlock()
2475 F.DeclOffsets = (const DeclOffset *)Blob.data(); in ReadASTBlock()
2476 F.LocalNumDecls = Record[0]; in ReadASTBlock()
2478 F.BaseDeclID = getTotalNumDecls(); in ReadASTBlock()
2480 if (F.LocalNumDecls > 0) { in ReadASTBlock()
2484 std::make_pair(getTotalNumDecls() + NUM_PREDEF_DECL_IDS, &F)); in ReadASTBlock()
2488 F.DeclRemap.insertOrReplace( in ReadASTBlock()
2489 std::make_pair(LocalBaseDeclID, F.BaseDeclID - LocalBaseDeclID)); in ReadASTBlock()
2493 F.GlobalToLocalDeclIDs[&F] = LocalBaseDeclID; in ReadASTBlock()
2495 DeclsLoaded.resize(DeclsLoaded.size() + F.LocalNumDecls); in ReadASTBlock()
2502 DeclContextInfo &Info = F.DeclContextInfos[TU]; in ReadASTBlock()
2512 serialization::DeclID ID = ReadDeclID(F, Record, Idx); in ReadASTBlock()
2518 ASTDeclContextNameLookupTrait(*this, F)); in ReadASTBlock()
2522 auto *&LookupTable = F.DeclContextInfos[DC].NameLookupTableData; in ReadASTBlock()
2526 PendingVisibleUpdates[ID].push_back(std::make_pair(Table, &F)); in ReadASTBlock()
2531 F.IdentifierTableData = Blob.data(); in ReadASTBlock()
2533 F.IdentifierLookupTable = ASTIdentifierLookupTable::Create( in ReadASTBlock()
2534 (const unsigned char *)F.IdentifierTableData + Record[0], in ReadASTBlock()
2535 (const unsigned char *)F.IdentifierTableData + sizeof(uint32_t), in ReadASTBlock()
2536 (const unsigned char *)F.IdentifierTableData, in ReadASTBlock()
2537 ASTIdentifierLookupTrait(*this, F)); in ReadASTBlock()
2544 if (F.LocalNumIdentifiers != 0) { in ReadASTBlock()
2548 F.IdentifierOffsets = (const uint32_t *)Blob.data(); in ReadASTBlock()
2549 F.LocalNumIdentifiers = Record[0]; in ReadASTBlock()
2551 F.BaseIdentifierID = getTotalNumIdentifiers(); in ReadASTBlock()
2553 if (F.LocalNumIdentifiers > 0) { in ReadASTBlock()
2557 &F)); in ReadASTBlock()
2561 F.IdentifierRemap.insertOrReplace( in ReadASTBlock()
2563 F.BaseIdentifierID - LocalBaseIdentifierID)); in ReadASTBlock()
2566 + F.LocalNumIdentifiers); in ReadASTBlock()
2575 EagerlyDeserializedDecls.push_back(getGlobalDeclID(F, Record[I])); in ReadASTBlock()
2581 SpecialTypes.push_back(getGlobalTypeID(F, Record[I])); in ReadASTBlock()
2591 serialization::TypeID ID = getGlobalTypeID(F, Record[I]); in ReadASTBlock()
2608 UnusedFileScopedDecls.push_back(getGlobalDeclID(F, Record[I])); in ReadASTBlock()
2613 DelegatingCtorDecls.push_back(getGlobalDeclID(F, Record[I])); in ReadASTBlock()
2629 getGlobalIdentifierID(F, Record[I++])); in ReadASTBlock()
2631 getGlobalIdentifierID(F, Record[I++])); in ReadASTBlock()
2633 ReadSourceLocation(F, Record, I).getRawEncoding()); in ReadASTBlock()
2639 F.SelectorOffsets = (const uint32_t *)Blob.data(); in ReadASTBlock()
2640 F.LocalNumSelectors = Record[0]; in ReadASTBlock()
2642 F.BaseSelectorID = getTotalNumSelectors(); in ReadASTBlock()
2644 if (F.LocalNumSelectors > 0) { in ReadASTBlock()
2647 GlobalSelectorMap.insert(std::make_pair(getTotalNumSelectors()+1, &F)); in ReadASTBlock()
2651 F.SelectorRemap.insertOrReplace( in ReadASTBlock()
2653 F.BaseSelectorID - LocalBaseSelectorID)); in ReadASTBlock()
2655 SelectorsLoaded.resize(SelectorsLoaded.size() + F.LocalNumSelectors); in ReadASTBlock()
2661 F.SelectorLookupTableData = (const unsigned char *)Blob.data(); in ReadASTBlock()
2663 F.SelectorLookupTable in ReadASTBlock()
2665 F.SelectorLookupTableData + Record[0], in ReadASTBlock()
2666 F.SelectorLookupTableData, in ReadASTBlock()
2667 ASTSelectorLookupTrait(*this, F)); in ReadASTBlock()
2674 ReferencedSelectorsData.push_back(getGlobalSelectorID(F, in ReadASTBlock()
2676 ReferencedSelectorsData.push_back(ReadSourceLocation(F, Record, Idx). in ReadASTBlock()
2684 Listener->ReadCounter(F, Record[0]); in ReadASTBlock()
2688 F.FileSortedDecls = (const DeclID *)Blob.data(); in ReadASTBlock()
2689 F.NumFileSortedDecls = Record[0]; in ReadASTBlock()
2693 F.SLocEntryOffsets = (const uint32_t *)Blob.data(); in ReadASTBlock()
2694 F.LocalNumSLocEntries = Record[0]; in ReadASTBlock()
2696 std::tie(F.SLocEntryBaseID, F.SLocEntryBaseOffset) = in ReadASTBlock()
2697 SourceMgr.AllocateLoadedSLocEntries(F.LocalNumSLocEntries, in ReadASTBlock()
2703 unsigned(-F.SLocEntryBaseID) - F.LocalNumSLocEntries + 1; in ReadASTBlock()
2704 GlobalSLocEntryMap.insert(std::make_pair(RangeStart, &F)); in ReadASTBlock()
2705 F.FirstLoc = SourceLocation::getFromRawEncoding(F.SLocEntryBaseOffset); in ReadASTBlock()
2708 assert((F.SLocEntryBaseOffset & (1U << 31U)) == 0); in ReadASTBlock()
2710 std::make_pair(SourceManager::MaxLoadedOffset - F.SLocEntryBaseOffset in ReadASTBlock()
2711 - SLocSpaceSize,&F)); in ReadASTBlock()
2715 F.SLocRemap.insertOrReplace(std::make_pair(0U, 0)); in ReadASTBlock()
2717 F.SLocRemap.insertOrReplace(std::make_pair(2U, in ReadASTBlock()
2718 static_cast<int>(F.SLocEntryBaseOffset - 2))); in ReadASTBlock()
2720 TotalNumSLocEntries += F.LocalNumSLocEntries; in ReadASTBlock()
2730 if (F.SLocRemap.find(0) == F.SLocRemap.end()) { in ReadASTBlock()
2731 F.SLocRemap.insert(std::make_pair(0U, 0)); in ReadASTBlock()
2732 F.SLocRemap.insert(std::make_pair(2U, 1)); in ReadASTBlock()
2738 RemapBuilder SLocRemap(F.SLocRemap); in ReadASTBlock()
2739 RemapBuilder IdentifierRemap(F.IdentifierRemap); in ReadASTBlock()
2740 RemapBuilder MacroRemap(F.MacroRemap); in ReadASTBlock()
2741 RemapBuilder PreprocessedEntityRemap(F.PreprocessedEntityRemap); in ReadASTBlock()
2742 RemapBuilder SubmoduleRemap(F.SubmoduleRemap); in ReadASTBlock()
2743 RemapBuilder SelectorRemap(F.SelectorRemap); in ReadASTBlock()
2744 RemapBuilder DeclRemap(F.DeclRemap); in ReadASTBlock()
2745 RemapBuilder TypeRemap(F.TypeRemap); in ReadASTBlock()
2794 F.GlobalToLocalDeclIDs[OM] = DeclIDOffset; in ReadASTBlock()
2800 if (ParseLineTable(F, Record)) in ReadASTBlock()
2807 if (!F.PreloadSLocEntries.empty()) { in ReadASTBlock()
2812 F.PreloadSLocEntries.swap(Record); in ReadASTBlock()
2818 ExtVectorDecls.push_back(getGlobalDeclID(F, Record[I])); in ReadASTBlock()
2833 VTableUses.push_back(getGlobalDeclID(F, Record[Idx++])); in ReadASTBlock()
2835 ReadSourceLocation(F, Record, Idx).getRawEncoding()); in ReadASTBlock()
2852 PendingInstantiations.push_back(getGlobalDeclID(F, Record[I++])); in ReadASTBlock()
2854 ReadSourceLocation(F, Record, I).getRawEncoding()); in ReadASTBlock()
2864 SemaDeclRefs.push_back(getGlobalDeclID(F, Record[I])); in ReadASTBlock()
2868 F.PreprocessedEntityOffsets = (const PPEntityOffset *)Blob.data(); in ReadASTBlock()
2870 F.NumPreprocessedEntities = Blob.size() / sizeof(PPEntityOffset); in ReadASTBlock()
2881 ->allocateLoadedEntities(F.NumPreprocessedEntities); in ReadASTBlock()
2882 F.BasePreprocessedEntityID = StartingID; in ReadASTBlock()
2884 if (F.NumPreprocessedEntities > 0) { in ReadASTBlock()
2887 GlobalPreprocessedEntityMap.insert(std::make_pair(StartingID, &F)); in ReadASTBlock()
2891 F.PreprocessedEntityRemap.insertOrReplace( in ReadASTBlock()
2893 F.BasePreprocessedEntityID - LocalBasePreprocessedEntityID)); in ReadASTBlock()
2905 GlobalDeclID ID = getGlobalDeclID(F, Record[I]); in ReadASTBlock()
2906 DeclUpdateOffsets[ID].push_back(std::make_pair(&F, Record[I + 1])); in ReadASTBlock()
2922 ReplacedDecls[getGlobalDeclID(F, Record[I])] in ReadASTBlock()
2923 = ReplacedDeclInfo(&F, Record[I+1], Record[I+2]); in ReadASTBlock()
2928 if (F.LocalNumObjCCategoriesInMap != 0) { in ReadASTBlock()
2933 F.LocalNumObjCCategoriesInMap = Record[0]; in ReadASTBlock()
2934 F.ObjCCategoriesMap = (const ObjCCategoriesInfo *)Blob.data(); in ReadASTBlock()
2939 F.ObjCCategories.swap(Record); in ReadASTBlock()
2943 if (F.LocalNumCXXBaseSpecifiers != 0) { in ReadASTBlock()
2948 F.LocalNumCXXBaseSpecifiers = Record[0]; in ReadASTBlock()
2949 F.CXXBaseSpecifiersOffsets = (const uint32_t *)Blob.data(); in ReadASTBlock()
2954 if (F.LocalNumCXXCtorInitializers != 0) { in ReadASTBlock()
2959 F.LocalNumCXXCtorInitializers = Record[0]; in ReadASTBlock()
2960 F.CXXCtorInitializersOffsets = (const uint32_t *)Blob.data(); in ReadASTBlock()
2965 if (F.PragmaDiagMappings.empty()) in ReadASTBlock()
2966 F.PragmaDiagMappings.swap(Record); in ReadASTBlock()
2968 F.PragmaDiagMappings.insert(F.PragmaDiagMappings.end(), in ReadASTBlock()
2977 CUDASpecialDeclRefs.push_back(getGlobalDeclID(F, Record[I])); in ReadASTBlock()
2981 F.HeaderFileInfoTableData = Blob.data(); in ReadASTBlock()
2982 F.LocalNumHeaderFileInfos = Record[1]; in ReadASTBlock()
2984 F.HeaderFileInfoTable in ReadASTBlock()
2986 (const unsigned char *)F.HeaderFileInfoTableData + Record[0], in ReadASTBlock()
2987 (const unsigned char *)F.HeaderFileInfoTableData, in ReadASTBlock()
2988 HeaderFileInfoTrait(*this, F, in ReadASTBlock()
3011 TentativeDefinitions.push_back(getGlobalDeclID(F, Record[I])); in ReadASTBlock()
3016 KnownNamespaces.push_back(getGlobalDeclID(F, Record[I])); in ReadASTBlock()
3030 UndefinedButUsed.push_back(getGlobalDeclID(F, Record[I++])); in ReadASTBlock()
3032 ReadSourceLocation(F, Record, I).getRawEncoding()); in ReadASTBlock()
3037 DelayedDeleteExprs.push_back(getGlobalDeclID(F, Record[I++])); in ReadASTBlock()
3041 DelayedDeleteExprs.push_back(ReadSourceLocation(F, Record, I).getRawEncoding()); in ReadASTBlock()
3049 if (F.Kind != MK_ImplicitModule && F.Kind != MK_ExplicitModule) { in ReadASTBlock()
3054 unsigned GlobalID = getGlobalSubmoduleID(F, Record[I++]); in ReadASTBlock()
3055 SourceLocation Loc = ReadSourceLocation(F, Record, I); in ReadASTBlock()
3064 F.RedeclarationChains.swap(Record); in ReadASTBlock()
3069 if (F.LocalNumRedeclarationsInMap != 0) { in ReadASTBlock()
3074 F.LocalNumRedeclarationsInMap = Record[0]; in ReadASTBlock()
3075 F.RedeclarationsMap = (const LocalRedeclarationsInfo *)Blob.data(); in ReadASTBlock()
3080 if (F.LocalNumMacros != 0) { in ReadASTBlock()
3084 F.MacroOffsets = (const uint32_t *)Blob.data(); in ReadASTBlock()
3085 F.LocalNumMacros = Record[0]; in ReadASTBlock()
3087 F.BaseMacroID = getTotalNumMacros(); in ReadASTBlock()
3089 if (F.LocalNumMacros > 0) { in ReadASTBlock()
3091 GlobalMacroMap.insert(std::make_pair(getTotalNumMacros() + 1, &F)); in ReadASTBlock()
3094 F.MacroRemap.insertOrReplace( in ReadASTBlock()
3096 F.BaseMacroID - LocalBaseMacroID)); in ReadASTBlock()
3098 MacrosLoaded.resize(MacrosLoaded.size() + F.LocalNumMacros); in ReadASTBlock()
3113 OptimizeOffPragmaLocation = ReadSourceLocation(F, Record[0]); in ReadASTBlock()
3119 getGlobalDeclID(F, Record[I])); in ReadASTBlock()
3126 ASTReader::ReadModuleMapFileBlock(RecordData &Record, ModuleFile &F, in ReadModuleMapFileBlock() argument
3130 F.ModuleMapPath = ReadPath(F, Record, Idx); in ReadModuleMapFileBlock()
3132 if (F.Kind == MK_ExplicitModule) { in ReadModuleMapFileBlock()
3142 assert(!F.ModuleName.empty() && in ReadModuleMapFileBlock()
3144 if (F.Kind == MK_ImplicitModule && in ReadModuleMapFileBlock()
3148 Module *M = PP.getHeaderSearchInfo().lookupModule(F.ModuleName); in ReadModuleMapFileBlock()
3154 Diag(diag::err_imported_module_not_found) << F.ModuleName << F.FileName in ReadModuleMapFileBlock()
3156 << F.ModuleMapPath; in ReadModuleMapFileBlock()
3160 assert(M->Name == F.ModuleName && "found module with different name"); in ReadModuleMapFileBlock()
3163 const FileEntry *StoredModMap = FileMgr.getFile(F.ModuleMapPath); in ReadModuleMapFileBlock()
3169 << F.ModuleName << ImportedBy->FileName in ReadModuleMapFileBlock()
3170 << ModMap->getName() << F.ModuleMapPath; in ReadModuleMapFileBlock()
3177 std::string Filename = ReadPath(F, Record, Idx); in ReadModuleMapFileBlock()
3178 const FileEntry *F = in ReadModuleMapFileBlock() local
3180 if (F == nullptr) { in ReadModuleMapFileBlock()
3185 AdditionalStoredMaps.insert(F); in ReadModuleMapFileBlock()
3197 << F.ModuleName << /*new*/0 << ModMap->getName(); in ReadModuleMapFileBlock()
3208 << F.ModuleName << /*not new*/1 << ModMap->getName(); in ReadModuleMapFileBlock()
3214 Listener->ReadModuleMapFile(F.ModuleMapPath); in ReadModuleMapFileBlock()
3396 ModuleFile &F = *M->Mod; in ReadAST() local
3399 if (ASTReadResult Result = ReadASTBlock(F, ClientLoadCapabilities)) in ReadAST()
3404 F.GlobalBitOffset = TotalModulesSizeInBits; in ReadAST()
3405 TotalModulesSizeInBits += F.SizeInBits; in ReadAST()
3406 GlobalBitOffsetsMap.insert(std::make_pair(F.GlobalBitOffset, &F)); in ReadAST()
3409 for (unsigned I = 0, N = F.PreloadSLocEntries.size(); I != N; ++I) { in ReadAST()
3410 int Index = int(F.PreloadSLocEntries[I] - 1) + F.SLocEntryBaseID; in ReadAST()
3424 ModuleFile &F = *M->Mod; in ReadAST() local
3426 ModuleMgr.moduleFileAccepted(&F); in ReadAST()
3429 F.DirectImportLoc = ImportLoc; in ReadAST()
3431 F.ImportLoc = M->ImportLoc; in ReadAST()
3433 F.ImportLoc = ReadSourceLocation(*M->ImportedBy, in ReadAST()
3602 ModuleFile &F = *M; in ReadASTCore() local
3603 BitstreamCursor &Stream = F.Stream; in ReadASTCore()
3604 PCHContainerRdr.ExtractPCH(F.Buffer->getMemBufferRef(), F.StreamFile); in ReadASTCore()
3605 Stream.init(&F.StreamFile); in ReadASTCore()
3606 F.SizeInBits = F.Buffer->getBufferSize() * 8; in ReadASTCore()
3641 switch (ReadControlBlock(F, Loaded, ImportedBy, ClientLoadCapabilities)) { in ReadASTCore()
4173 ASTReader::ReadSubmoduleBlock(ModuleFile &F, unsigned ClientLoadCapabilities) { in ReadSubmoduleBlock() argument
4175 if (F.Stream.EnterSubBlock(SUBMODULE_BLOCK_ID)) { in ReadSubmoduleBlock()
4185 llvm::BitstreamEntry Entry = F.Stream.advanceSkippingSubblocks(); in ReadSubmoduleBlock()
4202 auto Kind = F.Stream.readRecord(Entry.ID, Record, &Blob); in ReadSubmoduleBlock()
4228 SubmoduleID GlobalID = getGlobalSubmoduleID(F, Record[Idx++]); in ReadSubmoduleBlock()
4229 SubmoduleID Parent = getGlobalSubmoduleID(F, Record[Idx++]); in ReadSubmoduleBlock()
4260 if (CurFile != F.File) { in ReadSubmoduleBlock()
4265 << F.File->getName(); in ReadSubmoduleBlock()
4271 CurrentModule->setASTFile(F.File); in ReadSubmoduleBlock()
4274 CurrentModule->Signature = F.Signature; in ReadSubmoduleBlock()
4297 ResolveImportedPath(F, Filename); in ReadSubmoduleBlock()
4335 ResolveImportedPath(F, Dirname); in ReadSubmoduleBlock()
4349 F.BaseSubmoduleID = getTotalNumSubmodules(); in ReadSubmoduleBlock()
4350 F.LocalNumSubmodules = Record[0]; in ReadSubmoduleBlock()
4352 if (F.LocalNumSubmodules > 0) { in ReadSubmoduleBlock()
4355 GlobalSubmoduleMap.insert(std::make_pair(getTotalNumSubmodules()+1,&F)); in ReadSubmoduleBlock()
4359 F.SubmoduleRemap.insertOrReplace( in ReadSubmoduleBlock()
4361 F.BaseSubmoduleID - LocalBaseSubmoduleID)); in ReadSubmoduleBlock()
4363 SubmodulesLoaded.resize(SubmodulesLoaded.size() + F.LocalNumSubmodules); in ReadSubmoduleBlock()
4371 Unresolved.File = &F; in ReadSubmoduleBlock()
4384 Unresolved.File = &F; in ReadSubmoduleBlock()
4414 Unresolved.File = &F; in ReadSubmoduleBlock()
4885 ModuleFile &F = *(*I); in ReadPragmaDiagnosticMappings() local
4890 while (Idx < F.PragmaDiagMappings.size()) { in ReadPragmaDiagnosticMappings()
4891 SourceLocation Loc = ReadSourceLocation(F, F.PragmaDiagMappings[Idx++]); in ReadPragmaDiagnosticMappings()
4892 unsigned DiagStateID = F.PragmaDiagMappings[Idx++]; in ReadPragmaDiagnosticMappings()
4909 assert(Idx < F.PragmaDiagMappings.size() && in ReadPragmaDiagnosticMappings()
4911 if (Idx >= F.PragmaDiagMappings.size()) { in ReadPragmaDiagnosticMappings()
4915 unsigned DiagID = F.PragmaDiagMappings[Idx++]; in ReadPragmaDiagnosticMappings()
4919 diag::Severity Map = (diag::Severity)F.PragmaDiagMappings[Idx++]; in ReadPragmaDiagnosticMappings()
4943 BitstreamCursor &DeclsCursor = Loc.F->DeclsCursor; in readTypeRecord()
4964 QualType Base = readType(*Loc.F, Record, Idx); in readTypeRecord()
4974 QualType ElemType = readType(*Loc.F, Record, Idx); in readTypeRecord()
4983 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
4992 QualType OriginalType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5004 QualType OriginalTy = readType(*Loc.F, Record, Idx); in readTypeRecord()
5005 QualType AdjustedTy = readType(*Loc.F, Record, Idx); in readTypeRecord()
5014 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5023 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5032 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5041 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5042 QualType ClassType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5050 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5060 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5067 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5070 SourceLocation LBLoc = ReadSourceLocation(*Loc.F, Record[3]); in readTypeRecord()
5071 SourceLocation RBLoc = ReadSourceLocation(*Loc.F, Record[4]); in readTypeRecord()
5072 return Context.getVariableArrayType(ElementType, ReadExpr(*Loc.F), in readTypeRecord()
5083 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5096 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5106 QualType ResultType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5113 QualType ResultType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5129 readExceptionSpec(*Loc.F, ExceptionStorage, EPI.ExceptionSpec, Record, Idx); in readTypeRecord()
5134 ParamTypes.push_back(readType(*Loc.F, Record, Idx)); in readTypeRecord()
5142 ReadDeclAs<UnresolvedUsingTypenameDecl>(*Loc.F, Record, Idx)); in readTypeRecord()
5151 TypedefNameDecl *Decl = ReadDeclAs<TypedefNameDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5152 QualType Canonical = readType(*Loc.F, Record, Idx); in readTypeRecord()
5159 return Context.getTypeOfExprType(ReadExpr(*Loc.F)); in readTypeRecord()
5166 QualType UnderlyingType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5171 QualType UnderlyingType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5172 return Context.getDecltypeType(ReadExpr(*Loc.F), UnderlyingType); in readTypeRecord()
5176 QualType BaseType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5177 QualType UnderlyingType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5183 QualType Deduced = readType(*Loc.F, Record, Idx); in readTypeRecord()
5196 RecordDecl *RD = ReadDeclAs<RecordDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5211 = Context.getEnumType(ReadDeclAs<EnumDecl>(*Loc.F, Record, Idx)); in readTypeRecord()
5221 QualType modifiedType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5222 QualType equivalentType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5232 QualType InnerType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5241 QualType Pattern = readType(*Loc.F, Record, Idx); in readTypeRecord()
5253 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord()
5254 QualType NamedType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5261 = ReadDeclAs<ObjCInterfaceDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5267 QualType Base = readType(*Loc.F, Record, Idx); in readTypeRecord()
5271 TypeArgs.push_back(readType(*Loc.F, Record, Idx)); in readTypeRecord()
5275 Protos.push_back(ReadDeclAs<ObjCProtocolDecl>(*Loc.F, Record, Idx)); in readTypeRecord()
5282 QualType Pointee = readType(*Loc.F, Record, Idx); in readTypeRecord()
5288 QualType Parm = readType(*Loc.F, Record, Idx); in readTypeRecord()
5289 QualType Replacement = readType(*Loc.F, Record, Idx); in readTypeRecord()
5297 QualType Parm = readType(*Loc.F, Record, Idx); in readTypeRecord()
5298 TemplateArgument ArgPack = ReadTemplateArgument(*Loc.F, Record, Idx); in readTypeRecord()
5305 CXXRecordDecl *D = ReadDeclAs<CXXRecordDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5306 QualType TST = readType(*Loc.F, Record, Idx); // probably derivable in readTypeRecord()
5330 = ReadDeclAs<TemplateTypeParmDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5337 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord()
5338 const IdentifierInfo *Name = this->GetIdentifierInfo(*Loc.F, Record, Idx); in readTypeRecord()
5339 QualType Canon = readType(*Loc.F, Record, Idx); in readTypeRecord()
5348 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord()
5349 const IdentifierInfo *Name = this->GetIdentifierInfo(*Loc.F, Record, Idx); in readTypeRecord()
5354 Args.push_back(ReadTemplateArgument(*Loc.F, Record, Idx)); in readTypeRecord()
5363 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5369 Expr *NumElts = ReadExpr(*Loc.F); in readTypeRecord()
5370 SourceRange Brackets = ReadSourceRange(*Loc.F, Record, Idx); in readTypeRecord()
5379 TemplateName Name = ReadTemplateName(*Loc.F, Record, Idx); in readTypeRecord()
5381 ReadTemplateArgumentList(Args, *Loc.F, Record, Idx); in readTypeRecord()
5382 QualType Underlying = readType(*Loc.F, Record, Idx); in readTypeRecord()
5399 QualType ValueType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5429 ModuleFile &F; member in clang::TypeLocReader
5435 return Reader.ReadSourceLocation(F, R, I); in ReadSourceLocation()
5440 return Reader.ReadDeclAs<T>(F, Record, Idx); in ReadDeclAs()
5444 TypeLocReader(ASTReader &Reader, ModuleFile &F, in TypeLocReader() argument
5446 : Reader(Reader), F(F), Record(Record), Idx(Idx) in TypeLocReader()
5496 TL.setClassTInfo(Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitMemberPointerTypeLoc()
5502 TL.setSizeExpr(Reader.ReadExpr(F)); in VisitArrayTypeLoc()
5559 TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitTypeOfTypeLoc()
5568 TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitUnaryTransformTypeLoc()
5589 TL.setAttrExprOperand(Reader.ReadExpr(F)); in VisitAttributedTypeLoc()
5614 Reader.GetTemplateArgumentLocInfo(F, in VisitTemplateSpecializationTypeLoc()
5624 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitElaboratedTypeLoc()
5631 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitDependentNameTypeLoc()
5637 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5644 Reader.GetTemplateArgumentLocInfo(F, in VisitDependentTemplateSpecializationTypeLoc()
5659 TL.setTypeArgTInfo(i, Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitObjCObjectTypeLoc()
5674 TypeSourceInfo *ASTReader::GetTypeSourceInfo(ModuleFile &F, in GetTypeSourceInfo() argument
5677 QualType InfoTy = readType(F, Record, Idx); in GetTypeSourceInfo()
5682 TypeLocReader TLR(*this, F, Record, Idx); in GetTypeSourceInfo()
5780 QualType ASTReader::getLocalType(ModuleFile &F, unsigned LocalID) { in getLocalType() argument
5781 return GetType(getGlobalTypeID(F, LocalID)); in getLocalType()
5785 ASTReader::getGlobalTypeID(ModuleFile &F, unsigned LocalID) const { in getGlobalTypeID() argument
5793 = F.TypeRemap.find(LocalIndex - NUM_PREDEF_TYPE_IDS); in getGlobalTypeID()
5794 assert(I != F.TypeRemap.end() && "Invalid index into type index remap"); in getGlobalTypeID()
5801 ASTReader::GetTemplateArgumentLocInfo(ModuleFile &F, in GetTemplateArgumentLocInfo() argument
5807 return ReadExpr(F); in GetTemplateArgumentLocInfo()
5809 return GetTypeSourceInfo(F, Record, Index); in GetTemplateArgumentLocInfo()
5811 NestedNameSpecifierLoc QualifierLoc = ReadNestedNameSpecifierLoc(F, Record, in GetTemplateArgumentLocInfo()
5813 SourceLocation TemplateNameLoc = ReadSourceLocation(F, Record, Index); in GetTemplateArgumentLocInfo()
5818 NestedNameSpecifierLoc QualifierLoc = ReadNestedNameSpecifierLoc(F, Record, in GetTemplateArgumentLocInfo()
5820 SourceLocation TemplateNameLoc = ReadSourceLocation(F, Record, Index); in GetTemplateArgumentLocInfo()
5821 SourceLocation EllipsisLoc = ReadSourceLocation(F, Record, Index); in GetTemplateArgumentLocInfo()
5837 ASTReader::ReadTemplateArgumentLoc(ModuleFile &F, in ReadTemplateArgumentLoc() argument
5839 TemplateArgument Arg = ReadTemplateArgument(F, Record, Index); in ReadTemplateArgumentLoc()
5845 return TemplateArgumentLoc(Arg, GetTemplateArgumentLocInfo(F, Arg.getKind(), in ReadTemplateArgumentLoc()
5850 ASTReader::ReadASTTemplateArgumentListInfo(ModuleFile &F, in ReadASTTemplateArgumentListInfo() argument
5853 SourceLocation LAngleLoc = ReadSourceLocation(F, Record, Index); in ReadASTTemplateArgumentListInfo()
5854 SourceLocation RAngleLoc = ReadSourceLocation(F, Record, Index); in ReadASTTemplateArgumentListInfo()
5858 TemplArgsInfo.addArgument(ReadTemplateArgumentLoc(F, Record, Index)); in ReadASTTemplateArgumentListInfo()
5931 BitstreamCursor &Cursor = Loc.F->DeclsCursor; in GetExternalCXXCtorInitializers()
5945 return ReadCXXCtorInitializers(*Loc.F, Record, Idx); in GetExternalCXXCtorInitializers()
5962 BitstreamCursor &Cursor = Loc.F->DeclsCursor; in GetExternalCXXBaseSpecifiers()
5979 Bases[I] = ReadCXXBaseSpecifier(*Loc.F, Record, Idx); in GetExternalCXXBaseSpecifiers()
5984 ASTReader::getGlobalDeclID(ModuleFile &F, LocalDeclID LocalID) const { in getGlobalDeclID() argument
5989 = F.DeclRemap.find(LocalID - NUM_PREDEF_DECL_IDS); in getGlobalDeclID()
5990 assert(I != F.DeclRemap.end() && "Invalid index into decl index remap"); in getGlobalDeclID()
6029 return ReadSourceLocation(*Rec.F, RawLocation); in getSourceLocationForDeclID()
6132 serialization::DeclID ASTReader::ReadDeclID(ModuleFile &F, in ReadDeclID() argument
6140 return getGlobalDeclID(F, Record[Idx++]); in ReadDeclID()
6154 Loc.F->DeclsCursor.JumpToBit(Loc.Offset); in GetExternalDeclStmt()
6155 return ReadStmtFromStream(*Loc.F); in GetExternalDeclStmt()
7193 ModuleFile *F = getOwningModuleFile(LT->D); in ReadLateParsedTemplates() local
7194 assert(F && "No module"); in ReadLateParsedTemplates()
7199 LT->Toks.push_back(ReadToken(*F, LateParsedTemplates, Idx)); in ReadLateParsedTemplates()
7470 ASTReader::ReadDeclarationName(ModuleFile &F, in ReadDeclarationName() argument
7475 return DeclarationName(GetIdentifierInfo(F, Record, Idx)); in ReadDeclarationName()
7480 return DeclarationName(ReadSelector(F, Record, Idx)); in ReadDeclarationName()
7484 Context.getCanonicalType(readType(F, Record, Idx))); in ReadDeclarationName()
7488 Context.getCanonicalType(readType(F, Record, Idx))); in ReadDeclarationName()
7492 Context.getCanonicalType(readType(F, Record, Idx))); in ReadDeclarationName()
7500 GetIdentifierInfo(F, Record, Idx)); in ReadDeclarationName()
7509 void ASTReader::ReadDeclarationNameLoc(ModuleFile &F, in ReadDeclarationNameLoc() argument
7517 DNLoc.NamedType.TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadDeclarationNameLoc()
7522 = ReadSourceLocation(F, Record, Idx).getRawEncoding(); in ReadDeclarationNameLoc()
7524 = ReadSourceLocation(F, Record, Idx).getRawEncoding(); in ReadDeclarationNameLoc()
7529 = ReadSourceLocation(F, Record, Idx).getRawEncoding(); in ReadDeclarationNameLoc()
7541 void ASTReader::ReadDeclarationNameInfo(ModuleFile &F, in ReadDeclarationNameInfo() argument
7544 NameInfo.setName(ReadDeclarationName(F, Record, Idx)); in ReadDeclarationNameInfo()
7545 NameInfo.setLoc(ReadSourceLocation(F, Record, Idx)); in ReadDeclarationNameInfo()
7547 ReadDeclarationNameLoc(F, DNLoc, NameInfo.getName(), Record, Idx); in ReadDeclarationNameInfo()
7551 void ASTReader::ReadQualifierInfo(ModuleFile &F, QualifierInfo &Info, in ReadQualifierInfo() argument
7553 Info.QualifierLoc = ReadNestedNameSpecifierLoc(F, Record, Idx); in ReadQualifierInfo()
7559 Info.TemplParamLists[i] = ReadTemplateParameterList(F, Record, Idx); in ReadQualifierInfo()
7564 ASTReader::ReadTemplateName(ModuleFile &F, const RecordData &Record, in ReadTemplateName() argument
7569 return TemplateName(ReadDeclAs<TemplateDecl>(F, Record, Idx)); in ReadTemplateName()
7575 Decls.addDecl(ReadDeclAs<NamedDecl>(F, Record, Idx)); in ReadTemplateName()
7581 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName()
7583 TemplateDecl *Template = ReadDeclAs<TemplateDecl>(F, Record, Idx); in ReadTemplateName()
7588 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName()
7591 GetIdentifierInfo(F, Record, in ReadTemplateName()
7599 = ReadDeclAs<TemplateTemplateParmDecl>(F, Record, Idx); in ReadTemplateName()
7601 TemplateName replacement = ReadTemplateName(F, Record, Idx); in ReadTemplateName()
7607 = ReadDeclAs<TemplateTemplateParmDecl>(F, Record, Idx); in ReadTemplateName()
7611 TemplateArgument ArgPack = ReadTemplateArgument(F, Record, Idx); in ReadTemplateName()
7623 ASTReader::ReadTemplateArgument(ModuleFile &F, in ReadTemplateArgument() argument
7630 return TemplateArgument(readType(F, Record, Idx)); in ReadTemplateArgument()
7632 ValueDecl *D = ReadDeclAs<ValueDecl>(F, Record, Idx); in ReadTemplateArgument()
7633 return TemplateArgument(D, readType(F, Record, Idx)); in ReadTemplateArgument()
7636 return TemplateArgument(readType(F, Record, Idx), /*isNullPtr*/true); in ReadTemplateArgument()
7639 QualType T = readType(F, Record, Idx); in ReadTemplateArgument()
7643 return TemplateArgument(ReadTemplateName(F, Record, Idx)); in ReadTemplateArgument()
7645 TemplateName Name = ReadTemplateName(F, Record, Idx); in ReadTemplateArgument()
7652 return TemplateArgument(ReadExpr(F)); in ReadTemplateArgument()
7657 Args[I] = ReadTemplateArgument(F, Record, Idx); in ReadTemplateArgument()
7666 ASTReader::ReadTemplateParameterList(ModuleFile &F, in ReadTemplateParameterList() argument
7668 SourceLocation TemplateLoc = ReadSourceLocation(F, Record, Idx); in ReadTemplateParameterList()
7669 SourceLocation LAngleLoc = ReadSourceLocation(F, Record, Idx); in ReadTemplateParameterList()
7670 SourceLocation RAngleLoc = ReadSourceLocation(F, Record, Idx); in ReadTemplateParameterList()
7676 Params.push_back(ReadDeclAs<NamedDecl>(F, Record, Idx)); in ReadTemplateParameterList()
7687 ModuleFile &F, const RecordData &Record, in ReadTemplateArgumentList() argument
7692 TemplArgs.push_back(ReadTemplateArgument(F, Record, Idx)); in ReadTemplateArgumentList()
7696 void ASTReader::ReadUnresolvedSet(ModuleFile &F, LazyASTUnresolvedSet &Set, in ReadUnresolvedSet() argument
7701 DeclID ID = ReadDeclID(F, Record, Idx); in ReadUnresolvedSet()
7708 ASTReader::ReadCXXBaseSpecifier(ModuleFile &F, in ReadCXXBaseSpecifier() argument
7714 TypeSourceInfo *TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadCXXBaseSpecifier()
7715 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadCXXBaseSpecifier()
7716 SourceLocation EllipsisLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXBaseSpecifier()
7724 ASTReader::ReadCXXCtorInitializers(ModuleFile &F, const RecordData &Record, in ReadCXXCtorInitializers() argument
7738 TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadCXXCtorInitializers()
7743 TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadCXXCtorInitializers()
7747 Member = ReadDeclAs<FieldDecl>(F, Record, Idx); in ReadCXXCtorInitializers()
7751 IndirectMember = ReadDeclAs<IndirectFieldDecl>(F, Record, Idx); in ReadCXXCtorInitializers()
7755 SourceLocation MemberOrEllipsisLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXCtorInitializers()
7756 Expr *Init = ReadExpr(F); in ReadCXXCtorInitializers()
7757 SourceLocation LParenLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXCtorInitializers()
7758 SourceLocation RParenLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXCtorInitializers()
7768 Indices.push_back(ReadDeclAs<VarDecl>(F, Record, Idx)); in ReadCXXCtorInitializers()
7809 ASTReader::ReadNestedNameSpecifier(ModuleFile &F, in ReadNestedNameSpecifier() argument
7818 IdentifierInfo *II = GetIdentifierInfo(F, Record, Idx); in ReadNestedNameSpecifier()
7824 NamespaceDecl *NS = ReadDeclAs<NamespaceDecl>(F, Record, Idx); in ReadNestedNameSpecifier()
7830 NamespaceAliasDecl *Alias =ReadDeclAs<NamespaceAliasDecl>(F, Record, Idx); in ReadNestedNameSpecifier()
7837 const Type *T = readType(F, Record, Idx).getTypePtrOrNull(); in ReadNestedNameSpecifier()
7853 CXXRecordDecl *RD = ReadDeclAs<CXXRecordDecl>(F, Record, Idx); in ReadNestedNameSpecifier()
7864 ASTReader::ReadNestedNameSpecifierLoc(ModuleFile &F, const RecordData &Record, in ReadNestedNameSpecifierLoc() argument
7873 IdentifierInfo *II = GetIdentifierInfo(F, Record, Idx); in ReadNestedNameSpecifierLoc()
7874 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
7880 NamespaceDecl *NS = ReadDeclAs<NamespaceDecl>(F, Record, Idx); in ReadNestedNameSpecifierLoc()
7881 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
7887 NamespaceAliasDecl *Alias =ReadDeclAs<NamespaceAliasDecl>(F, Record, Idx); in ReadNestedNameSpecifierLoc()
7888 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
7896 TypeSourceInfo *T = GetTypeSourceInfo(F, Record, Idx); in ReadNestedNameSpecifierLoc()
7899 SourceLocation ColonColonLoc = ReadSourceLocation(F, Record, Idx); in ReadNestedNameSpecifierLoc()
7909 SourceLocation ColonColonLoc = ReadSourceLocation(F, Record, Idx); in ReadNestedNameSpecifierLoc()
7915 CXXRecordDecl *RD = ReadDeclAs<CXXRecordDecl>(F, Record, Idx); in ReadNestedNameSpecifierLoc()
7916 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
7927 ASTReader::ReadSourceRange(ModuleFile &F, const RecordData &Record, in ReadSourceRange() argument
7929 SourceLocation beg = ReadSourceLocation(F, Record, Idx); in ReadSourceRange()
7930 SourceLocation end = ReadSourceLocation(F, Record, Idx); in ReadSourceRange()
7964 std::string ASTReader::ReadPath(ModuleFile &F, const RecordData &Record, in ReadPath() argument
7967 ResolveImportedPath(F, Filename); in ReadPath()
7983 CXXTemporary *ASTReader::ReadCXXTemporary(ModuleFile &F, in ReadCXXTemporary() argument
7986 CXXDestructorDecl *Decl = ReadDeclAs<CXXDestructorDecl>(F, Record, Idx); in ReadCXXTemporary()
8031 serialization::ModuleFile &F = *I->second; in ReadComments() local
8056 SourceRange SR = ReadSourceRange(F, Record, Idx); in ReadComments()
8073 void ASTReader::getInputFiles(ModuleFile &F, in getInputFiles() argument
8075 for (unsigned I = 0, E = F.InputFilesLoaded.size(); I != E; ++I) { in getInputFiles()
8077 Files.push_back(getInputFile(F, ID)); in getInputFiles()
8515 F = I->second.end(); in ~ASTReader() local
8516 J != F; ++J) in ~ASTReader()