Lines Matching refs:Idx

1073   unsigned Idx = 0;  in ParseLineTable()  local
1078 for (unsigned I = 0; Record[Idx]; ++I) { in ParseLineTable()
1080 auto Filename = ReadPath(F, Record, Idx); in ParseLineTable()
1083 ++Idx; in ParseLineTable()
1087 while (Idx < Record.size()) { in ParseLineTable()
1088 int FID = Record[Idx++]; in ParseLineTable()
1094 unsigned NumEntries = Record[Idx++]; in ParseLineTable()
1099 unsigned FileOffset = Record[Idx++]; in ParseLineTable()
1100 unsigned LineNo = Record[Idx++]; in ParseLineTable()
1101 int FilenameID = FileIDs[Record[Idx++]]; in ParseLineTable()
1103 = (SrcMgr::CharacteristicKind)Record[Idx++]; in ParseLineTable()
1104 unsigned IncludeOffset = Record[Idx++]; in ParseLineTable()
1398 unsigned &Idx) { in ReadToken() argument
1401 Tok.setLocation(ReadSourceLocation(F, Record, Idx)); in ReadToken()
1402 Tok.setLength(Record[Idx++]); in ReadToken()
1403 if (IdentifierInfo *II = getLocalIdentifier(F, Record[Idx++])) in ReadToken()
1405 Tok.setKind((tok::TokenKind)Record[Idx++]); in ReadToken()
1406 Tok.setFlag((Token::TokenFlags)Record[Idx++]); in ReadToken()
1511 unsigned Idx = 0; in ReadMacroRecord() local
1512 Token Tok = ReadToken(F, Record, Idx); in ReadMacroRecord()
1869 unsigned Idx = 0, N = Record.size(); in resolvePendingMacro() local
1870 while (Idx < N) { in resolvePendingMacro()
1872 SourceLocation Loc = ReadSourceLocation(M, Record, Idx); in resolvePendingMacro()
1873 MacroDirective::Kind K = (MacroDirective::Kind)Record[Idx++]; in resolvePendingMacro()
1876 MacroInfo *MI = getMacro(getGlobalMacroID(M, Record[Idx++])); in resolvePendingMacro()
1885 bool isPublic = Record[Idx++]; in resolvePendingMacro()
2342 unsigned Idx = 0, N = Record.size(); in ReadControlBlock() local
2343 while (Idx < N) { in ReadControlBlock()
2345 ModuleKind ImportedKind = (ModuleKind)Record[Idx++]; in ReadControlBlock()
2350 ReadUntranslatedSourceLocation(Record[Idx++]); in ReadControlBlock()
2351 off_t StoredSize = (off_t)Record[Idx++]; in ReadControlBlock()
2352 time_t StoredModTime = (time_t)Record[Idx++]; in ReadControlBlock()
2353 ASTFileSignature StoredSignature = Record[Idx++]; in ReadControlBlock()
2354 auto ImportedFile = ReadPath(F, Record, Idx); in ReadControlBlock()
2635 unsigned Idx = 0; in ReadASTBlock() local
2636 serialization::DeclID ID = ReadDeclID(F, Record, Idx); in ReadASTBlock()
2793 for (unsigned Idx = 0, N = Record.size() - 1; Idx < N; /* in loop */) { in ReadASTBlock() local
2795 Record[Idx++])); in ReadASTBlock()
2796 ReferencedSelectorsData.push_back(ReadSourceLocation(F, Record, Idx). in ReadASTBlock()
2956 for (unsigned Idx = 0, N = Record.size(); Idx != N; /* In loop */) { in ReadASTBlock() local
2957 VTableUses.push_back(getGlobalDeclID(F, Record[Idx++])); in ReadASTBlock()
2959 ReadSourceLocation(F, Record, Idx).getRawEncoding()); in ReadASTBlock()
2960 VTableUses.push_back(Record[Idx++]); in ReadASTBlock()
3221 unsigned Idx = 0; in ReadModuleMapFileBlock() local
3222 F.ModuleMapPath = ReadPath(F, Record, Idx); in ReadModuleMapFileBlock()
3274 for (unsigned I = 0, N = Record[Idx++]; I < N; ++I) { in ReadModuleMapFileBlock()
3276 std::string Filename = ReadPath(F, Record, Idx); in ReadModuleMapFileBlock()
4293 unsigned Idx = 0; in readASTFileControlBlock() local
4294 auto Path = ReadString(Record, Idx); in readASTFileControlBlock()
4340 unsigned Idx = 0, N = Record.size(); in readASTFileControlBlock() local
4341 while (Idx < N) { in readASTFileControlBlock()
4343 Idx += 5; // ImportLoc, Size, ModTime, Signature in readASTFileControlBlock()
4344 std::string Filename = ReadString(Record, Idx); in readASTFileControlBlock()
4469 unsigned Idx = 0; in ReadSubmoduleBlock() local
4470 SubmoduleID GlobalID = getGlobalSubmoduleID(F, Record[Idx++]); in ReadSubmoduleBlock()
4471 SubmoduleID Parent = getGlobalSubmoduleID(F, Record[Idx++]); in ReadSubmoduleBlock()
4472 bool IsFramework = Record[Idx++]; in ReadSubmoduleBlock()
4473 bool IsExplicit = Record[Idx++]; in ReadSubmoduleBlock()
4474 bool IsSystem = Record[Idx++]; in ReadSubmoduleBlock()
4475 bool IsExternC = Record[Idx++]; in ReadSubmoduleBlock()
4476 bool InferSubmodules = Record[Idx++]; in ReadSubmoduleBlock()
4477 bool InferExplicitSubmodules = Record[Idx++]; in ReadSubmoduleBlock()
4478 bool InferExportWildcard = Record[Idx++]; in ReadSubmoduleBlock()
4479 bool ConfigMacrosExhaustive = Record[Idx++]; in ReadSubmoduleBlock()
4622 for (unsigned Idx = 0; Idx != Record.size(); ++Idx) { in ReadSubmoduleBlock() local
4626 Unresolved.ID = Record[Idx]; in ReadSubmoduleBlock()
4635 for (unsigned Idx = 0; Idx + 1 < Record.size(); Idx += 2) { in ReadSubmoduleBlock() local
4639 Unresolved.ID = Record[Idx]; in ReadSubmoduleBlock()
4641 Unresolved.IsWildcard = Record[Idx + 1]; in ReadSubmoduleBlock()
4692 unsigned Idx = 0; in ParseLanguageOptions() local
4694 LangOpts.Name = Record[Idx++]; in ParseLanguageOptions()
4696 LangOpts.set##Name(static_cast<LangOptions::Type>(Record[Idx++])); in ParseLanguageOptions()
4699 LangOpts.Sanitize.set(SanitizerKind::ID, Record[Idx++]); in ParseLanguageOptions()
4702 for (unsigned N = Record[Idx++]; N; --N) in ParseLanguageOptions()
4703 LangOpts.ModuleFeatures.push_back(ReadString(Record, Idx)); in ParseLanguageOptions()
4705 ObjCRuntime::Kind runtimeKind = (ObjCRuntime::Kind) Record[Idx++]; in ParseLanguageOptions()
4706 VersionTuple runtimeVersion = ReadVersionTuple(Record, Idx); in ParseLanguageOptions()
4709 LangOpts.CurrentModule = ReadString(Record, Idx); in ParseLanguageOptions()
4712 for (unsigned N = Record[Idx++]; N; --N) { in ParseLanguageOptions()
4714 ReadString(Record, Idx)); in ParseLanguageOptions()
4716 LangOpts.CommentOpts.ParseAllComments = Record[Idx++]; in ParseLanguageOptions()
4719 for (unsigned N = Record[Idx++]; N; --N) { in ParseLanguageOptions()
4720 LangOpts.OMPTargetTriples.push_back(llvm::Triple(ReadString(Record, Idx))); in ParseLanguageOptions()
4723 LangOpts.OMPHostIRFile = ReadString(Record, Idx); in ParseLanguageOptions()
4732 unsigned Idx = 0; in ParseTargetOptions() local
4734 TargetOpts.Triple = ReadString(Record, Idx); in ParseTargetOptions()
4735 TargetOpts.CPU = ReadString(Record, Idx); in ParseTargetOptions()
4736 TargetOpts.ABI = ReadString(Record, Idx); in ParseTargetOptions()
4737 for (unsigned N = Record[Idx++]; N; --N) { in ParseTargetOptions()
4738 TargetOpts.FeaturesAsWritten.push_back(ReadString(Record, Idx)); in ParseTargetOptions()
4740 for (unsigned N = Record[Idx++]; N; --N) { in ParseTargetOptions()
4741 TargetOpts.Features.push_back(ReadString(Record, Idx)); in ParseTargetOptions()
4751 unsigned Idx = 0; in ParseDiagnosticOptions() local
4752 #define DIAGOPT(Name, Bits, Default) DiagOpts->Name = Record[Idx++]; in ParseDiagnosticOptions()
4754 DiagOpts->set##Name(static_cast<Type>(Record[Idx++])); in ParseDiagnosticOptions()
4757 for (unsigned N = Record[Idx++]; N; --N) in ParseDiagnosticOptions()
4758 DiagOpts->Warnings.push_back(ReadString(Record, Idx)); in ParseDiagnosticOptions()
4759 for (unsigned N = Record[Idx++]; N; --N) in ParseDiagnosticOptions()
4760 DiagOpts->Remarks.push_back(ReadString(Record, Idx)); in ParseDiagnosticOptions()
4768 unsigned Idx = 0; in ParseFileSystemOptions() local
4769 FSOpts.WorkingDir = ReadString(Record, Idx); in ParseFileSystemOptions()
4777 unsigned Idx = 0; in ParseHeaderSearchOptions() local
4778 HSOpts.Sysroot = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4781 for (unsigned N = Record[Idx++]; N; --N) { in ParseHeaderSearchOptions()
4782 std::string Path = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4784 = static_cast<frontend::IncludeDirGroup>(Record[Idx++]); in ParseHeaderSearchOptions()
4785 bool IsFramework = Record[Idx++]; in ParseHeaderSearchOptions()
4786 bool IgnoreSysRoot = Record[Idx++]; in ParseHeaderSearchOptions()
4792 for (unsigned N = Record[Idx++]; N; --N) { in ParseHeaderSearchOptions()
4793 std::string Prefix = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4794 bool IsSystemHeader = Record[Idx++]; in ParseHeaderSearchOptions()
4798 HSOpts.ResourceDir = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4799 HSOpts.ModuleCachePath = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4800 HSOpts.ModuleUserBuildPath = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4801 HSOpts.DisableModuleHash = Record[Idx++]; in ParseHeaderSearchOptions()
4802 HSOpts.UseBuiltinIncludes = Record[Idx++]; in ParseHeaderSearchOptions()
4803 HSOpts.UseStandardSystemIncludes = Record[Idx++]; in ParseHeaderSearchOptions()
4804 HSOpts.UseStandardCXXIncludes = Record[Idx++]; in ParseHeaderSearchOptions()
4805 HSOpts.UseLibcxx = Record[Idx++]; in ParseHeaderSearchOptions()
4806 std::string SpecificModuleCachePath = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4817 unsigned Idx = 0; in ParsePreprocessorOptions() local
4820 for (unsigned N = Record[Idx++]; N; --N) { in ParsePreprocessorOptions()
4821 std::string Macro = ReadString(Record, Idx); in ParsePreprocessorOptions()
4822 bool IsUndef = Record[Idx++]; in ParsePreprocessorOptions()
4827 for (unsigned N = Record[Idx++]; N; --N) { in ParsePreprocessorOptions()
4828 PPOpts.Includes.push_back(ReadString(Record, Idx)); in ParsePreprocessorOptions()
4832 for (unsigned N = Record[Idx++]; N; --N) { in ParsePreprocessorOptions()
4833 PPOpts.MacroIncludes.push_back(ReadString(Record, Idx)); in ParsePreprocessorOptions()
4836 PPOpts.UsePredefines = Record[Idx++]; in ParsePreprocessorOptions()
4837 PPOpts.DetailedRecord = Record[Idx++]; in ParsePreprocessorOptions()
4838 PPOpts.ImplicitPCHInclude = ReadString(Record, Idx); in ParsePreprocessorOptions()
4839 PPOpts.ImplicitPTHInclude = ReadString(Record, Idx); in ParsePreprocessorOptions()
4841 static_cast<ObjCXXARCStandardLibraryKind>(Record[Idx++]); in ParsePreprocessorOptions()
5142 unsigned Idx = 0; in ReadPragmaDiagnosticMappings() local
5146 while (Idx < F.PragmaDiagMappings.size()) { in ReadPragmaDiagnosticMappings()
5147 SourceLocation Loc = ReadSourceLocation(F, F.PragmaDiagMappings[Idx++]); in ReadPragmaDiagnosticMappings()
5148 unsigned DiagStateID = F.PragmaDiagMappings[Idx++]; in ReadPragmaDiagnosticMappings()
5165 assert(Idx < F.PragmaDiagMappings.size() && in ReadPragmaDiagnosticMappings()
5167 if (Idx >= F.PragmaDiagMappings.size()) { in ReadPragmaDiagnosticMappings()
5171 unsigned DiagID = F.PragmaDiagMappings[Idx++]; in ReadPragmaDiagnosticMappings()
5175 diag::Severity Map = (diag::Severity)F.PragmaDiagMappings[Idx++]; in ReadPragmaDiagnosticMappings()
5210 unsigned Idx = 0; in readTypeRecord() local
5220 QualType Base = readType(*Loc.F, Record, Idx); in readTypeRecord()
5221 Qualifiers Quals = Qualifiers::fromOpaqueValue(Record[Idx++]); in readTypeRecord()
5230 QualType ElemType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5239 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5248 QualType OriginalType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5260 QualType OriginalTy = readType(*Loc.F, Record, Idx); in readTypeRecord()
5261 QualType AdjustedTy = readType(*Loc.F, Record, Idx); in readTypeRecord()
5270 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5279 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5288 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5297 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5298 QualType ClassType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5306 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5309 unsigned Idx = 3; in readTypeRecord() local
5310 llvm::APInt Size = ReadAPInt(Record, Idx); in readTypeRecord()
5316 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5323 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5339 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5352 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5362 QualType ResultType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5369 QualType ResultType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5378 unsigned Idx = 6; in readTypeRecord() local
5380 EPI.Variadic = Record[Idx++]; in readTypeRecord()
5381 EPI.HasTrailingReturn = Record[Idx++]; in readTypeRecord()
5382 EPI.TypeQuals = Record[Idx++]; in readTypeRecord()
5383 EPI.RefQualifier = static_cast<RefQualifierKind>(Record[Idx++]); in readTypeRecord()
5385 readExceptionSpec(*Loc.F, ExceptionStorage, EPI.ExceptionSpec, Record, Idx); in readTypeRecord()
5387 unsigned NumParams = Record[Idx++]; in readTypeRecord()
5390 ParamTypes.push_back(readType(*Loc.F, Record, Idx)); in readTypeRecord()
5393 if (Idx != Record.size()) { in readTypeRecord()
5397 ::getFromOpaqueValue(Record[Idx++])); in readTypeRecord()
5401 assert(Idx == Record.size()); in readTypeRecord()
5407 unsigned Idx = 0; in readTypeRecord() local
5409 ReadDeclAs<UnresolvedUsingTypenameDecl>(*Loc.F, Record, Idx)); in readTypeRecord()
5417 unsigned Idx = 0; in readTypeRecord() local
5418 TypedefNameDecl *Decl = ReadDeclAs<TypedefNameDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5419 QualType Canonical = readType(*Loc.F, Record, Idx); in readTypeRecord()
5433 QualType UnderlyingType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5438 QualType UnderlyingType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5443 QualType BaseType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5444 QualType UnderlyingType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5450 QualType Deduced = readType(*Loc.F, Record, Idx); in readTypeRecord()
5451 AutoTypeKeyword Keyword = (AutoTypeKeyword)Record[Idx++]; in readTypeRecord()
5452 bool IsDependent = Deduced.isNull() ? Record[Idx++] : false; in readTypeRecord()
5461 unsigned Idx = 0; in readTypeRecord() local
5462 bool IsDependent = Record[Idx++]; in readTypeRecord()
5463 RecordDecl *RD = ReadDeclAs<RecordDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5475 unsigned Idx = 0; in readTypeRecord() local
5476 bool IsDependent = Record[Idx++]; in readTypeRecord()
5478 = Context.getEnumType(ReadDeclAs<EnumDecl>(*Loc.F, Record, Idx)); in readTypeRecord()
5488 QualType modifiedType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5489 QualType equivalentType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5499 QualType InnerType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5508 QualType Pattern = readType(*Loc.F, Record, Idx); in readTypeRecord()
5518 unsigned Idx = 0; in readTypeRecord() local
5519 ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++]; in readTypeRecord()
5520 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord()
5521 QualType NamedType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5526 unsigned Idx = 0; in readTypeRecord() local
5528 = ReadDeclAs<ObjCInterfaceDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5533 unsigned Idx = 0; in readTypeRecord() local
5534 QualType Base = readType(*Loc.F, Record, Idx); in readTypeRecord()
5535 unsigned NumTypeArgs = Record[Idx++]; in readTypeRecord()
5538 TypeArgs.push_back(readType(*Loc.F, Record, Idx)); in readTypeRecord()
5539 unsigned NumProtos = Record[Idx++]; in readTypeRecord()
5542 Protos.push_back(ReadDeclAs<ObjCProtocolDecl>(*Loc.F, Record, Idx)); in readTypeRecord()
5543 bool IsKindOf = Record[Idx++]; in readTypeRecord()
5548 unsigned Idx = 0; in readTypeRecord() local
5549 QualType Pointee = readType(*Loc.F, Record, Idx); in readTypeRecord()
5554 unsigned Idx = 0; in readTypeRecord() local
5555 QualType Parm = readType(*Loc.F, Record, Idx); in readTypeRecord()
5556 QualType Replacement = readType(*Loc.F, Record, Idx); in readTypeRecord()
5563 unsigned Idx = 0; in readTypeRecord() local
5564 QualType Parm = readType(*Loc.F, Record, Idx); in readTypeRecord()
5565 TemplateArgument ArgPack = ReadTemplateArgument(*Loc.F, Record, Idx); in readTypeRecord()
5572 CXXRecordDecl *D = ReadDeclAs<CXXRecordDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5573 QualType TST = readType(*Loc.F, Record, Idx); // probably derivable in readTypeRecord()
5592 unsigned Idx = 0; in readTypeRecord() local
5593 unsigned Depth = Record[Idx++]; in readTypeRecord()
5594 unsigned Index = Record[Idx++]; in readTypeRecord()
5595 bool Pack = Record[Idx++]; in readTypeRecord()
5597 = ReadDeclAs<TemplateTypeParmDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5602 unsigned Idx = 0; in readTypeRecord() local
5603 ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++]; in readTypeRecord()
5604 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord()
5605 const IdentifierInfo *Name = GetIdentifierInfo(*Loc.F, Record, Idx); in readTypeRecord()
5606 QualType Canon = readType(*Loc.F, Record, Idx); in readTypeRecord()
5613 unsigned Idx = 0; in readTypeRecord() local
5614 ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++]; in readTypeRecord()
5615 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord()
5616 const IdentifierInfo *Name = GetIdentifierInfo(*Loc.F, Record, Idx); in readTypeRecord()
5617 unsigned NumArgs = Record[Idx++]; in readTypeRecord()
5621 Args.push_back(ReadTemplateArgument(*Loc.F, Record, Idx)); in readTypeRecord()
5627 unsigned Idx = 0; in readTypeRecord() local
5630 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5632 = (ArrayType::ArraySizeModifier)Record[Idx++]; in readTypeRecord()
5633 unsigned IndexTypeQuals = Record[Idx++]; in readTypeRecord()
5637 SourceRange Brackets = ReadSourceRange(*Loc.F, Record, Idx); in readTypeRecord()
5644 unsigned Idx = 0; in readTypeRecord() local
5645 bool IsDependent = Record[Idx++]; in readTypeRecord()
5646 TemplateName Name = ReadTemplateName(*Loc.F, Record, Idx); in readTypeRecord()
5648 ReadTemplateArgumentList(Args, *Loc.F, Record, Idx); in readTypeRecord()
5649 QualType Underlying = readType(*Loc.F, Record, Idx); in readTypeRecord()
5664 QualType ValueType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5675 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5685 const RecordData &Record, unsigned &Idx) { in readExceptionSpec() argument
5687 static_cast<ExceptionSpecificationType>(Record[Idx++]); in readExceptionSpec()
5690 for (unsigned I = 0, N = Record[Idx++]; I != N; ++I) in readExceptionSpec()
5691 Exceptions.push_back(readType(ModuleFile, Record, Idx)); in readExceptionSpec()
5696 ESI.SourceDecl = ReadDeclAs<FunctionDecl>(ModuleFile, Record, Idx); in readExceptionSpec()
5697 ESI.SourceTemplate = ReadDeclAs<FunctionDecl>(ModuleFile, Record, Idx); in readExceptionSpec()
5699 ESI.SourceDecl = ReadDeclAs<FunctionDecl>(ModuleFile, Record, Idx); in readExceptionSpec()
5707 unsigned &Idx; member in clang::TypeLocReader
5715 T *ReadDeclAs(const ASTReader::RecordData &Record, unsigned &Idx) { in ReadDeclAs() argument
5716 return Reader.ReadDeclAs<T>(F, Record, Idx); in ReadDeclAs()
5721 const ASTReader::RecordData &Record, unsigned &Idx) in TypeLocReader() argument
5722 : Reader(Reader), F(F), Record(Record), Idx(Idx) in TypeLocReader()
5741 TL.setBuiltinLoc(ReadSourceLocation(Record, Idx)); in VisitBuiltinTypeLoc()
5743 TL.setWrittenTypeSpec(static_cast<DeclSpec::TST>(Record[Idx++])); in VisitBuiltinTypeLoc()
5744 TL.setWrittenSignSpec(static_cast<DeclSpec::TSS>(Record[Idx++])); in VisitBuiltinTypeLoc()
5745 TL.setWrittenWidthSpec(static_cast<DeclSpec::TSW>(Record[Idx++])); in VisitBuiltinTypeLoc()
5746 TL.setModeAttr(Record[Idx++]); in VisitBuiltinTypeLoc()
5750 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitComplexTypeLoc()
5753 TL.setStarLoc(ReadSourceLocation(Record, Idx)); in VisitPointerTypeLoc()
5762 TL.setCaretLoc(ReadSourceLocation(Record, Idx)); in VisitBlockPointerTypeLoc()
5765 TL.setAmpLoc(ReadSourceLocation(Record, Idx)); in VisitLValueReferenceTypeLoc()
5768 TL.setAmpAmpLoc(ReadSourceLocation(Record, Idx)); in VisitRValueReferenceTypeLoc()
5771 TL.setStarLoc(ReadSourceLocation(Record, Idx)); in VisitMemberPointerTypeLoc()
5772 TL.setClassTInfo(Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitMemberPointerTypeLoc()
5775 TL.setLBracketLoc(ReadSourceLocation(Record, Idx)); in VisitArrayTypeLoc()
5776 TL.setRBracketLoc(ReadSourceLocation(Record, Idx)); in VisitArrayTypeLoc()
5777 if (Record[Idx++]) in VisitArrayTypeLoc()
5797 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitDependentSizedExtVectorTypeLoc()
5800 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitVectorTypeLoc()
5803 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitExtVectorTypeLoc()
5806 TL.setLocalRangeBegin(ReadSourceLocation(Record, Idx)); in VisitFunctionTypeLoc()
5807 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitFunctionTypeLoc()
5808 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitFunctionTypeLoc()
5809 TL.setLocalRangeEnd(ReadSourceLocation(Record, Idx)); in VisitFunctionTypeLoc()
5811 TL.setParam(i, ReadDeclAs<ParmVarDecl>(Record, Idx)); in VisitFunctionTypeLoc()
5821 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitUnresolvedUsingTypeLoc()
5824 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitTypedefTypeLoc()
5827 TL.setTypeofLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfExprTypeLoc()
5828 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfExprTypeLoc()
5829 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfExprTypeLoc()
5832 TL.setTypeofLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfTypeLoc()
5833 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfTypeLoc()
5834 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfTypeLoc()
5835 TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitTypeOfTypeLoc()
5838 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitDecltypeTypeLoc()
5841 TL.setKWLoc(ReadSourceLocation(Record, Idx)); in VisitUnaryTransformTypeLoc()
5842 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitUnaryTransformTypeLoc()
5843 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitUnaryTransformTypeLoc()
5844 TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitUnaryTransformTypeLoc()
5847 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitAutoTypeLoc()
5850 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitRecordTypeLoc()
5853 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitEnumTypeLoc()
5856 TL.setAttrNameLoc(ReadSourceLocation(Record, Idx)); in VisitAttributedTypeLoc()
5859 range.setBegin(ReadSourceLocation(Record, Idx)); in VisitAttributedTypeLoc()
5860 range.setEnd(ReadSourceLocation(Record, Idx)); in VisitAttributedTypeLoc()
5864 if (Record[Idx++]) in VisitAttributedTypeLoc()
5869 TL.setAttrEnumOperandLoc(ReadSourceLocation(Record, Idx)); in VisitAttributedTypeLoc()
5872 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateTypeParmTypeLoc()
5876 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitSubstTemplateTypeParmTypeLoc()
5880 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitSubstTemplateTypeParmPackTypeLoc()
5884 TL.setTemplateKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateSpecializationTypeLoc()
5885 TL.setTemplateNameLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateSpecializationTypeLoc()
5886 TL.setLAngleLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateSpecializationTypeLoc()
5887 TL.setRAngleLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateSpecializationTypeLoc()
5892 Record, Idx)); in VisitTemplateSpecializationTypeLoc()
5895 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitParenTypeLoc()
5896 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitParenTypeLoc()
5899 TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitElaboratedTypeLoc()
5900 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitElaboratedTypeLoc()
5903 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitInjectedClassNameTypeLoc()
5906 TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitDependentNameTypeLoc()
5907 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitDependentNameTypeLoc()
5908 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitDependentNameTypeLoc()
5912 TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5913 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5914 TL.setTemplateKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5915 TL.setTemplateNameLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5916 TL.setLAngleLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5917 TL.setRAngleLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5922 Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5925 TL.setEllipsisLoc(ReadSourceLocation(Record, Idx)); in VisitPackExpansionTypeLoc()
5928 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitObjCInterfaceTypeLoc()
5931 TL.setHasBaseTypeAsWritten(Record[Idx++]); in VisitObjCObjectTypeLoc()
5932 TL.setTypeArgsLAngleLoc(ReadSourceLocation(Record, Idx)); in VisitObjCObjectTypeLoc()
5933 TL.setTypeArgsRAngleLoc(ReadSourceLocation(Record, Idx)); in VisitObjCObjectTypeLoc()
5935 TL.setTypeArgTInfo(i, Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitObjCObjectTypeLoc()
5936 TL.setProtocolLAngleLoc(ReadSourceLocation(Record, Idx)); in VisitObjCObjectTypeLoc()
5937 TL.setProtocolRAngleLoc(ReadSourceLocation(Record, Idx)); in VisitObjCObjectTypeLoc()
5939 TL.setProtocolLoc(i, ReadSourceLocation(Record, Idx)); in VisitObjCObjectTypeLoc()
5942 TL.setStarLoc(ReadSourceLocation(Record, Idx)); in VisitObjCObjectPointerTypeLoc()
5945 TL.setKWLoc(ReadSourceLocation(Record, Idx)); in VisitAtomicTypeLoc()
5946 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitAtomicTypeLoc()
5947 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitAtomicTypeLoc()
5950 TL.setKWLoc(ReadSourceLocation(Record, Idx)); in VisitPipeTypeLoc()
5955 unsigned &Idx) { in GetTypeSourceInfo() argument
5956 QualType InfoTy = readType(F, Record, Idx); in GetTypeSourceInfo()
5961 TypeLocReader TLR(*this, F, Record, Idx); in GetTypeSourceInfo()
6300 unsigned Idx = 0; in GetExternalCXXCtorInitializers() local
6301 return ReadCXXCtorInitializers(*Loc.F, Record, Idx); in GetExternalCXXCtorInitializers()
6318 unsigned Idx = 0; in GetExternalCXXBaseSpecifiers() local
6319 unsigned NumBases = Record[Idx++]; in GetExternalCXXBaseSpecifiers()
6323 Bases[I] = ReadCXXBaseSpecifier(*Loc.F, Record, Idx); in GetExternalCXXBaseSpecifiers()
6496 unsigned &Idx) { in ReadDeclID() argument
6497 if (Idx >= Record.size()) { in ReadDeclID()
6502 return getGlobalDeclID(F, Record[Idx++]); in ReadDeclID()
7235 for (unsigned Idx = 0, N = UndefinedButUsed.size(); Idx != N;) { in ReadUndefinedButUsed() local
7236 NamedDecl *D = cast<NamedDecl>(GetDecl(UndefinedButUsed[Idx++])); in ReadUndefinedButUsed()
7238 SourceLocation::getFromRawEncoding(UndefinedButUsed[Idx++]); in ReadUndefinedButUsed()
7246 for (unsigned Idx = 0, N = DelayedDeleteExprs.size(); Idx != N;) { in ReadMismatchingDeleteExpressions() local
7247 FieldDecl *FD = cast<FieldDecl>(GetDecl(DelayedDeleteExprs[Idx++])); in ReadMismatchingDeleteExpressions()
7248 uint64_t Count = DelayedDeleteExprs[Idx++]; in ReadMismatchingDeleteExpressions()
7251 SourceLocation::getFromRawEncoding(DelayedDeleteExprs[Idx++]); in ReadMismatchingDeleteExpressions()
7252 const bool IsArrayForm = DelayedDeleteExprs[Idx++]; in ReadMismatchingDeleteExpressions()
7351 for (unsigned Idx = 0, N = VTableUses.size(); Idx < N; /* In loop */) { in ReadUsedVTables() local
7353 VT.Record = dyn_cast_or_null<CXXRecordDecl>(GetDecl(VTableUses[Idx++])); in ReadUsedVTables()
7354 VT.Location = SourceLocation::getFromRawEncoding(VTableUses[Idx++]); in ReadUsedVTables()
7355 VT.DefinitionRequired = VTableUses[Idx++]; in ReadUsedVTables()
7364 for (unsigned Idx = 0, N = PendingInstantiations.size(); Idx < N;) { in ReadPendingInstantiations() local
7365 ValueDecl *D = cast<ValueDecl>(GetDecl(PendingInstantiations[Idx++])); in ReadPendingInstantiations()
7367 = SourceLocation::getFromRawEncoding(PendingInstantiations[Idx++]); in ReadPendingInstantiations()
7376 for (unsigned Idx = 0, N = LateParsedTemplates.size(); Idx < N; in ReadLateParsedTemplates() local
7378 FunctionDecl *FD = cast<FunctionDecl>(GetDecl(LateParsedTemplates[Idx++])); in ReadLateParsedTemplates()
7381 LT->D = GetDecl(LateParsedTemplates[Idx++]); in ReadLateParsedTemplates()
7386 unsigned TokN = LateParsedTemplates[Idx++]; in ReadLateParsedTemplates()
7389 LT->Toks.push_back(ReadToken(*F, LateParsedTemplates, Idx)); in ReadLateParsedTemplates()
7644 unsigned Idx = ID - M.BaseSelectorID - NUM_PREDEF_SELECTOR_IDS; in DecodeSelector() local
7646 Trait.ReadKey(M.SelectorLookupTableData + M.SelectorOffsets[Idx], 0); in DecodeSelector()
7678 const RecordData &Record, unsigned &Idx) { in ReadDeclarationName() argument
7679 DeclarationName::NameKind Kind = (DeclarationName::NameKind)Record[Idx++]; in ReadDeclarationName()
7682 return DeclarationName(GetIdentifierInfo(F, Record, Idx)); in ReadDeclarationName()
7687 return DeclarationName(ReadSelector(F, Record, Idx)); in ReadDeclarationName()
7691 Context.getCanonicalType(readType(F, Record, Idx))); in ReadDeclarationName()
7695 Context.getCanonicalType(readType(F, Record, Idx))); in ReadDeclarationName()
7699 Context.getCanonicalType(readType(F, Record, Idx))); in ReadDeclarationName()
7703 (OverloadedOperatorKind)Record[Idx++]); in ReadDeclarationName()
7707 GetIdentifierInfo(F, Record, Idx)); in ReadDeclarationName()
7719 const RecordData &Record, unsigned &Idx) { in ReadDeclarationNameLoc() argument
7724 DNLoc.NamedType.TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadDeclarationNameLoc()
7729 = ReadSourceLocation(F, Record, Idx).getRawEncoding(); in ReadDeclarationNameLoc()
7731 = ReadSourceLocation(F, Record, Idx).getRawEncoding(); in ReadDeclarationNameLoc()
7736 = ReadSourceLocation(F, Record, Idx).getRawEncoding(); in ReadDeclarationNameLoc()
7750 const RecordData &Record, unsigned &Idx) { in ReadDeclarationNameInfo() argument
7751 NameInfo.setName(ReadDeclarationName(F, Record, Idx)); in ReadDeclarationNameInfo()
7752 NameInfo.setLoc(ReadSourceLocation(F, Record, Idx)); in ReadDeclarationNameInfo()
7754 ReadDeclarationNameLoc(F, DNLoc, NameInfo.getName(), Record, Idx); in ReadDeclarationNameInfo()
7759 const RecordData &Record, unsigned &Idx) { in ReadQualifierInfo() argument
7760 Info.QualifierLoc = ReadNestedNameSpecifierLoc(F, Record, Idx); in ReadQualifierInfo()
7761 unsigned NumTPLists = Record[Idx++]; in ReadQualifierInfo()
7766 Info.TemplParamLists[i] = ReadTemplateParameterList(F, Record, Idx); in ReadQualifierInfo()
7772 unsigned &Idx) { in ReadTemplateName() argument
7773 TemplateName::NameKind Kind = (TemplateName::NameKind)Record[Idx++]; in ReadTemplateName()
7776 return TemplateName(ReadDeclAs<TemplateDecl>(F, Record, Idx)); in ReadTemplateName()
7779 unsigned size = Record[Idx++]; in ReadTemplateName()
7782 Decls.addDecl(ReadDeclAs<NamedDecl>(F, Record, Idx)); in ReadTemplateName()
7788 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName()
7789 bool hasTemplKeyword = Record[Idx++]; in ReadTemplateName()
7790 TemplateDecl *Template = ReadDeclAs<TemplateDecl>(F, Record, Idx); in ReadTemplateName()
7795 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName()
7796 if (Record[Idx++]) // isIdentifier in ReadTemplateName()
7799 Idx)); in ReadTemplateName()
7801 (OverloadedOperatorKind)Record[Idx++]); in ReadTemplateName()
7806 = ReadDeclAs<TemplateTemplateParmDecl>(F, Record, Idx); in ReadTemplateName()
7808 TemplateName replacement = ReadTemplateName(F, Record, Idx); in ReadTemplateName()
7814 = ReadDeclAs<TemplateTemplateParmDecl>(F, Record, Idx); in ReadTemplateName()
7818 TemplateArgument ArgPack = ReadTemplateArgument(F, Record, Idx); in ReadTemplateName()
7831 unsigned &Idx, in ReadTemplateArgument() argument
7838 TemplateArgument Arg = ReadTemplateArgument(F, Record, Idx, false); in ReadTemplateArgument()
7842 TemplateArgument::ArgKind Kind = (TemplateArgument::ArgKind)Record[Idx++]; in ReadTemplateArgument()
7847 return TemplateArgument(readType(F, Record, Idx)); in ReadTemplateArgument()
7849 ValueDecl *D = ReadDeclAs<ValueDecl>(F, Record, Idx); in ReadTemplateArgument()
7850 return TemplateArgument(D, readType(F, Record, Idx)); in ReadTemplateArgument()
7853 return TemplateArgument(readType(F, Record, Idx), /*isNullPtr*/true); in ReadTemplateArgument()
7855 llvm::APSInt Value = ReadAPSInt(Record, Idx); in ReadTemplateArgument()
7856 QualType T = readType(F, Record, Idx); in ReadTemplateArgument()
7860 return TemplateArgument(ReadTemplateName(F, Record, Idx)); in ReadTemplateArgument()
7862 TemplateName Name = ReadTemplateName(F, Record, Idx); in ReadTemplateArgument()
7864 if (unsigned NumExpansions = Record[Idx++]) in ReadTemplateArgument()
7871 unsigned NumArgs = Record[Idx++]; in ReadTemplateArgument()
7874 Args[I] = ReadTemplateArgument(F, Record, Idx); in ReadTemplateArgument()
7884 const RecordData &Record, unsigned &Idx) { in ReadTemplateParameterList() argument
7885 SourceLocation TemplateLoc = ReadSourceLocation(F, Record, Idx); in ReadTemplateParameterList()
7886 SourceLocation LAngleLoc = ReadSourceLocation(F, Record, Idx); in ReadTemplateParameterList()
7887 SourceLocation RAngleLoc = ReadSourceLocation(F, Record, Idx); in ReadTemplateParameterList()
7889 unsigned NumParams = Record[Idx++]; in ReadTemplateParameterList()
7893 Params.push_back(ReadDeclAs<NamedDecl>(F, Record, Idx)); in ReadTemplateParameterList()
7905 unsigned &Idx, bool Canonicalize) { in ReadTemplateArgumentList() argument
7906 unsigned NumTemplateArgs = Record[Idx++]; in ReadTemplateArgumentList()
7909 TemplArgs.push_back(ReadTemplateArgument(F, Record, Idx, Canonicalize)); in ReadTemplateArgumentList()
7914 const RecordData &Record, unsigned &Idx) { in ReadUnresolvedSet() argument
7915 unsigned NumDecls = Record[Idx++]; in ReadUnresolvedSet()
7918 DeclID ID = ReadDeclID(F, Record, Idx); in ReadUnresolvedSet()
7919 AccessSpecifier AS = (AccessSpecifier)Record[Idx++]; in ReadUnresolvedSet()
7926 const RecordData &Record, unsigned &Idx) { in ReadCXXBaseSpecifier() argument
7927 bool isVirtual = static_cast<bool>(Record[Idx++]); in ReadCXXBaseSpecifier()
7928 bool isBaseOfClass = static_cast<bool>(Record[Idx++]); in ReadCXXBaseSpecifier()
7929 AccessSpecifier AS = static_cast<AccessSpecifier>(Record[Idx++]); in ReadCXXBaseSpecifier()
7930 bool inheritConstructors = static_cast<bool>(Record[Idx++]); in ReadCXXBaseSpecifier()
7931 TypeSourceInfo *TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadCXXBaseSpecifier()
7932 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadCXXBaseSpecifier()
7933 SourceLocation EllipsisLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXBaseSpecifier()
7942 unsigned &Idx) { in ReadCXXCtorInitializers() argument
7943 unsigned NumInitializers = Record[Idx++]; in ReadCXXCtorInitializers()
7952 CtorInitializerType Type = (CtorInitializerType)Record[Idx++]; in ReadCXXCtorInitializers()
7955 TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadCXXCtorInitializers()
7956 IsBaseVirtual = Record[Idx++]; in ReadCXXCtorInitializers()
7960 TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadCXXCtorInitializers()
7964 Member = ReadDeclAs<FieldDecl>(F, Record, Idx); in ReadCXXCtorInitializers()
7968 IndirectMember = ReadDeclAs<IndirectFieldDecl>(F, Record, Idx); in ReadCXXCtorInitializers()
7972 SourceLocation MemberOrEllipsisLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXCtorInitializers()
7974 SourceLocation LParenLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXCtorInitializers()
7975 SourceLocation RParenLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXCtorInitializers()
7976 bool IsWritten = Record[Idx++]; in ReadCXXCtorInitializers()
7980 SourceOrderOrNumArrayIndices = Record[Idx++]; in ReadCXXCtorInitializers()
7982 SourceOrderOrNumArrayIndices = Record[Idx++]; in ReadCXXCtorInitializers()
7985 Indices.push_back(ReadDeclAs<VarDecl>(F, Record, Idx)); in ReadCXXCtorInitializers()
8027 const RecordData &Record, unsigned &Idx) { in ReadNestedNameSpecifier() argument
8028 unsigned N = Record[Idx++]; in ReadNestedNameSpecifier()
8032 = (NestedNameSpecifier::SpecifierKind)Record[Idx++]; in ReadNestedNameSpecifier()
8035 IdentifierInfo *II = GetIdentifierInfo(F, Record, Idx); in ReadNestedNameSpecifier()
8041 NamespaceDecl *NS = ReadDeclAs<NamespaceDecl>(F, Record, Idx); in ReadNestedNameSpecifier()
8047 NamespaceAliasDecl *Alias =ReadDeclAs<NamespaceAliasDecl>(F, Record, Idx); in ReadNestedNameSpecifier()
8054 const Type *T = readType(F, Record, Idx).getTypePtrOrNull(); in ReadNestedNameSpecifier()
8058 bool Template = Record[Idx++]; in ReadNestedNameSpecifier()
8070 CXXRecordDecl *RD = ReadDeclAs<CXXRecordDecl>(F, Record, Idx); in ReadNestedNameSpecifier()
8082 unsigned &Idx) { in ReadNestedNameSpecifierLoc() argument
8083 unsigned N = Record[Idx++]; in ReadNestedNameSpecifierLoc()
8087 = (NestedNameSpecifier::SpecifierKind)Record[Idx++]; in ReadNestedNameSpecifierLoc()
8090 IdentifierInfo *II = GetIdentifierInfo(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8091 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8097 NamespaceDecl *NS = ReadDeclAs<NamespaceDecl>(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8098 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8104 NamespaceAliasDecl *Alias =ReadDeclAs<NamespaceAliasDecl>(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8105 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8112 bool Template = Record[Idx++]; in ReadNestedNameSpecifierLoc()
8113 TypeSourceInfo *T = GetTypeSourceInfo(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8116 SourceLocation ColonColonLoc = ReadSourceLocation(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8126 SourceLocation ColonColonLoc = ReadSourceLocation(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8132 CXXRecordDecl *RD = ReadDeclAs<CXXRecordDecl>(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8133 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8145 unsigned &Idx) { in ReadSourceRange() argument
8146 SourceLocation beg = ReadSourceLocation(F, Record, Idx); in ReadSourceRange()
8147 SourceLocation end = ReadSourceLocation(F, Record, Idx); in ReadSourceRange()
8152 llvm::APInt ASTReader::ReadAPInt(const RecordData &Record, unsigned &Idx) { in ReadAPInt() argument
8153 unsigned BitWidth = Record[Idx++]; in ReadAPInt()
8155 llvm::APInt Result(BitWidth, NumWords, &Record[Idx]); in ReadAPInt()
8156 Idx += NumWords; in ReadAPInt()
8161 llvm::APSInt ASTReader::ReadAPSInt(const RecordData &Record, unsigned &Idx) { in ReadAPSInt() argument
8162 bool isUnsigned = Record[Idx++]; in ReadAPSInt()
8163 return llvm::APSInt(ReadAPInt(Record, Idx), isUnsigned); in ReadAPSInt()
8169 unsigned &Idx) { in ReadAPFloat() argument
8170 return llvm::APFloat(Sem, ReadAPInt(Record, Idx)); in ReadAPFloat()
8174 std::string ASTReader::ReadString(const RecordData &Record, unsigned &Idx) { in ReadString() argument
8175 unsigned Len = Record[Idx++]; in ReadString()
8176 std::string Result(Record.data() + Idx, Record.data() + Idx + Len); in ReadString()
8177 Idx += Len; in ReadString()
8182 unsigned &Idx) { in ReadPath() argument
8183 std::string Filename = ReadString(Record, Idx); in ReadPath()
8189 unsigned &Idx) { in ReadVersionTuple() argument
8190 unsigned Major = Record[Idx++]; in ReadVersionTuple()
8191 unsigned Minor = Record[Idx++]; in ReadVersionTuple()
8192 unsigned Subminor = Record[Idx++]; in ReadVersionTuple()
8202 unsigned &Idx) { in ReadCXXTemporary() argument
8203 CXXDestructorDecl *Decl = ReadDeclAs<CXXDestructorDecl>(F, Record, Idx); in ReadCXXTemporary()
8272 unsigned Idx = 0; in ReadComments() local
8273 SourceRange SR = ReadSourceRange(F, Record, Idx); in ReadComments()
8275 (RawComment::CommentKind) Record[Idx++]; in ReadComments()
8276 bool IsTrailingComment = Record[Idx++]; in ReadComments()
8277 bool IsAlmostTrailingComment = Record[Idx++]; in ReadComments()