Lines Matching refs:Index
1505 && "Invalid index into preprocessed entity index remap");
1740 // If there is a global index, look there first to determine which modules
2179 // All user input files reside at the index range [0, NumUserInputs), and
3411 // Try to load the global index.
3505 // If we find that any modules are unusable, the global index is going
3541 int Index = int(F.PreloadSLocEntries[I] - 1) + F.SLocEntryBaseID;
3546 SourceMgr.getLoadedSLocEntryByID(Index);
4853 PreprocessedEntity *ASTReader::ReadPreprocessedEntity(unsigned Index) {
4854 PreprocessedEntityID PPID = Index+1;
4855 std::pair<ModuleFile *, unsigned> PPInfo = getModulePreprocessedEntity(Index);
5055 /// entity with index \arg Index came from file \arg FID.
5056 Optional<bool> ASTReader::isPreprocessedEntityInFileID(unsigned Index,
5061 std::pair<ModuleFile *, unsigned> PPInfo = getModulePreprocessedEntity(Index);
5162 ASTReader::RecordLocation ASTReader::TypeCursorForIndex(unsigned Index) {
5163 GlobalTypeMapType::iterator I = GlobalTypeMap.find(Index);
5166 return RecordLocation(M, M->TypeOffsets[Index - M->BaseTypeIndex]);
5169 /// \brief Read and return the type with the given index..
5171 /// The index is the type ID, shifted and minus the number of predefs. This
5175 QualType ASTReader::readTypeRecord(unsigned Index) {
5176 RecordLocation Loc = TypeCursorForIndex(Index);
5561 unsigned Index = Record[Idx++];
5565 return Context.getTemplateTypeParmType(Depth, Index, Pack, D);
5924 unsigned Index = ID >> Qualifiers::FastWidth;
5926 if (Index < NUM_PREDEF_TYPE_IDS) {
5928 switch ((PredefinedTypeIDs)Index) {
6107 Index -= NUM_PREDEF_TYPE_IDS;
6108 assert(Index < TypesLoaded.size() && "Type index out-of-range");
6109 if (TypesLoaded[Index].isNull()) {
6110 TypesLoaded[Index] = readTypeRecord(Index);
6111 if (TypesLoaded[Index].isNull())
6114 TypesLoaded[Index]->setFromAST();
6117 TypesLoaded[Index]);
6120 return TypesLoaded[Index].withFastQualifiers(FastQuals);
6137 assert(I != F.TypeRemap.end() && "Invalid index into type index remap");
6147 unsigned &Index) {
6152 return GetTypeSourceInfo(F, Record, Index);
6155 Index);
6156 SourceLocation TemplateNameLoc = ReadSourceLocation(F, Record, Index);
6162 Index);
6163 SourceLocation TemplateNameLoc = ReadSourceLocation(F, Record, Index);
6164 SourceLocation EllipsisLoc = ReadSourceLocation(F, Record, Index);
6181 const RecordData &Record, unsigned &Index) {
6182 TemplateArgument Arg = ReadTemplateArgument(F, Record, Index);
6185 if (Record[Index++]) // bool InfoHasSameExpr.
6189 Record, Index));
6195 unsigned &Index) {
6196 SourceLocation LAngleLoc = ReadSourceLocation(F, Record, Index);
6197 SourceLocation RAngleLoc = ReadSourceLocation(F, Record, Index);
6198 unsigned NumArgsAsWritten = Record[Index++];
6201 TemplArgsInfo.addArgument(ReadTemplateArgumentLoc(F, Record, Index));
6341 assert(I != F.DeclRemap.end() && "Invalid index into decl index remap");
6368 unsigned Index = ID - NUM_PREDEF_DECL_IDS;
6370 if (Index > DeclsLoaded.size()) {
6375 if (Decl *D = DeclsLoaded[Index])
6443 unsigned Index = ID - NUM_PREDEF_DECL_IDS;
6445 if (Index >= DeclsLoaded.size()) {
6451 return DeclsLoaded[Index];
6458 unsigned Index = ID - NUM_PREDEF_DECL_IDS;
6460 if (Index >= DeclsLoaded.size()) {
6466 if (!DeclsLoaded[Index]) {
6469 DeserializationListener->DeclRead(ID, DeclsLoaded[Index]);
6472 return DeclsLoaded[Index];
6973 // If there is a global index, look there first to determine which modules
6998 /// \brief The current index into the chain of AST files stored in
7000 unsigned Index;
7018 : Reader(Reader), Index(Reader.ModuleMgr.size() - 1) {
7020 = (ASTIdentifierLookupTable *)Reader.ModuleMgr[Index].IdentifierLookupTable;
7028 if (Index == 0)
7031 --Index;
7033 = (ASTIdentifierLookupTable *)Reader.ModuleMgr[Index].
7420 unsigned Index = ID - M->BaseIdentifierID;
7421 const char *Str = M->IdentifierTableData + M->IdentifierOffsets[Index];
7451 && "Invalid index into identifier index remap");
7471 unsigned Index = ID - M->BaseMacroID;
7472 MacrosLoaded[ID] = ReadMacroRecord(*M, M->MacroOffsets[Index]);
7488 assert(I != M.MacroRemap.end() && "Invalid index into macro index remap");
7501 && "Invalid index into submodule index remap");
7530 // It's a prefix (preamble, PCH, ...). Look it up by index.
7615 && "Invalid index into selector index remap");