Lines Matching refs:Record
924 RecordData Record; in ReadDeclContextStorage() local
928 unsigned RecCode = Cursor.ReadRecord(Code, Record, &Blob, &BlobLen); in ReadDeclContextStorage()
945 RecordData Record; in ReadDeclContextStorage() local
949 unsigned RecCode = Cursor.ReadRecord(Code, Record, &Blob, &BlobLen); in ReadDeclContextStorage()
956 (const unsigned char *)Blob + Record[0], in ReadDeclContextStorage()
995 llvm::SmallVectorImpl<uint64_t> &Record) { in ParseLineTable() argument
1001 for (int I = 0, N = Record[Idx++]; I != N; ++I) { in ParseLineTable()
1003 unsigned FilenameLen = Record[Idx++]; in ParseLineTable()
1004 std::string Filename(&Record[Idx], &Record[Idx] + FilenameLen); in ParseLineTable()
1012 while (Idx < Record.size()) { in ParseLineTable()
1013 int FID = Record[Idx++]; in ParseLineTable()
1019 unsigned NumEntries = Record[Idx++]; in ParseLineTable()
1024 unsigned FileOffset = Record[Idx++]; in ParseLineTable()
1025 unsigned LineNo = Record[Idx++]; in ParseLineTable()
1026 int FilenameID = FileIDs[Record[Idx++]]; in ParseLineTable()
1028 = (SrcMgr::CharacteristicKind)Record[Idx++]; in ParseLineTable()
1029 unsigned IncludeOffset = Record[Idx++]; in ParseLineTable()
1161 RecordData Record; in ReadSourceManagerBlock() local
1190 Record.clear(); in ReadSourceManagerBlock()
1191 switch (SLocEntryCursor.ReadRecord(Code, Record, &BlobStart, &BlobLen)) { in ReadSourceManagerBlock()
1261 RecordData Record; in ReadSLocEntryRecord() local
1264 switch (SLocEntryCursor.ReadRecord(Code, Record, &BlobStart, &BlobLen)) { in ReadSLocEntryRecord()
1282 File = FileMgr.getVirtualFile(Filename, (off_t)Record[4], in ReadSLocEntryRecord()
1283 (time_t)Record[5]); in ReadSLocEntryRecord()
1292 if (Record.size() < 6) { in ReadSLocEntryRecord()
1298 ((off_t)Record[4] != File->getSize() in ReadSLocEntryRecord()
1303 || (time_t)Record[5] != File->getModificationTime() in ReadSLocEntryRecord()
1310 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntryRecord()
1316 (SrcMgr::CharacteristicKind)Record[2], in ReadSLocEntryRecord()
1317 ID, BaseOffset + Record[0]); in ReadSLocEntryRecord()
1318 if (Record[3]) in ReadSLocEntryRecord()
1327 unsigned Offset = Record[0]; in ReadSLocEntryRecord()
1329 Record.clear(); in ReadSLocEntryRecord()
1331 = SLocEntryCursor.ReadRecord(Code, Record, &BlobStart, &BlobLen); in ReadSLocEntryRecord()
1356 SourceLocation SpellingLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntryRecord()
1358 ReadSourceLocation(*F, Record[2]), in ReadSLocEntryRecord()
1359 ReadSourceLocation(*F, Record[3]), in ReadSLocEntryRecord()
1360 Record[4], in ReadSLocEntryRecord()
1362 BaseOffset + Record[0]); in ReadSLocEntryRecord()
1419 RecordData Record; in ReadMacroRecord() local
1447 Record.clear(); in ReadMacroRecord()
1449 (PreprocessorRecordTypes)Stream.ReadRecord(Code, Record, BlobStart, in ReadMacroRecord()
1460 IdentifierInfo *II = DecodeIdentifierInfo(Record[0]); in ReadMacroRecord()
1465 SourceLocation Loc = ReadSourceLocation(F, Record[1]); in ReadMacroRecord()
1466 bool isUsed = Record[2]; in ReadMacroRecord()
1475 bool isC99VarArgs = Record[3]; in ReadMacroRecord()
1476 bool isGNUVarArgs = Record[4]; in ReadMacroRecord()
1478 unsigned NumArgs = Record[5]; in ReadMacroRecord()
1481 MacroArgs.push_back(DecodeIdentifierInfo(Record[6+i])); in ReadMacroRecord()
1498 if (NextIndex + 1 == Record.size() && PP->getPreprocessingRecord()) { in ReadMacroRecord()
1501 getMacroDefinition(Record[NextIndex])); in ReadMacroRecord()
1515 Tok.setLocation(ReadSourceLocation(F, Record[0])); in ReadMacroRecord()
1516 Tok.setLength(Record[1]); in ReadMacroRecord()
1517 if (IdentifierInfo *II = DecodeIdentifierInfo(Record[2])) in ReadMacroRecord()
1519 Tok.setKind((tok::TokenKind)Record[3]); in ReadMacroRecord()
1520 Tok.setFlag((Token::TokenFlags)Record[4]); in ReadMacroRecord()
1558 RecordData Record; in LoadPreprocessedEntity() local
1561 Code, Record, BlobStart, BlobLen); in LoadPreprocessedEntity()
1564 if (PreprocessedEntity *PE = PPRec.getPreprocessedEntity(Record[0])) in LoadPreprocessedEntity()
1568 new (PPRec) MacroExpansion(DecodeIdentifierInfo(Record[3]), in LoadPreprocessedEntity()
1569 SourceRange(ReadSourceLocation(F, Record[1]), in LoadPreprocessedEntity()
1570 ReadSourceLocation(F, Record[2])), in LoadPreprocessedEntity()
1571 getMacroDefinition(Record[4])); in LoadPreprocessedEntity()
1572 PPRec.SetPreallocatedEntity(Record[0], ME); in LoadPreprocessedEntity()
1577 if (PreprocessedEntity *PE = PPRec.getPreprocessedEntity(Record[0])) in LoadPreprocessedEntity()
1580 if (Record[1] > MacroDefinitionsLoaded.size()) { in LoadPreprocessedEntity()
1587 IdentifierInfo *II = DecodeIdentifierInfo(Record[4]); in LoadPreprocessedEntity()
1588 if (!MacroDefinitionsLoaded[Record[1] - 1]) { in LoadPreprocessedEntity()
1591 ReadSourceLocation(F, Record[5]), in LoadPreprocessedEntity()
1593 ReadSourceLocation(F, Record[2]), in LoadPreprocessedEntity()
1594 ReadSourceLocation(F, Record[3]))); in LoadPreprocessedEntity()
1596 PPRec.SetPreallocatedEntity(Record[0], MD); in LoadPreprocessedEntity()
1597 MacroDefinitionsLoaded[Record[1] - 1] = MD; in LoadPreprocessedEntity()
1600 DeserializationListener->MacroDefinitionRead(Record[1], MD); in LoadPreprocessedEntity()
1603 return MacroDefinitionsLoaded[Record[1] - 1]; in LoadPreprocessedEntity()
1607 if (PreprocessedEntity *PE = PPRec.getPreprocessedEntity(Record[0])) in LoadPreprocessedEntity()
1610 const char *FullFileNameStart = BlobStart + Record[3]; in LoadPreprocessedEntity()
1613 BlobLen - Record[3])); in LoadPreprocessedEntity()
1617 = static_cast<InclusionDirective::InclusionKind>(Record[5]); in LoadPreprocessedEntity()
1620 llvm::StringRef(BlobStart, Record[3]), in LoadPreprocessedEntity()
1621 Record[4], in LoadPreprocessedEntity()
1623 SourceRange(ReadSourceLocation(F, Record[1]), in LoadPreprocessedEntity()
1624 ReadSourceLocation(F, Record[2]))); in LoadPreprocessedEntity()
1625 PPRec.SetPreallocatedEntity(Record[0], ID); in LoadPreprocessedEntity()
1756 RecordData Record; in ReadDefinedMacros() local
1780 Record.clear(); in ReadDefinedMacros()
1781 switch (Cursor.ReadRecord(Code, Record, &BlobStart, &BlobLen)) { in ReadDefinedMacros()
1787 DecodeIdentifierInfo(Record[0]); in ReadDefinedMacros()
1899 RecordData Record; in ReadASTBlock() local
1984 Record.clear(); in ReadASTBlock()
1987 switch ((ASTRecordTypes)Stream.ReadRecord(Code, Record, in ReadASTBlock()
1993 if (Record[0] != VERSION_MAJOR && !DisableValidation) { in ReadASTBlock()
1994 Diag(Record[0] < VERSION_MAJOR? diag::warn_pch_version_too_old in ReadASTBlock()
1999 RelocatablePCH = Record[4]; in ReadASTBlock()
2013 if (Record[0] != VERSION_MAJOR && !DisableValidation) { in ReadASTBlock()
2014 Diag(Record[0] < VERSION_MAJOR? diag::warn_pch_version_too_old in ReadASTBlock()
2035 F.LocalNumTypes = Record[0]; in ReadASTBlock()
2044 F.LocalNumDecls = Record[0]; in ReadASTBlock()
2066 serialization::DeclID ID = Record[0]; in ReadASTBlock()
2068 (const unsigned char *)BlobStart + Record[1], in ReadASTBlock()
2082 assert(Record.size() % 2 == 0 && "Expected pairs of DeclIDs"); in ReadASTBlock()
2083 for (unsigned i = 0, e = Record.size(); i < e; i += 2) { in ReadASTBlock()
2084 DeclID First = Record[i], Latest = Record[i+1]; in ReadASTBlock()
2094 if (ParseLanguageOptions(Record) && !DisableValidation) in ReadASTBlock()
2100 if (Record[0]) { in ReadASTBlock()
2103 (const unsigned char *)F.IdentifierTableData + Record[0], in ReadASTBlock()
2117 F.LocalNumIdentifiers = Record[0]; in ReadASTBlock()
2131 ExternalDefinitions.swap(Record); in ReadASTBlock()
2134 Record.begin(), Record.end()); in ReadASTBlock()
2140 SpecialTypes.swap(Record); in ReadASTBlock()
2142 SpecialTypes.insert(SpecialTypes.end(), Record.begin(), Record.end()); in ReadASTBlock()
2146 TotalNumStatements += Record[0]; in ReadASTBlock()
2147 TotalNumMacros += Record[1]; in ReadASTBlock()
2148 TotalLexicalDeclContexts += Record[2]; in ReadASTBlock()
2149 TotalVisibleDeclContexts += Record[3]; in ReadASTBlock()
2155 UnusedFileScopedDecls.swap(Record); in ReadASTBlock()
2158 Record.begin(), Record.end()); in ReadASTBlock()
2164 DelegatingCtorDecls.swap(Record); in ReadASTBlock()
2167 Record.begin(), Record.end()); in ReadASTBlock()
2172 WeakUndeclaredIdentifiers.swap(Record); in ReadASTBlock()
2178 LocallyScopedExternalDecls.swap(Record); in ReadASTBlock()
2181 Record.begin(), Record.end()); in ReadASTBlock()
2186 F.LocalNumSelectors = Record[0]; in ReadASTBlock()
2199 if (Record[0]) in ReadASTBlock()
2202 F.SelectorLookupTableData + Record[0], in ReadASTBlock()
2205 TotalNumMethodPoolEntries += Record[1]; in ReadASTBlock()
2209 F.ReferencedSelectorsData.swap(Record); in ReadASTBlock()
2213 if (!Record.empty() && Listener) in ReadASTBlock()
2214 Listener->ReadCounter(Record[0]); in ReadASTBlock()
2219 F.LocalNumSLocEntries = Record[0]; in ReadASTBlock()
2221 SourceMgr.AllocateLoadedSLocEntries(F.LocalNumSLocEntries, Record[1]); in ReadASTBlock()
2262 if (ParseLineTable(F, Record)) in ReadASTBlock()
2268 F.LocalNumSLocFileEntries = Record[0]; in ReadASTBlock()
2274 PreloadSLocEntries.reserve(PreloadSLocEntries.size() + Record.size()); in ReadASTBlock()
2275 for (unsigned I = 0, N = Record.size(); I != N; ++I) in ReadASTBlock()
2276 PreloadSLocEntries.push_back(int(Record[I] - 1) + F.SLocEntryBaseID); in ReadASTBlock()
2283 new ASTStatCache((const unsigned char *)BlobStart + Record[0], in ReadASTBlock()
2295 ExtVectorDecls.swap(Record); in ReadASTBlock()
2298 Record.begin(), Record.end()); in ReadASTBlock()
2303 VTableUses.swap(Record); in ReadASTBlock()
2309 DynamicClasses.swap(Record); in ReadASTBlock()
2312 Record.begin(), Record.end()); in ReadASTBlock()
2316 F.PendingInstantiations.swap(Record); in ReadASTBlock()
2321 SemaDeclRefs.swap(Record); in ReadASTBlock()
2333 OriginalFileID = FileID::get(Record[0]); in ReadASTBlock()
2354 F.NumPreallocatedPreprocessingEntities = Record[0]; in ReadASTBlock()
2355 F.LocalNumMacroDefinitions = Record[1]; in ReadASTBlock()
2369 if (Record.size() % 2 != 0) { in ReadASTBlock()
2373 for (unsigned I = 0, N = Record.size(); I != N; I += 2) in ReadASTBlock()
2374 DeclUpdateOffsets[static_cast<DeclID>(Record[I])] in ReadASTBlock()
2375 .push_back(std::make_pair(&F, Record[I+1])); in ReadASTBlock()
2380 if (Record.size() % 2 != 0) { in ReadASTBlock()
2384 for (unsigned I = 0, N = Record.size(); I != N; I += 2) in ReadASTBlock()
2385 ReplacedDecls[static_cast<DeclID>(Record[I])] = in ReadASTBlock()
2386 std::make_pair(&F, Record[I+1]); in ReadASTBlock()
2396 F.LocalNumCXXBaseSpecifiers = Record[0]; in ReadASTBlock()
2402 if (Record.size() % 2 != 0) { in ReadASTBlock()
2408 F.PragmaDiagMappings.swap(Record); in ReadASTBlock()
2411 Record.begin(), Record.end()); in ReadASTBlock()
2416 CUDASpecialDeclRefs.swap(Record); in ReadASTBlock()
2421 F.LocalNumHeaderFileInfos = Record[1]; in ReadASTBlock()
2422 if (Record[0]) { in ReadASTBlock()
2425 (const unsigned char *)F.HeaderFileInfoTableData + Record[0], in ReadASTBlock()
2434 FPPragmaOptions.swap(Record); in ReadASTBlock()
2439 OpenCLExtensions.swap(Record); in ReadASTBlock()
2445 TentativeDefinitions.swap(Record); in ReadASTBlock()
2448 Record.begin(), Record.end()); in ReadASTBlock()
2454 KnownNamespaces.swap(Record); in ReadASTBlock()
2457 Record.begin(), Record.end()); in ReadASTBlock()
2481 RecordData Record; in validateFileEntries() local
2484 switch (SLocEntryCursor.ReadRecord(Code, Record, &BlobStart, &BlobLen)) { in validateFileEntries()
2501 if (Record.size() < 6) { in validateFileEntries()
2514 if (((off_t)Record[4] != StatBuf.st_size in validateFileEntries()
2519 || (time_t)Record[5] != StatBuf.st_mtime in validateFileEntries()
2932 RecordData Record; in getOriginalSourceFile() local
2971 Record.clear(); in getOriginalSourceFile()
2974 if (Stream.ReadRecord(Code, Record, &BlobStart, &BlobLen) in getOriginalSourceFile()
2990 const llvm::SmallVectorImpl<uint64_t> &Record) { in ParseLanguageOptions() argument
2995 LangOpts.Option = Record[Idx]; \ in ParseLanguageOptions()
3040 Record[Idx++]); in ParseLanguageOptions()
3053 LangOpts.setGCMode((LangOptions::GCMode)Record[Idx++]); in ParseLanguageOptions()
3054 LangOpts.setVisibilityMode((Visibility)Record[Idx++]); in ParseLanguageOptions()
3056 Record[Idx++]); in ParseLanguageOptions()
3191 RecordData Record; in ReadTypeRecord() local
3193 switch ((TypeCode)DeclsCursor.ReadRecord(Code, Record)) { in ReadTypeRecord()
3195 if (Record.size() != 2) { in ReadTypeRecord()
3199 QualType Base = GetType(Record[0]); in ReadTypeRecord()
3200 Qualifiers Quals = Qualifiers::fromOpaqueValue(Record[1]); in ReadTypeRecord()
3205 if (Record.size() != 1) { in ReadTypeRecord()
3209 QualType ElemType = GetType(Record[0]); in ReadTypeRecord()
3214 if (Record.size() != 1) { in ReadTypeRecord()
3218 QualType PointeeType = GetType(Record[0]); in ReadTypeRecord()
3223 if (Record.size() != 1) { in ReadTypeRecord()
3227 QualType PointeeType = GetType(Record[0]); in ReadTypeRecord()
3232 if (Record.size() != 2) { in ReadTypeRecord()
3236 QualType PointeeType = GetType(Record[0]); in ReadTypeRecord()
3237 return Context->getLValueReferenceType(PointeeType, Record[1]); in ReadTypeRecord()
3241 if (Record.size() != 1) { in ReadTypeRecord()
3245 QualType PointeeType = GetType(Record[0]); in ReadTypeRecord()
3250 if (Record.size() != 2) { in ReadTypeRecord()
3254 QualType PointeeType = GetType(Record[0]); in ReadTypeRecord()
3255 QualType ClassType = GetType(Record[1]); in ReadTypeRecord()
3263 QualType ElementType = GetType(Record[0]); in ReadTypeRecord()
3264 ArrayType::ArraySizeModifier ASM = (ArrayType::ArraySizeModifier)Record[1]; in ReadTypeRecord()
3265 unsigned IndexTypeQuals = Record[2]; in ReadTypeRecord()
3267 llvm::APInt Size = ReadAPInt(Record, Idx); in ReadTypeRecord()
3273 QualType ElementType = GetType(Record[0]); in ReadTypeRecord()
3274 ArrayType::ArraySizeModifier ASM = (ArrayType::ArraySizeModifier)Record[1]; in ReadTypeRecord()
3275 unsigned IndexTypeQuals = Record[2]; in ReadTypeRecord()
3280 QualType ElementType = GetType(Record[0]); in ReadTypeRecord()
3281 ArrayType::ArraySizeModifier ASM = (ArrayType::ArraySizeModifier)Record[1]; in ReadTypeRecord()
3282 unsigned IndexTypeQuals = Record[2]; in ReadTypeRecord()
3283 SourceLocation LBLoc = ReadSourceLocation(*Loc.F, Record[3]); in ReadTypeRecord()
3284 SourceLocation RBLoc = ReadSourceLocation(*Loc.F, Record[4]); in ReadTypeRecord()
3291 if (Record.size() != 3) { in ReadTypeRecord()
3296 QualType ElementType = GetType(Record[0]); in ReadTypeRecord()
3297 unsigned NumElements = Record[1]; in ReadTypeRecord()
3298 unsigned VecKind = Record[2]; in ReadTypeRecord()
3304 if (Record.size() != 3) { in ReadTypeRecord()
3309 QualType ElementType = GetType(Record[0]); in ReadTypeRecord()
3310 unsigned NumElements = Record[1]; in ReadTypeRecord()
3315 if (Record.size() != 6) { in ReadTypeRecord()
3319 QualType ResultType = GetType(Record[0]); in ReadTypeRecord()
3320 FunctionType::ExtInfo Info(Record[1], Record[2], Record[3], in ReadTypeRecord()
3321 (CallingConv)Record[4], Record[5]); in ReadTypeRecord()
3326 QualType ResultType = GetType(Record[0]); in ReadTypeRecord()
3329 EPI.ExtInfo = FunctionType::ExtInfo(/*noreturn*/ Record[1], in ReadTypeRecord()
3330 /*hasregparm*/ Record[2], in ReadTypeRecord()
3331 /*regparm*/ Record[3], in ReadTypeRecord()
3332 static_cast<CallingConv>(Record[4]), in ReadTypeRecord()
3333 /*produces*/ Record[5]); in ReadTypeRecord()
3336 unsigned NumParams = Record[Idx++]; in ReadTypeRecord()
3339 ParamTypes.push_back(GetType(Record[Idx++])); in ReadTypeRecord()
3341 EPI.Variadic = Record[Idx++]; in ReadTypeRecord()
3342 EPI.TypeQuals = Record[Idx++]; in ReadTypeRecord()
3343 EPI.RefQualifier = static_cast<RefQualifierKind>(Record[Idx++]); in ReadTypeRecord()
3345 static_cast<ExceptionSpecificationType>(Record[Idx++]); in ReadTypeRecord()
3348 EPI.NumExceptions = Record[Idx++]; in ReadTypeRecord()
3351 Exceptions.push_back(GetType(Record[Idx++])); in ReadTypeRecord()
3362 cast<UnresolvedUsingTypenameDecl>(GetDecl(Record[0]))); in ReadTypeRecord()
3365 if (Record.size() != 2) { in ReadTypeRecord()
3369 TypedefNameDecl *Decl = cast<TypedefNameDecl>(GetDecl(Record[0])); in ReadTypeRecord()
3370 QualType Canonical = GetType(Record[1]); in ReadTypeRecord()
3380 if (Record.size() != 1) { in ReadTypeRecord()
3384 QualType UnderlyingType = GetType(Record[0]); in ReadTypeRecord()
3392 QualType BaseType = GetType(Record[0]); in ReadTypeRecord()
3393 QualType UnderlyingType = GetType(Record[1]); in ReadTypeRecord()
3394 UnaryTransformType::UTTKind UKind = (UnaryTransformType::UTTKind)Record[2]; in ReadTypeRecord()
3399 return Context->getAutoType(GetType(Record[0])); in ReadTypeRecord()
3402 if (Record.size() != 2) { in ReadTypeRecord()
3406 bool IsDependent = Record[0]; in ReadTypeRecord()
3407 QualType T = Context->getRecordType(cast<RecordDecl>(GetDecl(Record[1]))); in ReadTypeRecord()
3413 if (Record.size() != 2) { in ReadTypeRecord()
3417 bool IsDependent = Record[0]; in ReadTypeRecord()
3418 QualType T = Context->getEnumType(cast<EnumDecl>(GetDecl(Record[1]))); in ReadTypeRecord()
3424 if (Record.size() != 3) { in ReadTypeRecord()
3428 QualType modifiedType = GetType(Record[0]); in ReadTypeRecord()
3429 QualType equivalentType = GetType(Record[1]); in ReadTypeRecord()
3430 AttributedType::Kind kind = static_cast<AttributedType::Kind>(Record[2]); in ReadTypeRecord()
3435 if (Record.size() != 1) { in ReadTypeRecord()
3439 QualType InnerType = GetType(Record[0]); in ReadTypeRecord()
3444 if (Record.size() != 2) { in ReadTypeRecord()
3448 QualType Pattern = GetType(Record[0]); in ReadTypeRecord()
3452 if (Record[1]) in ReadTypeRecord()
3453 NumExpansions = Record[1] - 1; in ReadTypeRecord()
3459 ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++]; in ReadTypeRecord()
3460 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(Record, Idx); in ReadTypeRecord()
3461 QualType NamedType = GetType(Record[Idx++]); in ReadTypeRecord()
3467 ObjCInterfaceDecl *ItfD = cast<ObjCInterfaceDecl>(GetDecl(Record[Idx++])); in ReadTypeRecord()
3473 QualType Base = GetType(Record[Idx++]); in ReadTypeRecord()
3474 unsigned NumProtos = Record[Idx++]; in ReadTypeRecord()
3477 Protos.push_back(cast<ObjCProtocolDecl>(GetDecl(Record[Idx++]))); in ReadTypeRecord()
3483 QualType Pointee = GetType(Record[Idx++]); in ReadTypeRecord()
3489 QualType Parm = GetType(Record[Idx++]); in ReadTypeRecord()
3490 QualType Replacement = GetType(Record[Idx++]); in ReadTypeRecord()
3498 QualType Parm = GetType(Record[Idx++]); in ReadTypeRecord()
3499 TemplateArgument ArgPack = ReadTemplateArgument(*Loc.F, Record, Idx); in ReadTypeRecord()
3506 CXXRecordDecl *D = cast<CXXRecordDecl>(GetDecl(Record[0])); in ReadTypeRecord()
3507 QualType TST = GetType(Record[1]); // probably derivable in ReadTypeRecord()
3516 unsigned Depth = Record[Idx++]; in ReadTypeRecord()
3517 unsigned Index = Record[Idx++]; in ReadTypeRecord()
3518 bool Pack = Record[Idx++]; in ReadTypeRecord()
3520 cast_or_null<TemplateTypeParmDecl>(GetDecl(Record[Idx++])); in ReadTypeRecord()
3526 ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++]; in ReadTypeRecord()
3527 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(Record, Idx); in ReadTypeRecord()
3528 const IdentifierInfo *Name = this->GetIdentifierInfo(Record, Idx); in ReadTypeRecord()
3529 QualType Canon = GetType(Record[Idx++]); in ReadTypeRecord()
3537 ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++]; in ReadTypeRecord()
3538 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(Record, Idx); in ReadTypeRecord()
3539 const IdentifierInfo *Name = this->GetIdentifierInfo(Record, Idx); in ReadTypeRecord()
3540 unsigned NumArgs = Record[Idx++]; in ReadTypeRecord()
3544 Args.push_back(ReadTemplateArgument(*Loc.F, Record, Idx)); in ReadTypeRecord()
3553 QualType ElementType = GetType(Record[Idx++]); in ReadTypeRecord()
3555 = (ArrayType::ArraySizeModifier)Record[Idx++]; in ReadTypeRecord()
3556 unsigned IndexTypeQuals = Record[Idx++]; in ReadTypeRecord()
3560 SourceRange Brackets = ReadSourceRange(*Loc.F, Record, Idx); in ReadTypeRecord()
3568 bool IsDependent = Record[Idx++]; in ReadTypeRecord()
3569 TemplateName Name = ReadTemplateName(*Loc.F, Record, Idx); in ReadTypeRecord()
3571 ReadTemplateArgumentList(Args, *Loc.F, Record, Idx); in ReadTypeRecord()
3572 QualType Underlying = GetType(Record[Idx++]); in ReadTypeRecord()
3592 const ASTReader::RecordData &Record; member in clang::TypeLocReader
3602 const ASTReader::RecordData &Record, unsigned &Idx) in TypeLocReader() argument
3603 : Reader(Reader), F(F), DeclsCursor(F.DeclsCursor), Record(Record), Idx(Idx) in TypeLocReader()
3622 TL.setBuiltinLoc(ReadSourceLocation(Record, Idx)); in VisitBuiltinTypeLoc()
3624 TL.setWrittenTypeSpec(static_cast<DeclSpec::TST>(Record[Idx++])); in VisitBuiltinTypeLoc()
3625 TL.setWrittenSignSpec(static_cast<DeclSpec::TSS>(Record[Idx++])); in VisitBuiltinTypeLoc()
3626 TL.setWrittenWidthSpec(static_cast<DeclSpec::TSW>(Record[Idx++])); in VisitBuiltinTypeLoc()
3627 TL.setModeAttr(Record[Idx++]); in VisitBuiltinTypeLoc()
3631 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitComplexTypeLoc()
3634 TL.setStarLoc(ReadSourceLocation(Record, Idx)); in VisitPointerTypeLoc()
3637 TL.setCaretLoc(ReadSourceLocation(Record, Idx)); in VisitBlockPointerTypeLoc()
3640 TL.setAmpLoc(ReadSourceLocation(Record, Idx)); in VisitLValueReferenceTypeLoc()
3643 TL.setAmpAmpLoc(ReadSourceLocation(Record, Idx)); in VisitRValueReferenceTypeLoc()
3646 TL.setStarLoc(ReadSourceLocation(Record, Idx)); in VisitMemberPointerTypeLoc()
3647 TL.setClassTInfo(Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitMemberPointerTypeLoc()
3650 TL.setLBracketLoc(ReadSourceLocation(Record, Idx)); in VisitArrayTypeLoc()
3651 TL.setRBracketLoc(ReadSourceLocation(Record, Idx)); in VisitArrayTypeLoc()
3652 if (Record[Idx++]) in VisitArrayTypeLoc()
3672 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitDependentSizedExtVectorTypeLoc()
3675 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitVectorTypeLoc()
3678 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitExtVectorTypeLoc()
3681 TL.setLocalRangeBegin(ReadSourceLocation(Record, Idx)); in VisitFunctionTypeLoc()
3682 TL.setLocalRangeEnd(ReadSourceLocation(Record, Idx)); in VisitFunctionTypeLoc()
3683 TL.setTrailingReturn(Record[Idx++]); in VisitFunctionTypeLoc()
3685 TL.setArg(i, cast_or_null<ParmVarDecl>(Reader.GetDecl(Record[Idx++]))); in VisitFunctionTypeLoc()
3695 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitUnresolvedUsingTypeLoc()
3698 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitTypedefTypeLoc()
3701 TL.setTypeofLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfExprTypeLoc()
3702 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfExprTypeLoc()
3703 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfExprTypeLoc()
3706 TL.setTypeofLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfTypeLoc()
3707 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfTypeLoc()
3708 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfTypeLoc()
3709 TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitTypeOfTypeLoc()
3712 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitDecltypeTypeLoc()
3715 TL.setKWLoc(ReadSourceLocation(Record, Idx)); in VisitUnaryTransformTypeLoc()
3716 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitUnaryTransformTypeLoc()
3717 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitUnaryTransformTypeLoc()
3718 TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitUnaryTransformTypeLoc()
3721 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitAutoTypeLoc()
3724 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitRecordTypeLoc()
3727 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitEnumTypeLoc()
3730 TL.setAttrNameLoc(ReadSourceLocation(Record, Idx)); in VisitAttributedTypeLoc()
3733 range.setBegin(ReadSourceLocation(Record, Idx)); in VisitAttributedTypeLoc()
3734 range.setEnd(ReadSourceLocation(Record, Idx)); in VisitAttributedTypeLoc()
3738 if (Record[Idx++]) in VisitAttributedTypeLoc()
3743 TL.setAttrEnumOperandLoc(ReadSourceLocation(Record, Idx)); in VisitAttributedTypeLoc()
3746 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateTypeParmTypeLoc()
3750 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitSubstTemplateTypeParmTypeLoc()
3754 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitSubstTemplateTypeParmPackTypeLoc()
3758 TL.setTemplateNameLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateSpecializationTypeLoc()
3759 TL.setLAngleLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateSpecializationTypeLoc()
3760 TL.setRAngleLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateSpecializationTypeLoc()
3765 Record, Idx)); in VisitTemplateSpecializationTypeLoc()
3768 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitParenTypeLoc()
3769 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitParenTypeLoc()
3772 TL.setKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitElaboratedTypeLoc()
3773 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitElaboratedTypeLoc()
3776 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitInjectedClassNameTypeLoc()
3779 TL.setKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitDependentNameTypeLoc()
3780 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitDependentNameTypeLoc()
3781 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitDependentNameTypeLoc()
3785 TL.setKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
3786 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
3787 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
3788 TL.setLAngleLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
3789 TL.setRAngleLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
3794 Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
3797 TL.setEllipsisLoc(ReadSourceLocation(Record, Idx)); in VisitPackExpansionTypeLoc()
3800 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitObjCInterfaceTypeLoc()
3803 TL.setHasBaseTypeAsWritten(Record[Idx++]); in VisitObjCObjectTypeLoc()
3804 TL.setLAngleLoc(ReadSourceLocation(Record, Idx)); in VisitObjCObjectTypeLoc()
3805 TL.setRAngleLoc(ReadSourceLocation(Record, Idx)); in VisitObjCObjectTypeLoc()
3807 TL.setProtocolLoc(i, ReadSourceLocation(Record, Idx)); in VisitObjCObjectTypeLoc()
3810 TL.setStarLoc(ReadSourceLocation(Record, Idx)); in VisitObjCObjectPointerTypeLoc()
3814 const RecordData &Record, in GetTypeSourceInfo() argument
3816 QualType InfoTy = GetType(Record[Idx++]); in GetTypeSourceInfo()
3821 TypeLocReader TLR(*this, F, Record, Idx); in GetTypeSourceInfo()
3925 const RecordData &Record, in GetTemplateArgumentLocInfo() argument
3931 return GetTypeSourceInfo(F, Record, Index); in GetTemplateArgumentLocInfo()
3933 NestedNameSpecifierLoc QualifierLoc = ReadNestedNameSpecifierLoc(F, Record, in GetTemplateArgumentLocInfo()
3935 SourceLocation TemplateNameLoc = ReadSourceLocation(F, Record, Index); in GetTemplateArgumentLocInfo()
3940 NestedNameSpecifierLoc QualifierLoc = ReadNestedNameSpecifierLoc(F, Record, in GetTemplateArgumentLocInfo()
3942 SourceLocation TemplateNameLoc = ReadSourceLocation(F, Record, Index); in GetTemplateArgumentLocInfo()
3943 SourceLocation EllipsisLoc = ReadSourceLocation(F, Record, Index); in GetTemplateArgumentLocInfo()
3959 const RecordData &Record, unsigned &Index) { in ReadTemplateArgumentLoc() argument
3960 TemplateArgument Arg = ReadTemplateArgument(F, Record, Index); in ReadTemplateArgumentLoc()
3963 if (Record[Index++]) // bool InfoHasSameExpr. in ReadTemplateArgumentLoc()
3967 Record, Index)); in ReadTemplateArgumentLoc()
4016 RecordData Record; in GetExternalCXXBaseSpecifiers() local
4018 unsigned RecCode = Cursor.ReadRecord(Code, Record); in GetExternalCXXBaseSpecifiers()
4025 unsigned NumBases = Record[Idx++]; in GetExternalCXXBaseSpecifiers()
4029 Bases[I] = ReadCXXBaseSpecifier(*F, Record, Idx); in GetExternalCXXBaseSpecifiers()
4680 ASTReader::ReadDeclarationName(const RecordData &Record, unsigned &Idx) { in ReadDeclarationName() argument
4681 DeclarationName::NameKind Kind = (DeclarationName::NameKind)Record[Idx++]; in ReadDeclarationName()
4684 return DeclarationName(GetIdentifierInfo(Record, Idx)); in ReadDeclarationName()
4689 return DeclarationName(GetSelector(Record, Idx)); in ReadDeclarationName()
4693 Context->getCanonicalType(GetType(Record[Idx++]))); in ReadDeclarationName()
4697 Context->getCanonicalType(GetType(Record[Idx++]))); in ReadDeclarationName()
4701 Context->getCanonicalType(GetType(Record[Idx++]))); in ReadDeclarationName()
4705 (OverloadedOperatorKind)Record[Idx++]); in ReadDeclarationName()
4709 GetIdentifierInfo(Record, Idx)); in ReadDeclarationName()
4722 const RecordData &Record, unsigned &Idx) { in ReadDeclarationNameLoc() argument
4727 DNLoc.NamedType.TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadDeclarationNameLoc()
4732 = ReadSourceLocation(F, Record, Idx).getRawEncoding(); in ReadDeclarationNameLoc()
4734 = ReadSourceLocation(F, Record, Idx).getRawEncoding(); in ReadDeclarationNameLoc()
4739 = ReadSourceLocation(F, Record, Idx).getRawEncoding(); in ReadDeclarationNameLoc()
4753 const RecordData &Record, unsigned &Idx) { in ReadDeclarationNameInfo() argument
4754 NameInfo.setName(ReadDeclarationName(Record, Idx)); in ReadDeclarationNameInfo()
4755 NameInfo.setLoc(ReadSourceLocation(F, Record, Idx)); in ReadDeclarationNameInfo()
4757 ReadDeclarationNameLoc(F, DNLoc, NameInfo.getName(), Record, Idx); in ReadDeclarationNameInfo()
4762 const RecordData &Record, unsigned &Idx) { in ReadQualifierInfo() argument
4763 Info.QualifierLoc = ReadNestedNameSpecifierLoc(F, Record, Idx); in ReadQualifierInfo()
4764 unsigned NumTPLists = Record[Idx++]; in ReadQualifierInfo()
4769 Info.TemplParamLists[i] = ReadTemplateParameterList(F, Record, Idx); in ReadQualifierInfo()
4774 ASTReader::ReadTemplateName(PerFileData &F, const RecordData &Record, in ReadTemplateName() argument
4776 TemplateName::NameKind Kind = (TemplateName::NameKind)Record[Idx++]; in ReadTemplateName()
4779 return TemplateName(cast_or_null<TemplateDecl>(GetDecl(Record[Idx++]))); in ReadTemplateName()
4782 unsigned size = Record[Idx++]; in ReadTemplateName()
4785 Decls.addDecl(cast<NamedDecl>(GetDecl(Record[Idx++]))); in ReadTemplateName()
4791 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(Record, Idx); in ReadTemplateName()
4792 bool hasTemplKeyword = Record[Idx++]; in ReadTemplateName()
4793 TemplateDecl *Template = cast<TemplateDecl>(GetDecl(Record[Idx++])); in ReadTemplateName()
4798 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(Record, Idx); in ReadTemplateName()
4799 if (Record[Idx++]) // isIdentifier in ReadTemplateName()
4801 GetIdentifierInfo(Record, Idx)); in ReadTemplateName()
4803 (OverloadedOperatorKind)Record[Idx++]); in ReadTemplateName()
4808 = cast_or_null<TemplateTemplateParmDecl>(GetDecl(Record[Idx++])); in ReadTemplateName()
4810 TemplateName replacement = ReadTemplateName(F, Record, Idx); in ReadTemplateName()
4816 = cast_or_null<TemplateTemplateParmDecl>(GetDecl(Record[Idx++])); in ReadTemplateName()
4820 TemplateArgument ArgPack = ReadTemplateArgument(F, Record, Idx); in ReadTemplateName()
4834 const RecordData &Record, unsigned &Idx) { in ReadTemplateArgument() argument
4835 TemplateArgument::ArgKind Kind = (TemplateArgument::ArgKind)Record[Idx++]; in ReadTemplateArgument()
4840 return TemplateArgument(GetType(Record[Idx++])); in ReadTemplateArgument()
4842 return TemplateArgument(GetDecl(Record[Idx++])); in ReadTemplateArgument()
4844 llvm::APSInt Value = ReadAPSInt(Record, Idx); in ReadTemplateArgument()
4845 QualType T = GetType(Record[Idx++]); in ReadTemplateArgument()
4849 return TemplateArgument(ReadTemplateName(F, Record, Idx)); in ReadTemplateArgument()
4851 TemplateName Name = ReadTemplateName(F, Record, Idx); in ReadTemplateArgument()
4853 if (unsigned NumExpansions = Record[Idx++]) in ReadTemplateArgument()
4860 unsigned NumArgs = Record[Idx++]; in ReadTemplateArgument()
4863 Args[I] = ReadTemplateArgument(F, Record, Idx); in ReadTemplateArgument()
4874 const RecordData &Record, unsigned &Idx) { in ReadTemplateParameterList() argument
4875 SourceLocation TemplateLoc = ReadSourceLocation(F, Record, Idx); in ReadTemplateParameterList()
4876 SourceLocation LAngleLoc = ReadSourceLocation(F, Record, Idx); in ReadTemplateParameterList()
4877 SourceLocation RAngleLoc = ReadSourceLocation(F, Record, Idx); in ReadTemplateParameterList()
4879 unsigned NumParams = Record[Idx++]; in ReadTemplateParameterList()
4883 Params.push_back(cast<NamedDecl>(GetDecl(Record[Idx++]))); in ReadTemplateParameterList()
4894 PerFileData &F, const RecordData &Record, in ReadTemplateArgumentList() argument
4896 unsigned NumTemplateArgs = Record[Idx++]; in ReadTemplateArgumentList()
4899 TemplArgs.push_back(ReadTemplateArgument(F, Record, Idx)); in ReadTemplateArgumentList()
4904 const RecordData &Record, unsigned &Idx) { in ReadUnresolvedSet() argument
4905 unsigned NumDecls = Record[Idx++]; in ReadUnresolvedSet()
4907 NamedDecl *D = cast<NamedDecl>(GetDecl(Record[Idx++])); in ReadUnresolvedSet()
4908 AccessSpecifier AS = (AccessSpecifier)Record[Idx++]; in ReadUnresolvedSet()
4915 const RecordData &Record, unsigned &Idx) { in ReadCXXBaseSpecifier() argument
4916 bool isVirtual = static_cast<bool>(Record[Idx++]); in ReadCXXBaseSpecifier()
4917 bool isBaseOfClass = static_cast<bool>(Record[Idx++]); in ReadCXXBaseSpecifier()
4918 AccessSpecifier AS = static_cast<AccessSpecifier>(Record[Idx++]); in ReadCXXBaseSpecifier()
4919 bool inheritConstructors = static_cast<bool>(Record[Idx++]); in ReadCXXBaseSpecifier()
4920 TypeSourceInfo *TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadCXXBaseSpecifier()
4921 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadCXXBaseSpecifier()
4922 SourceLocation EllipsisLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXBaseSpecifier()
4930 ASTReader::ReadCXXCtorInitializers(PerFileData &F, const RecordData &Record, in ReadCXXCtorInitializers() argument
4933 unsigned NumInitializers = Record[Idx++]; in ReadCXXCtorInitializers()
4946 CtorInitializerType Type = (CtorInitializerType)Record[Idx++]; in ReadCXXCtorInitializers()
4949 BaseClassInfo = GetTypeSourceInfo(F, Record, Idx); in ReadCXXCtorInitializers()
4950 IsBaseVirtual = Record[Idx++]; in ReadCXXCtorInitializers()
4954 Target = cast<CXXConstructorDecl>(GetDecl(Record[Idx++])); in ReadCXXCtorInitializers()
4958 Member = cast<FieldDecl>(GetDecl(Record[Idx++])); in ReadCXXCtorInitializers()
4962 IndirectMember = cast<IndirectFieldDecl>(GetDecl(Record[Idx++])); in ReadCXXCtorInitializers()
4966 SourceLocation MemberOrEllipsisLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXCtorInitializers()
4968 SourceLocation LParenLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXCtorInitializers()
4969 SourceLocation RParenLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXCtorInitializers()
4970 bool IsWritten = Record[Idx++]; in ReadCXXCtorInitializers()
4974 SourceOrderOrNumArrayIndices = Record[Idx++]; in ReadCXXCtorInitializers()
4976 SourceOrderOrNumArrayIndices = Record[Idx++]; in ReadCXXCtorInitializers()
4979 Indices.push_back(cast<VarDecl>(GetDecl(Record[Idx++]))); in ReadCXXCtorInitializers()
5014 ASTReader::ReadNestedNameSpecifier(const RecordData &Record, unsigned &Idx) { in ReadNestedNameSpecifier() argument
5015 unsigned N = Record[Idx++]; in ReadNestedNameSpecifier()
5019 = (NestedNameSpecifier::SpecifierKind)Record[Idx++]; in ReadNestedNameSpecifier()
5022 IdentifierInfo *II = GetIdentifierInfo(Record, Idx); in ReadNestedNameSpecifier()
5028 NamespaceDecl *NS = cast<NamespaceDecl>(GetDecl(Record[Idx++])); in ReadNestedNameSpecifier()
5035 = cast<NamespaceAliasDecl>(GetDecl(Record[Idx++])); in ReadNestedNameSpecifier()
5042 const Type *T = GetType(Record[Idx++]).getTypePtrOrNull(); in ReadNestedNameSpecifier()
5046 bool Template = Record[Idx++]; in ReadNestedNameSpecifier()
5063 ASTReader::ReadNestedNameSpecifierLoc(PerFileData &F, const RecordData &Record, in ReadNestedNameSpecifierLoc() argument
5065 unsigned N = Record[Idx++]; in ReadNestedNameSpecifierLoc()
5069 = (NestedNameSpecifier::SpecifierKind)Record[Idx++]; in ReadNestedNameSpecifierLoc()
5072 IdentifierInfo *II = GetIdentifierInfo(Record, Idx); in ReadNestedNameSpecifierLoc()
5073 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
5079 NamespaceDecl *NS = cast<NamespaceDecl>(GetDecl(Record[Idx++])); in ReadNestedNameSpecifierLoc()
5080 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
5087 = cast<NamespaceAliasDecl>(GetDecl(Record[Idx++])); in ReadNestedNameSpecifierLoc()
5088 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
5095 bool Template = Record[Idx++]; in ReadNestedNameSpecifierLoc()
5096 TypeSourceInfo *T = GetTypeSourceInfo(F, Record, Idx); in ReadNestedNameSpecifierLoc()
5099 SourceLocation ColonColonLoc = ReadSourceLocation(F, Record, Idx); in ReadNestedNameSpecifierLoc()
5109 SourceLocation ColonColonLoc = ReadSourceLocation(F, Record, Idx); in ReadNestedNameSpecifierLoc()
5120 ASTReader::ReadSourceRange(PerFileData &F, const RecordData &Record, in ReadSourceRange() argument
5122 SourceLocation beg = ReadSourceLocation(F, Record, Idx); in ReadSourceRange()
5123 SourceLocation end = ReadSourceLocation(F, Record, Idx); in ReadSourceRange()
5128 llvm::APInt ASTReader::ReadAPInt(const RecordData &Record, unsigned &Idx) { in ReadAPInt() argument
5129 unsigned BitWidth = Record[Idx++]; in ReadAPInt()
5131 llvm::APInt Result(BitWidth, NumWords, &Record[Idx]); in ReadAPInt()
5137 llvm::APSInt ASTReader::ReadAPSInt(const RecordData &Record, unsigned &Idx) { in ReadAPSInt() argument
5138 bool isUnsigned = Record[Idx++]; in ReadAPSInt()
5139 return llvm::APSInt(ReadAPInt(Record, Idx), isUnsigned); in ReadAPSInt()
5143 llvm::APFloat ASTReader::ReadAPFloat(const RecordData &Record, unsigned &Idx) { in ReadAPFloat() argument
5144 return llvm::APFloat(ReadAPInt(Record, Idx)); in ReadAPFloat()
5148 std::string ASTReader::ReadString(const RecordData &Record, unsigned &Idx) { in ReadString() argument
5149 unsigned Len = Record[Idx++]; in ReadString()
5150 std::string Result(Record.data() + Idx, Record.data() + Idx + Len); in ReadString()
5155 VersionTuple ASTReader::ReadVersionTuple(const RecordData &Record, in ReadVersionTuple() argument
5157 unsigned Major = Record[Idx++]; in ReadVersionTuple()
5158 unsigned Minor = Record[Idx++]; in ReadVersionTuple()
5159 unsigned Subminor = Record[Idx++]; in ReadVersionTuple()
5167 CXXTemporary *ASTReader::ReadCXXTemporary(const RecordData &Record, in ReadCXXTemporary() argument
5169 CXXDestructorDecl *Decl = cast<CXXDestructorDecl>(GetDecl(Record[Idx++])); in ReadCXXTemporary()