Lines Matching refs:Idx
1066 unsigned Idx = 0; in ParseLineTable() local
1071 for (int I = 0, N = Record[Idx++]; I != N; ++I) { in ParseLineTable()
1073 auto Filename = ReadPath(F, Record, Idx); in ParseLineTable()
1079 while (Idx < Record.size()) { in ParseLineTable()
1080 int FID = Record[Idx++]; in ParseLineTable()
1086 unsigned NumEntries = Record[Idx++]; in ParseLineTable()
1091 unsigned FileOffset = Record[Idx++]; in ParseLineTable()
1092 unsigned LineNo = Record[Idx++]; in ParseLineTable()
1093 int FilenameID = FileIDs[Record[Idx++]]; in ParseLineTable()
1095 = (SrcMgr::CharacteristicKind)Record[Idx++]; in ParseLineTable()
1096 unsigned IncludeOffset = Record[Idx++]; in ParseLineTable()
1381 unsigned &Idx) { in ReadToken() argument
1384 Tok.setLocation(ReadSourceLocation(F, Record, Idx)); in ReadToken()
1385 Tok.setLength(Record[Idx++]); in ReadToken()
1386 if (IdentifierInfo *II = getLocalIdentifier(F, Record[Idx++])) in ReadToken()
1388 Tok.setKind((tok::TokenKind)Record[Idx++]); in ReadToken()
1389 Tok.setFlag((Token::TokenFlags)Record[Idx++]); in ReadToken()
1494 unsigned Idx = 0; in ReadMacroRecord() local
1495 Token Tok = ReadToken(F, Record, Idx); in ReadMacroRecord()
1895 unsigned Idx = 0, N = Record.size(); in installPCHMacroDirectives() local
1896 while (Idx < N) { in installPCHMacroDirectives()
1898 SourceLocation Loc = ReadSourceLocation(M, Record, Idx); in installPCHMacroDirectives()
1899 MacroDirective::Kind K = (MacroDirective::Kind)Record[Idx++]; in installPCHMacroDirectives()
1902 GlobalMacroID GMacID = getGlobalMacroID(M, Record[Idx++]); in installPCHMacroDirectives()
1904 SubmoduleID ImportedFrom = Record[Idx++]; in installPCHMacroDirectives()
1905 bool IsAmbiguous = Record[Idx++]; in installPCHMacroDirectives()
1909 &Record[Idx] + 1, &Record[Idx] + 1 + Record[Idx]); in installPCHMacroDirectives()
1910 Idx += Overrides.size() + 1; in installPCHMacroDirectives()
1919 SubmoduleID ImportedFrom = Record[Idx++]; in installPCHMacroDirectives()
1923 &Record[Idx] + 1, &Record[Idx] + 1 + Record[Idx]); in installPCHMacroDirectives()
1924 Idx += Overrides.size() + 1; in installPCHMacroDirectives()
1930 bool isPublic = Record[Idx++]; in installPCHMacroDirectives()
2434 unsigned Idx = 0, N = Record.size(); in ReadControlBlock() local
2435 while (Idx < N) { in ReadControlBlock()
2437 ModuleKind ImportedKind = (ModuleKind)Record[Idx++]; in ReadControlBlock()
2442 SourceLocation::getFromRawEncoding(Record[Idx++]); in ReadControlBlock()
2443 off_t StoredSize = (off_t)Record[Idx++]; in ReadControlBlock()
2444 time_t StoredModTime = (time_t)Record[Idx++]; in ReadControlBlock()
2445 ASTFileSignature StoredSignature = Record[Idx++]; in ReadControlBlock()
2446 auto ImportedFile = ReadPath(F, Record, Idx); in ReadControlBlock()
2777 unsigned Idx = 0; in ReadASTBlock() local
2778 serialization::DeclID ID = ReadDeclID(F, Record, Idx); in ReadASTBlock()
2781 (const unsigned char *)Blob.data() + Record[Idx++], in ReadASTBlock()
2939 for (unsigned Idx = 0, N = Record.size() - 1; Idx < N; /* in loop */) { in ReadASTBlock() local
2941 Record[Idx++])); in ReadASTBlock()
2942 ReferencedSelectorsData.push_back(ReadSourceLocation(F, Record, Idx). in ReadASTBlock()
3098 for (unsigned Idx = 0, N = Record.size(); Idx != N; /* In loop */) { in ReadASTBlock() local
3099 VTableUses.push_back(getGlobalDeclID(F, Record[Idx++])); in ReadASTBlock()
3101 ReadSourceLocation(F, Record, Idx).getRawEncoding()); in ReadASTBlock()
3102 VTableUses.push_back(Record[Idx++]); in ReadASTBlock()
3383 unsigned Idx = 0; in ReadModuleMapFileBlock() local
3384 F.ModuleMapPath = ReadPath(F, Record, Idx); in ReadModuleMapFileBlock()
3429 for (unsigned I = 0, N = Record[Idx++]; I < N; ++I) { in ReadModuleMapFileBlock()
3431 std::string Filename = ReadPath(F, Record, Idx); in ReadModuleMapFileBlock()
4336 unsigned Idx = 0; in readASTFileControlBlock() local
4337 auto Path = ReadString(Record, Idx); in readASTFileControlBlock()
4418 unsigned Idx = 0, N = Record.size(); in readASTFileControlBlock() local
4419 while (Idx < N) { in readASTFileControlBlock()
4421 Idx += 5; // ImportLoc, Size, ModTime, Signature in readASTFileControlBlock()
4422 std::string Filename = ReadString(Record, Idx); in readASTFileControlBlock()
4434 unsigned Idx = 0, N = Record.size(); in readASTFileControlBlock() local
4435 while (Idx < N) { in readASTFileControlBlock()
4436 std::string Filename = ReadString(Record, Idx); in readASTFileControlBlock()
4517 unsigned Idx = 0; in ReadSubmoduleBlock() local
4518 SubmoduleID GlobalID = getGlobalSubmoduleID(F, Record[Idx++]); in ReadSubmoduleBlock()
4519 SubmoduleID Parent = getGlobalSubmoduleID(F, Record[Idx++]); in ReadSubmoduleBlock()
4520 bool IsFramework = Record[Idx++]; in ReadSubmoduleBlock()
4521 bool IsExplicit = Record[Idx++]; in ReadSubmoduleBlock()
4522 bool IsSystem = Record[Idx++]; in ReadSubmoduleBlock()
4523 bool IsExternC = Record[Idx++]; in ReadSubmoduleBlock()
4524 bool InferSubmodules = Record[Idx++]; in ReadSubmoduleBlock()
4525 bool InferExplicitSubmodules = Record[Idx++]; in ReadSubmoduleBlock()
4526 bool InferExportWildcard = Record[Idx++]; in ReadSubmoduleBlock()
4527 bool ConfigMacrosExhaustive = Record[Idx++]; in ReadSubmoduleBlock()
4655 for (unsigned Idx = 0; Idx != Record.size(); ++Idx) { in ReadSubmoduleBlock() local
4659 Unresolved.ID = Record[Idx]; in ReadSubmoduleBlock()
4668 for (unsigned Idx = 0; Idx + 1 < Record.size(); Idx += 2) { in ReadSubmoduleBlock() local
4672 Unresolved.ID = Record[Idx]; in ReadSubmoduleBlock()
4674 Unresolved.IsWildcard = Record[Idx + 1]; in ReadSubmoduleBlock()
4725 unsigned Idx = 0; in ParseLanguageOptions() local
4727 LangOpts.Name = Record[Idx++]; in ParseLanguageOptions()
4729 LangOpts.set##Name(static_cast<LangOptions::Type>(Record[Idx++])); in ParseLanguageOptions()
4732 LangOpts.Sanitize.set(SanitizerKind::ID, Record[Idx++]); in ParseLanguageOptions()
4735 ObjCRuntime::Kind runtimeKind = (ObjCRuntime::Kind) Record[Idx++]; in ParseLanguageOptions()
4736 VersionTuple runtimeVersion = ReadVersionTuple(Record, Idx); in ParseLanguageOptions()
4739 unsigned Length = Record[Idx++]; in ParseLanguageOptions()
4740 LangOpts.CurrentModule.assign(Record.begin() + Idx, in ParseLanguageOptions()
4741 Record.begin() + Idx + Length); in ParseLanguageOptions()
4743 Idx += Length; in ParseLanguageOptions()
4746 for (unsigned N = Record[Idx++]; N; --N) { in ParseLanguageOptions()
4748 ReadString(Record, Idx)); in ParseLanguageOptions()
4750 LangOpts.CommentOpts.ParseAllComments = Record[Idx++]; in ParseLanguageOptions()
4759 unsigned Idx = 0; in ParseTargetOptions() local
4761 TargetOpts.Triple = ReadString(Record, Idx); in ParseTargetOptions()
4762 TargetOpts.CPU = ReadString(Record, Idx); in ParseTargetOptions()
4763 TargetOpts.ABI = ReadString(Record, Idx); in ParseTargetOptions()
4764 for (unsigned N = Record[Idx++]; N; --N) { in ParseTargetOptions()
4765 TargetOpts.FeaturesAsWritten.push_back(ReadString(Record, Idx)); in ParseTargetOptions()
4767 for (unsigned N = Record[Idx++]; N; --N) { in ParseTargetOptions()
4768 TargetOpts.Features.push_back(ReadString(Record, Idx)); in ParseTargetOptions()
4778 unsigned Idx = 0; in ParseDiagnosticOptions() local
4779 #define DIAGOPT(Name, Bits, Default) DiagOpts->Name = Record[Idx++]; in ParseDiagnosticOptions()
4781 DiagOpts->set##Name(static_cast<Type>(Record[Idx++])); in ParseDiagnosticOptions()
4784 for (unsigned N = Record[Idx++]; N; --N) in ParseDiagnosticOptions()
4785 DiagOpts->Warnings.push_back(ReadString(Record, Idx)); in ParseDiagnosticOptions()
4786 for (unsigned N = Record[Idx++]; N; --N) in ParseDiagnosticOptions()
4787 DiagOpts->Remarks.push_back(ReadString(Record, Idx)); in ParseDiagnosticOptions()
4795 unsigned Idx = 0; in ParseFileSystemOptions() local
4796 FSOpts.WorkingDir = ReadString(Record, Idx); in ParseFileSystemOptions()
4804 unsigned Idx = 0; in ParseHeaderSearchOptions() local
4805 HSOpts.Sysroot = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4808 for (unsigned N = Record[Idx++]; N; --N) { in ParseHeaderSearchOptions()
4809 std::string Path = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4811 = static_cast<frontend::IncludeDirGroup>(Record[Idx++]); in ParseHeaderSearchOptions()
4812 bool IsFramework = Record[Idx++]; in ParseHeaderSearchOptions()
4813 bool IgnoreSysRoot = Record[Idx++]; in ParseHeaderSearchOptions()
4819 for (unsigned N = Record[Idx++]; N; --N) { in ParseHeaderSearchOptions()
4820 std::string Prefix = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4821 bool IsSystemHeader = Record[Idx++]; in ParseHeaderSearchOptions()
4826 HSOpts.ResourceDir = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4827 HSOpts.ModuleCachePath = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4828 HSOpts.ModuleUserBuildPath = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4829 HSOpts.DisableModuleHash = Record[Idx++]; in ParseHeaderSearchOptions()
4830 HSOpts.UseBuiltinIncludes = Record[Idx++]; in ParseHeaderSearchOptions()
4831 HSOpts.UseStandardSystemIncludes = Record[Idx++]; in ParseHeaderSearchOptions()
4832 HSOpts.UseStandardCXXIncludes = Record[Idx++]; in ParseHeaderSearchOptions()
4833 HSOpts.UseLibcxx = Record[Idx++]; in ParseHeaderSearchOptions()
4834 std::string SpecificModuleCachePath = ReadString(Record, Idx); in ParseHeaderSearchOptions()
4845 unsigned Idx = 0; in ParsePreprocessorOptions() local
4848 for (unsigned N = Record[Idx++]; N; --N) { in ParsePreprocessorOptions()
4849 std::string Macro = ReadString(Record, Idx); in ParsePreprocessorOptions()
4850 bool IsUndef = Record[Idx++]; in ParsePreprocessorOptions()
4855 for (unsigned N = Record[Idx++]; N; --N) { in ParsePreprocessorOptions()
4856 PPOpts.Includes.push_back(ReadString(Record, Idx)); in ParsePreprocessorOptions()
4860 for (unsigned N = Record[Idx++]; N; --N) { in ParsePreprocessorOptions()
4861 PPOpts.MacroIncludes.push_back(ReadString(Record, Idx)); in ParsePreprocessorOptions()
4864 PPOpts.UsePredefines = Record[Idx++]; in ParsePreprocessorOptions()
4865 PPOpts.DetailedRecord = Record[Idx++]; in ParsePreprocessorOptions()
4866 PPOpts.ImplicitPCHInclude = ReadString(Record, Idx); in ParsePreprocessorOptions()
4867 PPOpts.ImplicitPTHInclude = ReadString(Record, Idx); in ParsePreprocessorOptions()
4869 static_cast<ObjCXXARCStandardLibraryKind>(Record[Idx++]); in ParsePreprocessorOptions()
5174 unsigned Idx = 0; in ReadPragmaDiagnosticMappings() local
5178 while (Idx < F.PragmaDiagMappings.size()) { in ReadPragmaDiagnosticMappings()
5179 SourceLocation Loc = ReadSourceLocation(F, F.PragmaDiagMappings[Idx++]); in ReadPragmaDiagnosticMappings()
5180 unsigned DiagStateID = F.PragmaDiagMappings[Idx++]; in ReadPragmaDiagnosticMappings()
5197 assert(Idx < F.PragmaDiagMappings.size() && in ReadPragmaDiagnosticMappings()
5199 if (Idx >= F.PragmaDiagMappings.size()) { in ReadPragmaDiagnosticMappings()
5203 unsigned DiagID = F.PragmaDiagMappings[Idx++]; in ReadPragmaDiagnosticMappings()
5207 diag::Severity Map = (diag::Severity)F.PragmaDiagMappings[Idx++]; in ReadPragmaDiagnosticMappings()
5242 unsigned Idx = 0; in readTypeRecord() local
5252 QualType Base = readType(*Loc.F, Record, Idx); in readTypeRecord()
5253 Qualifiers Quals = Qualifiers::fromOpaqueValue(Record[Idx++]); in readTypeRecord()
5262 QualType ElemType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5271 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5280 QualType OriginalType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5292 QualType OriginalTy = readType(*Loc.F, Record, Idx); in readTypeRecord()
5293 QualType AdjustedTy = readType(*Loc.F, Record, Idx); in readTypeRecord()
5302 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5311 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5320 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5329 QualType PointeeType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5330 QualType ClassType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5338 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5341 unsigned Idx = 3; in readTypeRecord() local
5342 llvm::APInt Size = ReadAPInt(Record, Idx); in readTypeRecord()
5348 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5355 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5371 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5384 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5394 QualType ResultType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5401 QualType ResultType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5410 unsigned Idx = 6; in readTypeRecord() local
5412 EPI.Variadic = Record[Idx++]; in readTypeRecord()
5413 EPI.HasTrailingReturn = Record[Idx++]; in readTypeRecord()
5414 EPI.TypeQuals = Record[Idx++]; in readTypeRecord()
5415 EPI.RefQualifier = static_cast<RefQualifierKind>(Record[Idx++]); in readTypeRecord()
5417 readExceptionSpec(*Loc.F, ExceptionStorage, EPI.ExceptionSpec, Record, Idx); in readTypeRecord()
5419 unsigned NumParams = Record[Idx++]; in readTypeRecord()
5422 ParamTypes.push_back(readType(*Loc.F, Record, Idx)); in readTypeRecord()
5428 unsigned Idx = 0; in readTypeRecord() local
5430 ReadDeclAs<UnresolvedUsingTypenameDecl>(*Loc.F, Record, Idx)); in readTypeRecord()
5438 unsigned Idx = 0; in readTypeRecord() local
5439 TypedefNameDecl *Decl = ReadDeclAs<TypedefNameDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5440 QualType Canonical = readType(*Loc.F, Record, Idx); in readTypeRecord()
5454 QualType UnderlyingType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5459 QualType UnderlyingType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5464 QualType BaseType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5465 QualType UnderlyingType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5471 QualType Deduced = readType(*Loc.F, Record, Idx); in readTypeRecord()
5472 bool IsDecltypeAuto = Record[Idx++]; in readTypeRecord()
5473 bool IsDependent = Deduced.isNull() ? Record[Idx++] : false; in readTypeRecord()
5482 unsigned Idx = 0; in readTypeRecord() local
5483 bool IsDependent = Record[Idx++]; in readTypeRecord()
5484 RecordDecl *RD = ReadDeclAs<RecordDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5496 unsigned Idx = 0; in readTypeRecord() local
5497 bool IsDependent = Record[Idx++]; in readTypeRecord()
5499 = Context.getEnumType(ReadDeclAs<EnumDecl>(*Loc.F, Record, Idx)); in readTypeRecord()
5509 QualType modifiedType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5510 QualType equivalentType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5520 QualType InnerType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5529 QualType Pattern = readType(*Loc.F, Record, Idx); in readTypeRecord()
5539 unsigned Idx = 0; in readTypeRecord() local
5540 ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++]; in readTypeRecord()
5541 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord()
5542 QualType NamedType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5547 unsigned Idx = 0; in readTypeRecord() local
5549 = ReadDeclAs<ObjCInterfaceDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5554 unsigned Idx = 0; in readTypeRecord() local
5555 QualType Base = readType(*Loc.F, Record, Idx); in readTypeRecord()
5556 unsigned NumProtos = Record[Idx++]; in readTypeRecord()
5559 Protos.push_back(ReadDeclAs<ObjCProtocolDecl>(*Loc.F, Record, Idx)); in readTypeRecord()
5564 unsigned Idx = 0; in readTypeRecord() local
5565 QualType Pointee = readType(*Loc.F, Record, Idx); in readTypeRecord()
5570 unsigned Idx = 0; in readTypeRecord() local
5571 QualType Parm = readType(*Loc.F, Record, Idx); in readTypeRecord()
5572 QualType Replacement = readType(*Loc.F, Record, Idx); in readTypeRecord()
5579 unsigned Idx = 0; in readTypeRecord() local
5580 QualType Parm = readType(*Loc.F, Record, Idx); in readTypeRecord()
5581 TemplateArgument ArgPack = ReadTemplateArgument(*Loc.F, Record, Idx); in readTypeRecord()
5588 CXXRecordDecl *D = ReadDeclAs<CXXRecordDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5589 QualType TST = readType(*Loc.F, Record, Idx); // probably derivable in readTypeRecord()
5608 unsigned Idx = 0; in readTypeRecord() local
5609 unsigned Depth = Record[Idx++]; in readTypeRecord()
5610 unsigned Index = Record[Idx++]; in readTypeRecord()
5611 bool Pack = Record[Idx++]; in readTypeRecord()
5613 = ReadDeclAs<TemplateTypeParmDecl>(*Loc.F, Record, Idx); in readTypeRecord()
5618 unsigned Idx = 0; in readTypeRecord() local
5619 ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++]; in readTypeRecord()
5620 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord()
5621 const IdentifierInfo *Name = this->GetIdentifierInfo(*Loc.F, Record, Idx); in readTypeRecord()
5622 QualType Canon = readType(*Loc.F, Record, Idx); in readTypeRecord()
5629 unsigned Idx = 0; in readTypeRecord() local
5630 ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++]; in readTypeRecord()
5631 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord()
5632 const IdentifierInfo *Name = this->GetIdentifierInfo(*Loc.F, Record, Idx); in readTypeRecord()
5633 unsigned NumArgs = Record[Idx++]; in readTypeRecord()
5637 Args.push_back(ReadTemplateArgument(*Loc.F, Record, Idx)); in readTypeRecord()
5643 unsigned Idx = 0; in readTypeRecord() local
5646 QualType ElementType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5648 = (ArrayType::ArraySizeModifier)Record[Idx++]; in readTypeRecord()
5649 unsigned IndexTypeQuals = Record[Idx++]; in readTypeRecord()
5653 SourceRange Brackets = ReadSourceRange(*Loc.F, Record, Idx); in readTypeRecord()
5660 unsigned Idx = 0; in readTypeRecord() local
5661 bool IsDependent = Record[Idx++]; in readTypeRecord()
5662 TemplateName Name = ReadTemplateName(*Loc.F, Record, Idx); in readTypeRecord()
5664 ReadTemplateArgumentList(Args, *Loc.F, Record, Idx); in readTypeRecord()
5665 QualType Underlying = readType(*Loc.F, Record, Idx); in readTypeRecord()
5682 QualType ValueType = readType(*Loc.F, Record, Idx); in readTypeRecord()
5692 const RecordData &Record, unsigned &Idx) { in readExceptionSpec() argument
5694 static_cast<ExceptionSpecificationType>(Record[Idx++]); in readExceptionSpec()
5697 for (unsigned I = 0, N = Record[Idx++]; I != N; ++I) in readExceptionSpec()
5698 Exceptions.push_back(readType(ModuleFile, Record, Idx)); in readExceptionSpec()
5703 ESI.SourceDecl = ReadDeclAs<FunctionDecl>(ModuleFile, Record, Idx); in readExceptionSpec()
5704 ESI.SourceTemplate = ReadDeclAs<FunctionDecl>(ModuleFile, Record, Idx); in readExceptionSpec()
5706 ESI.SourceDecl = ReadDeclAs<FunctionDecl>(ModuleFile, Record, Idx); in readExceptionSpec()
5714 unsigned &Idx; member in clang::TypeLocReader
5722 T *ReadDeclAs(const ASTReader::RecordData &Record, unsigned &Idx) { in ReadDeclAs() argument
5723 return Reader.ReadDeclAs<T>(F, Record, Idx); in ReadDeclAs()
5728 const ASTReader::RecordData &Record, unsigned &Idx) in TypeLocReader() argument
5729 : Reader(Reader), F(F), Record(Record), Idx(Idx) in TypeLocReader()
5748 TL.setBuiltinLoc(ReadSourceLocation(Record, Idx)); in VisitBuiltinTypeLoc()
5750 TL.setWrittenTypeSpec(static_cast<DeclSpec::TST>(Record[Idx++])); in VisitBuiltinTypeLoc()
5751 TL.setWrittenSignSpec(static_cast<DeclSpec::TSS>(Record[Idx++])); in VisitBuiltinTypeLoc()
5752 TL.setWrittenWidthSpec(static_cast<DeclSpec::TSW>(Record[Idx++])); in VisitBuiltinTypeLoc()
5753 TL.setModeAttr(Record[Idx++]); in VisitBuiltinTypeLoc()
5757 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitComplexTypeLoc()
5760 TL.setStarLoc(ReadSourceLocation(Record, Idx)); in VisitPointerTypeLoc()
5769 TL.setCaretLoc(ReadSourceLocation(Record, Idx)); in VisitBlockPointerTypeLoc()
5772 TL.setAmpLoc(ReadSourceLocation(Record, Idx)); in VisitLValueReferenceTypeLoc()
5775 TL.setAmpAmpLoc(ReadSourceLocation(Record, Idx)); in VisitRValueReferenceTypeLoc()
5778 TL.setStarLoc(ReadSourceLocation(Record, Idx)); in VisitMemberPointerTypeLoc()
5779 TL.setClassTInfo(Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitMemberPointerTypeLoc()
5782 TL.setLBracketLoc(ReadSourceLocation(Record, Idx)); in VisitArrayTypeLoc()
5783 TL.setRBracketLoc(ReadSourceLocation(Record, Idx)); in VisitArrayTypeLoc()
5784 if (Record[Idx++]) in VisitArrayTypeLoc()
5804 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitDependentSizedExtVectorTypeLoc()
5807 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitVectorTypeLoc()
5810 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitExtVectorTypeLoc()
5813 TL.setLocalRangeBegin(ReadSourceLocation(Record, Idx)); in VisitFunctionTypeLoc()
5814 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitFunctionTypeLoc()
5815 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitFunctionTypeLoc()
5816 TL.setLocalRangeEnd(ReadSourceLocation(Record, Idx)); in VisitFunctionTypeLoc()
5818 TL.setParam(i, ReadDeclAs<ParmVarDecl>(Record, Idx)); in VisitFunctionTypeLoc()
5828 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitUnresolvedUsingTypeLoc()
5831 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitTypedefTypeLoc()
5834 TL.setTypeofLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfExprTypeLoc()
5835 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfExprTypeLoc()
5836 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfExprTypeLoc()
5839 TL.setTypeofLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfTypeLoc()
5840 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfTypeLoc()
5841 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitTypeOfTypeLoc()
5842 TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitTypeOfTypeLoc()
5845 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitDecltypeTypeLoc()
5848 TL.setKWLoc(ReadSourceLocation(Record, Idx)); in VisitUnaryTransformTypeLoc()
5849 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitUnaryTransformTypeLoc()
5850 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitUnaryTransformTypeLoc()
5851 TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(F, Record, Idx)); in VisitUnaryTransformTypeLoc()
5854 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitAutoTypeLoc()
5857 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitRecordTypeLoc()
5860 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitEnumTypeLoc()
5863 TL.setAttrNameLoc(ReadSourceLocation(Record, Idx)); in VisitAttributedTypeLoc()
5866 range.setBegin(ReadSourceLocation(Record, Idx)); in VisitAttributedTypeLoc()
5867 range.setEnd(ReadSourceLocation(Record, Idx)); in VisitAttributedTypeLoc()
5871 if (Record[Idx++]) in VisitAttributedTypeLoc()
5876 TL.setAttrEnumOperandLoc(ReadSourceLocation(Record, Idx)); in VisitAttributedTypeLoc()
5879 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateTypeParmTypeLoc()
5883 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitSubstTemplateTypeParmTypeLoc()
5887 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitSubstTemplateTypeParmPackTypeLoc()
5891 TL.setTemplateKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateSpecializationTypeLoc()
5892 TL.setTemplateNameLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateSpecializationTypeLoc()
5893 TL.setLAngleLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateSpecializationTypeLoc()
5894 TL.setRAngleLoc(ReadSourceLocation(Record, Idx)); in VisitTemplateSpecializationTypeLoc()
5899 Record, Idx)); in VisitTemplateSpecializationTypeLoc()
5902 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitParenTypeLoc()
5903 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitParenTypeLoc()
5906 TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitElaboratedTypeLoc()
5907 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitElaboratedTypeLoc()
5910 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitInjectedClassNameTypeLoc()
5913 TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitDependentNameTypeLoc()
5914 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitDependentNameTypeLoc()
5915 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitDependentNameTypeLoc()
5919 TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5920 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5921 TL.setTemplateKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5922 TL.setTemplateNameLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5923 TL.setLAngleLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5924 TL.setRAngleLoc(ReadSourceLocation(Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5929 Record, Idx)); in VisitDependentTemplateSpecializationTypeLoc()
5932 TL.setEllipsisLoc(ReadSourceLocation(Record, Idx)); in VisitPackExpansionTypeLoc()
5935 TL.setNameLoc(ReadSourceLocation(Record, Idx)); in VisitObjCInterfaceTypeLoc()
5938 TL.setHasBaseTypeAsWritten(Record[Idx++]); in VisitObjCObjectTypeLoc()
5939 TL.setLAngleLoc(ReadSourceLocation(Record, Idx)); in VisitObjCObjectTypeLoc()
5940 TL.setRAngleLoc(ReadSourceLocation(Record, Idx)); in VisitObjCObjectTypeLoc()
5942 TL.setProtocolLoc(i, ReadSourceLocation(Record, Idx)); in VisitObjCObjectTypeLoc()
5945 TL.setStarLoc(ReadSourceLocation(Record, Idx)); in VisitObjCObjectPointerTypeLoc()
5948 TL.setKWLoc(ReadSourceLocation(Record, Idx)); in VisitAtomicTypeLoc()
5949 TL.setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitAtomicTypeLoc()
5950 TL.setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitAtomicTypeLoc()
5955 unsigned &Idx) { in GetTypeSourceInfo() argument
5956 QualType InfoTy = readType(F, Record, Idx); in GetTypeSourceInfo()
5961 TypeLocReader TLR(*this, F, Record, Idx); in GetTypeSourceInfo()
6197 unsigned &Idx) { in ReadCXXCtorInitializersRef() argument
6198 if (Idx >= Record.size() || Record[Idx] > M.LocalNumCXXCtorInitializers) { in ReadCXXCtorInitializersRef()
6203 unsigned LocalID = Record[Idx++]; in ReadCXXCtorInitializersRef()
6223 unsigned Idx = 0; in GetExternalCXXCtorInitializers() local
6224 return ReadCXXCtorInitializers(*Loc.F, Record, Idx); in GetExternalCXXCtorInitializers()
6229 unsigned &Idx) { in readCXXBaseSpecifiers() argument
6230 if (Idx >= Record.size() || Record[Idx] > M.LocalNumCXXBaseSpecifiers) { in readCXXBaseSpecifiers()
6235 unsigned LocalID = Record[Idx++]; in readCXXBaseSpecifiers()
6253 unsigned Idx = 0; in GetExternalCXXBaseSpecifiers() local
6254 unsigned NumBases = Record[Idx++]; in GetExternalCXXBaseSpecifiers()
6258 Bases[I] = ReadCXXBaseSpecifier(*Loc.F, Record, Idx); in GetExternalCXXBaseSpecifiers()
6414 unsigned &Idx) { in ReadDeclID() argument
6415 if (Idx >= Record.size()) { in ReadDeclID()
6420 return getGlobalDeclID(F, Record[Idx++]); in ReadDeclID()
7320 for (unsigned Idx = 0, N = UndefinedButUsed.size(); Idx != N;) { in ReadUndefinedButUsed() local
7321 NamedDecl *D = cast<NamedDecl>(GetDecl(UndefinedButUsed[Idx++])); in ReadUndefinedButUsed()
7323 SourceLocation::getFromRawEncoding(UndefinedButUsed[Idx++]); in ReadUndefinedButUsed()
7421 for (unsigned Idx = 0, N = VTableUses.size(); Idx < N; /* In loop */) { in ReadUsedVTables() local
7423 VT.Record = dyn_cast_or_null<CXXRecordDecl>(GetDecl(VTableUses[Idx++])); in ReadUsedVTables()
7424 VT.Location = SourceLocation::getFromRawEncoding(VTableUses[Idx++]); in ReadUsedVTables()
7425 VT.DefinitionRequired = VTableUses[Idx++]; in ReadUsedVTables()
7434 for (unsigned Idx = 0, N = PendingInstantiations.size(); Idx < N;) { in ReadPendingInstantiations() local
7435 ValueDecl *D = cast<ValueDecl>(GetDecl(PendingInstantiations[Idx++])); in ReadPendingInstantiations()
7437 = SourceLocation::getFromRawEncoding(PendingInstantiations[Idx++]); in ReadPendingInstantiations()
7446 for (unsigned Idx = 0, N = LateParsedTemplates.size(); Idx < N; in ReadLateParsedTemplates() local
7448 FunctionDecl *FD = cast<FunctionDecl>(GetDecl(LateParsedTemplates[Idx++])); in ReadLateParsedTemplates()
7451 LT->D = GetDecl(LateParsedTemplates[Idx++]); in ReadLateParsedTemplates()
7456 unsigned TokN = LateParsedTemplates[Idx++]; in ReadLateParsedTemplates()
7459 LT->Toks.push_back(ReadToken(*F, LateParsedTemplates, Idx)); in ReadLateParsedTemplates()
7666 unsigned Idx = ID - M.BaseSelectorID - NUM_PREDEF_SELECTOR_IDS; in DecodeSelector() local
7668 Trait.ReadKey(M.SelectorLookupTableData + M.SelectorOffsets[Idx], 0); in DecodeSelector()
7700 const RecordData &Record, unsigned &Idx) { in ReadDeclarationName() argument
7701 DeclarationName::NameKind Kind = (DeclarationName::NameKind)Record[Idx++]; in ReadDeclarationName()
7704 return DeclarationName(GetIdentifierInfo(F, Record, Idx)); in ReadDeclarationName()
7709 return DeclarationName(ReadSelector(F, Record, Idx)); in ReadDeclarationName()
7713 Context.getCanonicalType(readType(F, Record, Idx))); in ReadDeclarationName()
7717 Context.getCanonicalType(readType(F, Record, Idx))); in ReadDeclarationName()
7721 Context.getCanonicalType(readType(F, Record, Idx))); in ReadDeclarationName()
7725 (OverloadedOperatorKind)Record[Idx++]); in ReadDeclarationName()
7729 GetIdentifierInfo(F, Record, Idx)); in ReadDeclarationName()
7741 const RecordData &Record, unsigned &Idx) { in ReadDeclarationNameLoc() argument
7746 DNLoc.NamedType.TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadDeclarationNameLoc()
7751 = ReadSourceLocation(F, Record, Idx).getRawEncoding(); in ReadDeclarationNameLoc()
7753 = ReadSourceLocation(F, Record, Idx).getRawEncoding(); in ReadDeclarationNameLoc()
7758 = ReadSourceLocation(F, Record, Idx).getRawEncoding(); in ReadDeclarationNameLoc()
7772 const RecordData &Record, unsigned &Idx) { in ReadDeclarationNameInfo() argument
7773 NameInfo.setName(ReadDeclarationName(F, Record, Idx)); in ReadDeclarationNameInfo()
7774 NameInfo.setLoc(ReadSourceLocation(F, Record, Idx)); in ReadDeclarationNameInfo()
7776 ReadDeclarationNameLoc(F, DNLoc, NameInfo.getName(), Record, Idx); in ReadDeclarationNameInfo()
7781 const RecordData &Record, unsigned &Idx) { in ReadQualifierInfo() argument
7782 Info.QualifierLoc = ReadNestedNameSpecifierLoc(F, Record, Idx); in ReadQualifierInfo()
7783 unsigned NumTPLists = Record[Idx++]; in ReadQualifierInfo()
7788 Info.TemplParamLists[i] = ReadTemplateParameterList(F, Record, Idx); in ReadQualifierInfo()
7794 unsigned &Idx) { in ReadTemplateName() argument
7795 TemplateName::NameKind Kind = (TemplateName::NameKind)Record[Idx++]; in ReadTemplateName()
7798 return TemplateName(ReadDeclAs<TemplateDecl>(F, Record, Idx)); in ReadTemplateName()
7801 unsigned size = Record[Idx++]; in ReadTemplateName()
7804 Decls.addDecl(ReadDeclAs<NamedDecl>(F, Record, Idx)); in ReadTemplateName()
7810 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName()
7811 bool hasTemplKeyword = Record[Idx++]; in ReadTemplateName()
7812 TemplateDecl *Template = ReadDeclAs<TemplateDecl>(F, Record, Idx); in ReadTemplateName()
7817 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName()
7818 if (Record[Idx++]) // isIdentifier in ReadTemplateName()
7821 Idx)); in ReadTemplateName()
7823 (OverloadedOperatorKind)Record[Idx++]); in ReadTemplateName()
7828 = ReadDeclAs<TemplateTemplateParmDecl>(F, Record, Idx); in ReadTemplateName()
7830 TemplateName replacement = ReadTemplateName(F, Record, Idx); in ReadTemplateName()
7836 = ReadDeclAs<TemplateTemplateParmDecl>(F, Record, Idx); in ReadTemplateName()
7840 TemplateArgument ArgPack = ReadTemplateArgument(F, Record, Idx); in ReadTemplateName()
7853 const RecordData &Record, unsigned &Idx) { in ReadTemplateArgument() argument
7854 TemplateArgument::ArgKind Kind = (TemplateArgument::ArgKind)Record[Idx++]; in ReadTemplateArgument()
7859 return TemplateArgument(readType(F, Record, Idx)); in ReadTemplateArgument()
7861 ValueDecl *D = ReadDeclAs<ValueDecl>(F, Record, Idx); in ReadTemplateArgument()
7862 return TemplateArgument(D, readType(F, Record, Idx)); in ReadTemplateArgument()
7865 return TemplateArgument(readType(F, Record, Idx), /*isNullPtr*/true); in ReadTemplateArgument()
7867 llvm::APSInt Value = ReadAPSInt(Record, Idx); in ReadTemplateArgument()
7868 QualType T = readType(F, Record, Idx); in ReadTemplateArgument()
7872 return TemplateArgument(ReadTemplateName(F, Record, Idx)); in ReadTemplateArgument()
7874 TemplateName Name = ReadTemplateName(F, Record, Idx); in ReadTemplateArgument()
7876 if (unsigned NumExpansions = Record[Idx++]) in ReadTemplateArgument()
7883 unsigned NumArgs = Record[Idx++]; in ReadTemplateArgument()
7886 Args[I] = ReadTemplateArgument(F, Record, Idx); in ReadTemplateArgument()
7896 const RecordData &Record, unsigned &Idx) { in ReadTemplateParameterList() argument
7897 SourceLocation TemplateLoc = ReadSourceLocation(F, Record, Idx); in ReadTemplateParameterList()
7898 SourceLocation LAngleLoc = ReadSourceLocation(F, Record, Idx); in ReadTemplateParameterList()
7899 SourceLocation RAngleLoc = ReadSourceLocation(F, Record, Idx); in ReadTemplateParameterList()
7901 unsigned NumParams = Record[Idx++]; in ReadTemplateParameterList()
7905 Params.push_back(ReadDeclAs<NamedDecl>(F, Record, Idx)); in ReadTemplateParameterList()
7917 unsigned &Idx) { in ReadTemplateArgumentList() argument
7918 unsigned NumTemplateArgs = Record[Idx++]; in ReadTemplateArgumentList()
7921 TemplArgs.push_back(ReadTemplateArgument(F, Record, Idx)); in ReadTemplateArgumentList()
7926 const RecordData &Record, unsigned &Idx) { in ReadUnresolvedSet() argument
7927 unsigned NumDecls = Record[Idx++]; in ReadUnresolvedSet()
7930 DeclID ID = ReadDeclID(F, Record, Idx); in ReadUnresolvedSet()
7931 AccessSpecifier AS = (AccessSpecifier)Record[Idx++]; in ReadUnresolvedSet()
7938 const RecordData &Record, unsigned &Idx) { in ReadCXXBaseSpecifier() argument
7939 bool isVirtual = static_cast<bool>(Record[Idx++]); in ReadCXXBaseSpecifier()
7940 bool isBaseOfClass = static_cast<bool>(Record[Idx++]); in ReadCXXBaseSpecifier()
7941 AccessSpecifier AS = static_cast<AccessSpecifier>(Record[Idx++]); in ReadCXXBaseSpecifier()
7942 bool inheritConstructors = static_cast<bool>(Record[Idx++]); in ReadCXXBaseSpecifier()
7943 TypeSourceInfo *TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadCXXBaseSpecifier()
7944 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadCXXBaseSpecifier()
7945 SourceLocation EllipsisLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXBaseSpecifier()
7954 unsigned &Idx) { in ReadCXXCtorInitializers() argument
7955 unsigned NumInitializers = Record[Idx++]; in ReadCXXCtorInitializers()
7964 CtorInitializerType Type = (CtorInitializerType)Record[Idx++]; in ReadCXXCtorInitializers()
7967 TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadCXXCtorInitializers()
7968 IsBaseVirtual = Record[Idx++]; in ReadCXXCtorInitializers()
7972 TInfo = GetTypeSourceInfo(F, Record, Idx); in ReadCXXCtorInitializers()
7976 Member = ReadDeclAs<FieldDecl>(F, Record, Idx); in ReadCXXCtorInitializers()
7980 IndirectMember = ReadDeclAs<IndirectFieldDecl>(F, Record, Idx); in ReadCXXCtorInitializers()
7984 SourceLocation MemberOrEllipsisLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXCtorInitializers()
7986 SourceLocation LParenLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXCtorInitializers()
7987 SourceLocation RParenLoc = ReadSourceLocation(F, Record, Idx); in ReadCXXCtorInitializers()
7988 bool IsWritten = Record[Idx++]; in ReadCXXCtorInitializers()
7992 SourceOrderOrNumArrayIndices = Record[Idx++]; in ReadCXXCtorInitializers()
7994 SourceOrderOrNumArrayIndices = Record[Idx++]; in ReadCXXCtorInitializers()
7997 Indices.push_back(ReadDeclAs<VarDecl>(F, Record, Idx)); in ReadCXXCtorInitializers()
8039 const RecordData &Record, unsigned &Idx) { in ReadNestedNameSpecifier() argument
8040 unsigned N = Record[Idx++]; in ReadNestedNameSpecifier()
8044 = (NestedNameSpecifier::SpecifierKind)Record[Idx++]; in ReadNestedNameSpecifier()
8047 IdentifierInfo *II = GetIdentifierInfo(F, Record, Idx); in ReadNestedNameSpecifier()
8053 NamespaceDecl *NS = ReadDeclAs<NamespaceDecl>(F, Record, Idx); in ReadNestedNameSpecifier()
8059 NamespaceAliasDecl *Alias =ReadDeclAs<NamespaceAliasDecl>(F, Record, Idx); in ReadNestedNameSpecifier()
8066 const Type *T = readType(F, Record, Idx).getTypePtrOrNull(); in ReadNestedNameSpecifier()
8070 bool Template = Record[Idx++]; in ReadNestedNameSpecifier()
8082 CXXRecordDecl *RD = ReadDeclAs<CXXRecordDecl>(F, Record, Idx); in ReadNestedNameSpecifier()
8094 unsigned &Idx) { in ReadNestedNameSpecifierLoc() argument
8095 unsigned N = Record[Idx++]; in ReadNestedNameSpecifierLoc()
8099 = (NestedNameSpecifier::SpecifierKind)Record[Idx++]; in ReadNestedNameSpecifierLoc()
8102 IdentifierInfo *II = GetIdentifierInfo(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8103 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8109 NamespaceDecl *NS = ReadDeclAs<NamespaceDecl>(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8110 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8116 NamespaceAliasDecl *Alias =ReadDeclAs<NamespaceAliasDecl>(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8117 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8124 bool Template = Record[Idx++]; in ReadNestedNameSpecifierLoc()
8125 TypeSourceInfo *T = GetTypeSourceInfo(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8128 SourceLocation ColonColonLoc = ReadSourceLocation(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8138 SourceLocation ColonColonLoc = ReadSourceLocation(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8144 CXXRecordDecl *RD = ReadDeclAs<CXXRecordDecl>(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8145 SourceRange Range = ReadSourceRange(F, Record, Idx); in ReadNestedNameSpecifierLoc()
8157 unsigned &Idx) { in ReadSourceRange() argument
8158 SourceLocation beg = ReadSourceLocation(F, Record, Idx); in ReadSourceRange()
8159 SourceLocation end = ReadSourceLocation(F, Record, Idx); in ReadSourceRange()
8164 llvm::APInt ASTReader::ReadAPInt(const RecordData &Record, unsigned &Idx) { in ReadAPInt() argument
8165 unsigned BitWidth = Record[Idx++]; in ReadAPInt()
8167 llvm::APInt Result(BitWidth, NumWords, &Record[Idx]); in ReadAPInt()
8168 Idx += NumWords; in ReadAPInt()
8173 llvm::APSInt ASTReader::ReadAPSInt(const RecordData &Record, unsigned &Idx) { in ReadAPSInt() argument
8174 bool isUnsigned = Record[Idx++]; in ReadAPSInt()
8175 return llvm::APSInt(ReadAPInt(Record, Idx), isUnsigned); in ReadAPSInt()
8181 unsigned &Idx) { in ReadAPFloat() argument
8182 return llvm::APFloat(Sem, ReadAPInt(Record, Idx)); in ReadAPFloat()
8186 std::string ASTReader::ReadString(const RecordData &Record, unsigned &Idx) { in ReadString() argument
8187 unsigned Len = Record[Idx++]; in ReadString()
8188 std::string Result(Record.data() + Idx, Record.data() + Idx + Len); in ReadString()
8189 Idx += Len; in ReadString()
8194 unsigned &Idx) { in ReadPath() argument
8195 std::string Filename = ReadString(Record, Idx); in ReadPath()
8201 unsigned &Idx) { in ReadVersionTuple() argument
8202 unsigned Major = Record[Idx++]; in ReadVersionTuple()
8203 unsigned Minor = Record[Idx++]; in ReadVersionTuple()
8204 unsigned Subminor = Record[Idx++]; in ReadVersionTuple()
8214 unsigned &Idx) { in ReadCXXTemporary() argument
8215 CXXDestructorDecl *Decl = ReadDeclAs<CXXDestructorDecl>(F, Record, Idx); in ReadCXXTemporary()
8284 unsigned Idx = 0; in ReadComments() local
8285 SourceRange SR = ReadSourceRange(F, Record, Idx); in ReadComments()
8287 (RawComment::CommentKind) Record[Idx++]; in ReadComments()
8288 bool IsTrailingComment = Record[Idx++]; in ReadComments()
8289 bool IsAlmostTrailingComment = Record[Idx++]; in ReadComments()