Lines Matching refs:Idx
35 unsigned &Idx; member in clang::ASTStmtReader
83 const ASTReader::RecordData &Record, unsigned &Idx) in ASTStmtReader() argument
84 : Reader(Reader), F(F), DeclsCursor(Cursor), Record(Record), Idx(Idx) { } in ASTStmtReader()
112 SourceLocation TemplateKWLoc = ReadSourceLocation(Record, Idx); in ReadTemplateKWAndArgsInfo()
114 ArgInfo.setLAngleLoc(ReadSourceLocation(Record, Idx)); in ReadTemplateKWAndArgsInfo()
115 ArgInfo.setRAngleLoc(ReadSourceLocation(Record, Idx)); in ReadTemplateKWAndArgsInfo()
118 Reader.ReadTemplateArgumentLoc(F, Record, Idx)); in ReadTemplateKWAndArgsInfo()
123 assert(Idx == NumStmtFields && "Incorrect statement field count"); in VisitStmt()
128 S->setSemiLoc(ReadSourceLocation(Record, Idx)); in VisitNullStmt()
129 S->HasLeadingEmptyMacro = Record[Idx++]; in VisitNullStmt()
135 unsigned NumStmts = Record[Idx++]; in VisitCompoundStmt()
139 S->LBraceLoc = ReadSourceLocation(Record, Idx); in VisitCompoundStmt()
140 S->RBraceLoc = ReadSourceLocation(Record, Idx); in VisitCompoundStmt()
145 Reader.RecordSwitchCaseID(S, Record[Idx++]); in VisitSwitchCase()
146 S->setKeywordLoc(ReadSourceLocation(Record, Idx)); in VisitSwitchCase()
147 S->setColonLoc(ReadSourceLocation(Record, Idx)); in VisitSwitchCase()
155 S->setEllipsisLoc(ReadSourceLocation(Record, Idx)); in VisitCaseStmt()
165 LabelDecl *LD = ReadDeclAs<LabelDecl>(Record, Idx); in VisitLabelStmt()
169 S->setIdentLoc(ReadSourceLocation(Record, Idx)); in VisitLabelStmt()
174 uint64_t NumAttrs = Record[Idx++]; in VisitAttributedStmt()
176 Reader.ReadAttributes(F, Attrs, Record, Idx); in VisitAttributedStmt()
182 S->AttrLoc = ReadSourceLocation(Record, Idx); in VisitAttributedStmt()
187 S->setConstexpr(Record[Idx++]); in VisitIfStmt()
190 ReadDeclAs<VarDecl>(Record, Idx)); in VisitIfStmt()
194 S->setIfLoc(ReadSourceLocation(Record, Idx)); in VisitIfStmt()
195 S->setElseLoc(ReadSourceLocation(Record, Idx)); in VisitIfStmt()
202 ReadDeclAs<VarDecl>(Record, Idx)); in VisitSwitchStmt()
205 S->setSwitchLoc(ReadSourceLocation(Record, Idx)); in VisitSwitchStmt()
206 if (Record[Idx++]) in VisitSwitchStmt()
210 for (unsigned N = Record.size(); Idx != N; ++Idx) { in VisitSwitchStmt()
211 SwitchCase *SC = Reader.getSwitchCaseWithID(Record[Idx]); in VisitSwitchStmt()
224 ReadDeclAs<VarDecl>(Record, Idx)); in VisitWhileStmt()
228 S->setWhileLoc(ReadSourceLocation(Record, Idx)); in VisitWhileStmt()
235 S->setDoLoc(ReadSourceLocation(Record, Idx)); in VisitDoStmt()
236 S->setWhileLoc(ReadSourceLocation(Record, Idx)); in VisitDoStmt()
237 S->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitDoStmt()
245 ReadDeclAs<VarDecl>(Record, Idx)); in VisitForStmt()
248 S->setForLoc(ReadSourceLocation(Record, Idx)); in VisitForStmt()
249 S->setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitForStmt()
250 S->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitForStmt()
255 S->setLabel(ReadDeclAs<LabelDecl>(Record, Idx)); in VisitGotoStmt()
256 S->setGotoLoc(ReadSourceLocation(Record, Idx)); in VisitGotoStmt()
257 S->setLabelLoc(ReadSourceLocation(Record, Idx)); in VisitGotoStmt()
262 S->setGotoLoc(ReadSourceLocation(Record, Idx)); in VisitIndirectGotoStmt()
263 S->setStarLoc(ReadSourceLocation(Record, Idx)); in VisitIndirectGotoStmt()
269 S->setContinueLoc(ReadSourceLocation(Record, Idx)); in VisitContinueStmt()
274 S->setBreakLoc(ReadSourceLocation(Record, Idx)); in VisitBreakStmt()
280 S->setReturnLoc(ReadSourceLocation(Record, Idx)); in VisitReturnStmt()
281 S->setNRVOCandidate(ReadDeclAs<VarDecl>(Record, Idx)); in VisitReturnStmt()
286 S->setStartLoc(ReadSourceLocation(Record, Idx)); in VisitDeclStmt()
287 S->setEndLoc(ReadSourceLocation(Record, Idx)); in VisitDeclStmt()
289 if (Idx + 1 == Record.size()) { in VisitDeclStmt()
291 S->setDeclGroup(DeclGroupRef(ReadDecl(Record, Idx))); in VisitDeclStmt()
294 Decls.reserve(Record.size() - Idx); in VisitDeclStmt()
295 for (unsigned N = Record.size(); Idx != N; ) in VisitDeclStmt()
296 Decls.push_back(ReadDecl(Record, Idx)); in VisitDeclStmt()
305 S->NumOutputs = Record[Idx++]; in VisitAsmStmt()
306 S->NumInputs = Record[Idx++]; in VisitAsmStmt()
307 S->NumClobbers = Record[Idx++]; in VisitAsmStmt()
308 S->setAsmLoc(ReadSourceLocation(Record, Idx)); in VisitAsmStmt()
309 S->setVolatile(Record[Idx++]); in VisitAsmStmt()
310 S->setSimple(Record[Idx++]); in VisitAsmStmt()
315 S->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitGCCAsmStmt()
327 Names.push_back(Reader.GetIdentifierInfo(F, Record, Idx)); in VisitGCCAsmStmt()
345 S->LBraceLoc = ReadSourceLocation(Record, Idx); in VisitMSAsmStmt()
346 S->EndLoc = ReadSourceLocation(Record, Idx); in VisitMSAsmStmt()
347 S->NumAsmToks = Record[Idx++]; in VisitMSAsmStmt()
348 std::string AsmStr = ReadString(Record, Idx); in VisitMSAsmStmt()
354 AsmToks.push_back(ReadToken(Record, Idx)); in VisitMSAsmStmt()
366 ClobbersData.push_back(ReadString(Record, Idx)); in VisitMSAsmStmt()
380 ConstraintsData.push_back(ReadString(Record, Idx)); in VisitMSAsmStmt()
410 ++Idx; in VisitCapturedStmt()
411 S->setCapturedDecl(ReadDeclAs<CapturedDecl>(Record, Idx)); in VisitCapturedStmt()
412 S->setCapturedRegionKind(static_cast<CapturedRegionKind>(Record[Idx++])); in VisitCapturedStmt()
413 S->setCapturedRecordDecl(ReadDeclAs<RecordDecl>(Record, Idx)); in VisitCapturedStmt()
427 I.VarAndKind.setPointer(ReadDeclAs<VarDecl>(Record, Idx)); in VisitCapturedStmt()
429 .setInt(static_cast<CapturedStmt::VariableCaptureKind>(Record[Idx++])); in VisitCapturedStmt()
430 I.Loc = ReadSourceLocation(Record, Idx); in VisitCapturedStmt()
436 E->setType(Reader.readType(F, Record, Idx)); in VisitExpr()
437 E->setTypeDependent(Record[Idx++]); in VisitExpr()
438 E->setValueDependent(Record[Idx++]); in VisitExpr()
439 E->setInstantiationDependent(Record[Idx++]); in VisitExpr()
440 E->ExprBits.ContainsUnexpandedParameterPack = Record[Idx++]; in VisitExpr()
441 E->setValueKind(static_cast<ExprValueKind>(Record[Idx++])); in VisitExpr()
442 E->setObjectKind(static_cast<ExprObjectKind>(Record[Idx++])); in VisitExpr()
443 assert(Idx == NumExprFields && "Incorrect expression field count"); in VisitExpr()
448 E->setLocation(ReadSourceLocation(Record, Idx)); in VisitPredefinedExpr()
449 E->Type = (PredefinedExpr::IdentType)Record[Idx++]; in VisitPredefinedExpr()
456 E->DeclRefExprBits.HasQualifier = Record[Idx++]; in VisitDeclRefExpr()
457 E->DeclRefExprBits.HasFoundDecl = Record[Idx++]; in VisitDeclRefExpr()
458 E->DeclRefExprBits.HasTemplateKWAndArgsInfo = Record[Idx++]; in VisitDeclRefExpr()
459 E->DeclRefExprBits.HadMultipleCandidates = Record[Idx++]; in VisitDeclRefExpr()
460 E->DeclRefExprBits.RefersToEnclosingVariableOrCapture = Record[Idx++]; in VisitDeclRefExpr()
463 NumTemplateArgs = Record[Idx++]; in VisitDeclRefExpr()
468 Reader.ReadNestedNameSpecifierLoc(F, Record, Idx)); in VisitDeclRefExpr()
471 *E->getTrailingObjects<NamedDecl *>() = ReadDeclAs<NamedDecl>(Record, Idx); in VisitDeclRefExpr()
478 E->setDecl(ReadDeclAs<ValueDecl>(Record, Idx)); in VisitDeclRefExpr()
479 E->setLocation(ReadSourceLocation(Record, Idx)); in VisitDeclRefExpr()
480 ReadDeclarationNameLoc(E->DNLoc, E->getDecl()->getDeclName(), Record, Idx); in VisitDeclRefExpr()
485 E->setLocation(ReadSourceLocation(Record, Idx)); in VisitIntegerLiteral()
486 E->setValue(Reader.getContext(), Reader.ReadAPInt(Record, Idx)); in VisitIntegerLiteral()
491 E->setRawSemantics(static_cast<Stmt::APFloatSemantics>(Record[Idx++])); in VisitFloatingLiteral()
492 E->setExact(Record[Idx++]); in VisitFloatingLiteral()
494 Reader.ReadAPFloat(Record, E->getSemantics(), Idx)); in VisitFloatingLiteral()
495 E->setLocation(ReadSourceLocation(Record, Idx)); in VisitFloatingLiteral()
505 unsigned Len = Record[Idx++]; in VisitStringLiteral()
506 assert(Record[Idx] == E->getNumConcatenated() && in VisitStringLiteral()
508 ++Idx; in VisitStringLiteral()
510 static_cast<StringLiteral::StringKind>(Record[Idx++]); in VisitStringLiteral()
511 bool isPascal = Record[Idx++]; in VisitStringLiteral()
514 SmallString<16> Str(&Record[Idx], &Record[Idx] + Len); in VisitStringLiteral()
516 Idx += Len; in VisitStringLiteral()
520 E->setStrTokenLoc(I, ReadSourceLocation(Record, Idx)); in VisitStringLiteral()
525 E->setValue(Record[Idx++]); in VisitCharacterLiteral()
526 E->setLocation(ReadSourceLocation(Record, Idx)); in VisitCharacterLiteral()
527 E->setKind(static_cast<CharacterLiteral::CharacterKind>(Record[Idx++])); in VisitCharacterLiteral()
532 E->setLParen(ReadSourceLocation(Record, Idx)); in VisitParenExpr()
533 E->setRParen(ReadSourceLocation(Record, Idx)); in VisitParenExpr()
539 unsigned NumExprs = Record[Idx++]; in VisitParenListExpr()
544 E->LParenLoc = ReadSourceLocation(Record, Idx); in VisitParenListExpr()
545 E->RParenLoc = ReadSourceLocation(Record, Idx); in VisitParenListExpr()
551 E->setOpcode((UnaryOperator::Opcode)Record[Idx++]); in VisitUnaryOperator()
552 E->setOperatorLoc(ReadSourceLocation(Record, Idx)); in VisitUnaryOperator()
557 assert(E->getNumComponents() == Record[Idx]); in VisitOffsetOfExpr()
558 ++Idx; in VisitOffsetOfExpr()
559 assert(E->getNumExpressions() == Record[Idx]); in VisitOffsetOfExpr()
560 ++Idx; in VisitOffsetOfExpr()
561 E->setOperatorLoc(ReadSourceLocation(Record, Idx)); in VisitOffsetOfExpr()
562 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitOffsetOfExpr()
563 E->setTypeSourceInfo(GetTypeSourceInfo(Record, Idx)); in VisitOffsetOfExpr()
565 OffsetOfNode::Kind Kind = static_cast<OffsetOfNode::Kind>(Record[Idx++]); in VisitOffsetOfExpr()
566 SourceLocation Start = ReadSourceLocation(Record, Idx); in VisitOffsetOfExpr()
567 SourceLocation End = ReadSourceLocation(Record, Idx); in VisitOffsetOfExpr()
570 E->setComponent(I, OffsetOfNode(Start, Record[Idx++], End)); in VisitOffsetOfExpr()
575 I, OffsetOfNode(Start, ReadDeclAs<FieldDecl>(Record, Idx), End)); in VisitOffsetOfExpr()
581 OffsetOfNode(Start, Reader.GetIdentifierInfo(F, Record, Idx), End)); in VisitOffsetOfExpr()
586 *Base = Reader.ReadCXXBaseSpecifier(F, Record, Idx); in VisitOffsetOfExpr()
599 E->setKind(static_cast<UnaryExprOrTypeTrait>(Record[Idx++])); in VisitUnaryExprOrTypeTraitExpr()
600 if (Record[Idx] == 0) { in VisitUnaryExprOrTypeTraitExpr()
602 ++Idx; in VisitUnaryExprOrTypeTraitExpr()
604 E->setArgument(GetTypeSourceInfo(Record, Idx)); in VisitUnaryExprOrTypeTraitExpr()
606 E->setOperatorLoc(ReadSourceLocation(Record, Idx)); in VisitUnaryExprOrTypeTraitExpr()
607 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitUnaryExprOrTypeTraitExpr()
614 E->setRBracketLoc(ReadSourceLocation(Record, Idx)); in VisitArraySubscriptExpr()
622 E->setColonLoc(ReadSourceLocation(Record, Idx)); in VisitOMPArraySectionExpr()
623 E->setRBracketLoc(ReadSourceLocation(Record, Idx)); in VisitOMPArraySectionExpr()
628 E->setNumArgs(Reader.getContext(), Record[Idx++]); in VisitCallExpr()
629 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitCallExpr()
648 E->setIsaMemberLoc(ReadSourceLocation(Record, Idx)); in VisitObjCIsaExpr()
649 E->setOpLoc(ReadSourceLocation(Record, Idx)); in VisitObjCIsaExpr()
650 E->setArrow(Record[Idx++]); in VisitObjCIsaExpr()
657 E->setShouldCopy(Record[Idx++]); in VisitObjCIndirectCopyRestoreExpr()
662 E->LParenLoc = ReadSourceLocation(Record, Idx); in VisitObjCBridgedCastExpr()
663 E->BridgeKeywordLoc = ReadSourceLocation(Record, Idx); in VisitObjCBridgedCastExpr()
664 E->Kind = Record[Idx++]; in VisitObjCBridgedCastExpr()
669 unsigned NumBaseSpecs = Record[Idx++]; in VisitCastExpr()
672 E->setCastKind((CastKind)Record[Idx++]); in VisitCastExpr()
676 *BaseSpec = Reader.ReadCXXBaseSpecifier(F, Record, Idx); in VisitCastExpr()
685 E->setOpcode((BinaryOperator::Opcode)Record[Idx++]); in VisitBinaryOperator()
686 E->setOperatorLoc(ReadSourceLocation(Record, Idx)); in VisitBinaryOperator()
687 E->setFPContractable((bool)Record[Idx++]); in VisitBinaryOperator()
692 E->setComputationLHSType(Reader.readType(F, Record, Idx)); in VisitCompoundAssignOperator()
693 E->setComputationResultType(Reader.readType(F, Record, Idx)); in VisitCompoundAssignOperator()
701 E->QuestionLoc = ReadSourceLocation(Record, Idx); in VisitConditionalOperator()
702 E->ColonLoc = ReadSourceLocation(Record, Idx); in VisitConditionalOperator()
713 E->QuestionLoc = ReadSourceLocation(Record, Idx); in VisitBinaryConditionalOperator()
714 E->ColonLoc = ReadSourceLocation(Record, Idx); in VisitBinaryConditionalOperator()
723 E->setTypeInfoAsWritten(GetTypeSourceInfo(Record, Idx)); in VisitExplicitCastExpr()
728 E->setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitCStyleCastExpr()
729 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitCStyleCastExpr()
734 E->setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitCompoundLiteralExpr()
735 E->setTypeSourceInfo(GetTypeSourceInfo(Record, Idx)); in VisitCompoundLiteralExpr()
737 E->setFileScope(Record[Idx++]); in VisitCompoundLiteralExpr()
743 E->setAccessor(Reader.GetIdentifierInfo(F, Record, Idx)); in VisitExtVectorElementExpr()
744 E->setAccessorLoc(ReadSourceLocation(Record, Idx)); in VisitExtVectorElementExpr()
751 E->setLBraceLoc(ReadSourceLocation(Record, Idx)); in VisitInitListExpr()
752 E->setRBraceLoc(ReadSourceLocation(Record, Idx)); in VisitInitListExpr()
753 bool isArrayFiller = Record[Idx++]; in VisitInitListExpr()
759 E->ArrayFillerOrUnionFieldInit = ReadDeclAs<FieldDecl>(Record, Idx); in VisitInitListExpr()
760 E->sawArrayRangeDesignator(Record[Idx++]); in VisitInitListExpr()
761 unsigned NumInits = Record[Idx++]; in VisitInitListExpr()
778 unsigned NumSubExprs = Record[Idx++]; in VisitDesignatedInitExpr()
782 E->setEqualOrColonLoc(ReadSourceLocation(Record, Idx)); in VisitDesignatedInitExpr()
783 E->setGNUSyntax(Record[Idx++]); in VisitDesignatedInitExpr()
786 while (Idx < Record.size()) { in VisitDesignatedInitExpr()
787 switch ((DesignatorTypes)Record[Idx++]) { in VisitDesignatedInitExpr()
789 FieldDecl *Field = ReadDeclAs<FieldDecl>(Record, Idx); in VisitDesignatedInitExpr()
791 = ReadSourceLocation(Record, Idx); in VisitDesignatedInitExpr()
793 = ReadSourceLocation(Record, Idx); in VisitDesignatedInitExpr()
801 const IdentifierInfo *Name = Reader.GetIdentifierInfo(F, Record, Idx); in VisitDesignatedInitExpr()
803 = ReadSourceLocation(Record, Idx); in VisitDesignatedInitExpr()
805 = ReadSourceLocation(Record, Idx); in VisitDesignatedInitExpr()
811 unsigned Index = Record[Idx++]; in VisitDesignatedInitExpr()
813 = ReadSourceLocation(Record, Idx); in VisitDesignatedInitExpr()
815 = ReadSourceLocation(Record, Idx); in VisitDesignatedInitExpr()
821 unsigned Index = Record[Idx++]; in VisitDesignatedInitExpr()
823 = ReadSourceLocation(Record, Idx); in VisitDesignatedInitExpr()
825 = ReadSourceLocation(Record, Idx); in VisitDesignatedInitExpr()
827 = ReadSourceLocation(Record, Idx); in VisitDesignatedInitExpr()
855 E->setWrittenTypeInfo(GetTypeSourceInfo(Record, Idx)); in VisitVAArgExpr()
856 E->setBuiltinLoc(ReadSourceLocation(Record, Idx)); in VisitVAArgExpr()
857 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitVAArgExpr()
858 E->setIsMicrosoftABI(Record[Idx++]); in VisitVAArgExpr()
863 E->setAmpAmpLoc(ReadSourceLocation(Record, Idx)); in VisitAddrLabelExpr()
864 E->setLabelLoc(ReadSourceLocation(Record, Idx)); in VisitAddrLabelExpr()
865 E->setLabel(ReadDeclAs<LabelDecl>(Record, Idx)); in VisitAddrLabelExpr()
870 E->setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitStmtExpr()
871 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitStmtExpr()
880 E->setBuiltinLoc(ReadSourceLocation(Record, Idx)); in VisitChooseExpr()
881 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitChooseExpr()
882 E->setIsConditionTrue(Record[Idx++]); in VisitChooseExpr()
887 E->setTokenLocation(ReadSourceLocation(Record, Idx)); in VisitGNUNullExpr()
893 unsigned NumExprs = Record[Idx++]; in VisitShuffleVectorExpr()
897 E->setBuiltinLoc(ReadSourceLocation(Record, Idx)); in VisitShuffleVectorExpr()
898 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitShuffleVectorExpr()
903 E->BuiltinLoc = ReadSourceLocation(Record, Idx); in VisitConvertVectorExpr()
904 E->RParenLoc = ReadSourceLocation(Record, Idx); in VisitConvertVectorExpr()
905 E->TInfo = GetTypeSourceInfo(Record, Idx); in VisitConvertVectorExpr()
911 E->setBlockDecl(ReadDeclAs<BlockDecl>(Record, Idx)); in VisitBlockExpr()
916 E->NumAssocs = Record[Idx++]; in VisitGenericSelectionExpr()
923 E->AssocTypes[I] = GetTypeSourceInfo(Record, Idx); in VisitGenericSelectionExpr()
926 E->ResultIndex = Record[Idx++]; in VisitGenericSelectionExpr()
928 E->GenericLoc = ReadSourceLocation(Record, Idx); in VisitGenericSelectionExpr()
929 E->DefaultLoc = ReadSourceLocation(Record, Idx); in VisitGenericSelectionExpr()
930 E->RParenLoc = ReadSourceLocation(Record, Idx); in VisitGenericSelectionExpr()
935 unsigned numSemanticExprs = Record[Idx++]; in VisitPseudoObjectExpr()
937 E->PseudoObjectExprBits.ResultIndex = Record[Idx++]; in VisitPseudoObjectExpr()
951 E->Op = AtomicExpr::AtomicOp(Record[Idx++]); in VisitAtomicExpr()
955 E->BuiltinLoc = ReadSourceLocation(Record, Idx); in VisitAtomicExpr()
956 E->RParenLoc = ReadSourceLocation(Record, Idx); in VisitAtomicExpr()
965 E->setAtLoc(ReadSourceLocation(Record, Idx)); in VisitObjCStringLiteral()
972 E->BoxingMethod = ReadDeclAs<ObjCMethodDecl>(Record, Idx); in VisitObjCBoxedExpr()
973 E->Range = ReadSourceRange(Record, Idx); in VisitObjCBoxedExpr()
978 unsigned NumElements = Record[Idx++]; in VisitObjCArrayLiteral()
983 E->ArrayWithObjectsMethod = ReadDeclAs<ObjCMethodDecl>(Record, Idx); in VisitObjCArrayLiteral()
984 E->Range = ReadSourceRange(Record, Idx); in VisitObjCArrayLiteral()
989 unsigned NumElements = Record[Idx++]; in VisitObjCDictionaryLiteral()
991 bool HasPackExpansions = Record[Idx++]; in VisitObjCDictionaryLiteral()
1001 Expansions[I].EllipsisLoc = ReadSourceLocation(Record, Idx); in VisitObjCDictionaryLiteral()
1002 Expansions[I].NumExpansionsPlusOne = Record[Idx++]; in VisitObjCDictionaryLiteral()
1005 E->DictWithObjectsMethod = ReadDeclAs<ObjCMethodDecl>(Record, Idx); in VisitObjCDictionaryLiteral()
1006 E->Range = ReadSourceRange(Record, Idx); in VisitObjCDictionaryLiteral()
1011 E->setEncodedTypeSourceInfo(GetTypeSourceInfo(Record, Idx)); in VisitObjCEncodeExpr()
1012 E->setAtLoc(ReadSourceLocation(Record, Idx)); in VisitObjCEncodeExpr()
1013 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitObjCEncodeExpr()
1018 E->setSelector(Reader.ReadSelector(F, Record, Idx)); in VisitObjCSelectorExpr()
1019 E->setAtLoc(ReadSourceLocation(Record, Idx)); in VisitObjCSelectorExpr()
1020 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitObjCSelectorExpr()
1025 E->setProtocol(ReadDeclAs<ObjCProtocolDecl>(Record, Idx)); in VisitObjCProtocolExpr()
1026 E->setAtLoc(ReadSourceLocation(Record, Idx)); in VisitObjCProtocolExpr()
1027 E->ProtoLoc = ReadSourceLocation(Record, Idx); in VisitObjCProtocolExpr()
1028 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitObjCProtocolExpr()
1033 E->setDecl(ReadDeclAs<ObjCIvarDecl>(Record, Idx)); in VisitObjCIvarRefExpr()
1034 E->setLocation(ReadSourceLocation(Record, Idx)); in VisitObjCIvarRefExpr()
1035 E->setOpLoc(ReadSourceLocation(Record, Idx)); in VisitObjCIvarRefExpr()
1037 E->setIsArrow(Record[Idx++]); in VisitObjCIvarRefExpr()
1038 E->setIsFreeIvar(Record[Idx++]); in VisitObjCIvarRefExpr()
1043 unsigned MethodRefFlags = Record[Idx++]; in VisitObjCPropertyRefExpr()
1044 bool Implicit = Record[Idx++] != 0; in VisitObjCPropertyRefExpr()
1046 ObjCMethodDecl *Getter = ReadDeclAs<ObjCMethodDecl>(Record, Idx); in VisitObjCPropertyRefExpr()
1047 ObjCMethodDecl *Setter = ReadDeclAs<ObjCMethodDecl>(Record, Idx); in VisitObjCPropertyRefExpr()
1050 E->setExplicitProperty(ReadDeclAs<ObjCPropertyDecl>(Record, Idx), in VisitObjCPropertyRefExpr()
1053 E->setLocation(ReadSourceLocation(Record, Idx)); in VisitObjCPropertyRefExpr()
1054 E->setReceiverLocation(ReadSourceLocation(Record, Idx)); in VisitObjCPropertyRefExpr()
1055 switch (Record[Idx++]) { in VisitObjCPropertyRefExpr()
1060 E->setSuperReceiver(Reader.readType(F, Record, Idx)); in VisitObjCPropertyRefExpr()
1063 E->setClassReceiver(ReadDeclAs<ObjCInterfaceDecl>(Record, Idx)); in VisitObjCPropertyRefExpr()
1070 E->setRBracket(ReadSourceLocation(Record, Idx)); in VisitObjCSubscriptRefExpr()
1073 E->GetAtIndexMethodDecl = ReadDeclAs<ObjCMethodDecl>(Record, Idx); in VisitObjCSubscriptRefExpr()
1074 E->SetAtIndexMethodDecl = ReadDeclAs<ObjCMethodDecl>(Record, Idx); in VisitObjCSubscriptRefExpr()
1079 assert(Record[Idx] == E->getNumArgs()); in VisitObjCMessageExpr()
1080 ++Idx; in VisitObjCMessageExpr()
1081 unsigned NumStoredSelLocs = Record[Idx++]; in VisitObjCMessageExpr()
1082 E->SelLocsKind = Record[Idx++]; in VisitObjCMessageExpr()
1083 E->setDelegateInitCall(Record[Idx++]); in VisitObjCMessageExpr()
1084 E->IsImplicit = Record[Idx++]; in VisitObjCMessageExpr()
1086 = static_cast<ObjCMessageExpr::ReceiverKind>(Record[Idx++]); in VisitObjCMessageExpr()
1093 E->setClassReceiver(GetTypeSourceInfo(Record, Idx)); in VisitObjCMessageExpr()
1098 QualType T = Reader.readType(F, Record, Idx); in VisitObjCMessageExpr()
1099 SourceLocation SuperLoc = ReadSourceLocation(Record, Idx); in VisitObjCMessageExpr()
1107 if (Record[Idx++]) in VisitObjCMessageExpr()
1108 E->setMethodDecl(ReadDeclAs<ObjCMethodDecl>(Record, Idx)); in VisitObjCMessageExpr()
1110 E->setSelector(Reader.ReadSelector(F, Record, Idx)); in VisitObjCMessageExpr()
1112 E->LBracLoc = ReadSourceLocation(Record, Idx); in VisitObjCMessageExpr()
1113 E->RBracLoc = ReadSourceLocation(Record, Idx); in VisitObjCMessageExpr()
1120 Locs[I] = ReadSourceLocation(Record, Idx); in VisitObjCMessageExpr()
1128 S->setForLoc(ReadSourceLocation(Record, Idx)); in VisitObjCForCollectionStmt()
1129 S->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitObjCForCollectionStmt()
1135 S->setCatchParamDecl(ReadDeclAs<VarDecl>(Record, Idx)); in VisitObjCAtCatchStmt()
1136 S->setAtCatchLoc(ReadSourceLocation(Record, Idx)); in VisitObjCAtCatchStmt()
1137 S->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitObjCAtCatchStmt()
1143 S->setAtFinallyLoc(ReadSourceLocation(Record, Idx)); in VisitObjCAtFinallyStmt()
1149 S->setAtLoc(ReadSourceLocation(Record, Idx)); in VisitObjCAutoreleasePoolStmt()
1154 assert(Record[Idx] == S->getNumCatchStmts()); in VisitObjCAtTryStmt()
1155 ++Idx; in VisitObjCAtTryStmt()
1156 bool HasFinally = Record[Idx++]; in VisitObjCAtTryStmt()
1163 S->setAtTryLoc(ReadSourceLocation(Record, Idx)); in VisitObjCAtTryStmt()
1170 S->setAtSynchronizedLoc(ReadSourceLocation(Record, Idx)); in VisitObjCAtSynchronizedStmt()
1176 S->setThrowLoc(ReadSourceLocation(Record, Idx)); in VisitObjCAtThrowStmt()
1181 E->setValue(Record[Idx++]); in VisitObjCBoolLiteralExpr()
1182 E->setLocation(ReadSourceLocation(Record, Idx)); in VisitObjCBoolLiteralExpr()
1191 S->CatchLoc = ReadSourceLocation(Record, Idx); in VisitCXXCatchStmt()
1192 S->ExceptionDecl = ReadDeclAs<VarDecl>(Record, Idx); in VisitCXXCatchStmt()
1198 assert(Record[Idx] == S->getNumHandlers() && "NumStmtFields is wrong ?"); in VisitCXXTryStmt()
1199 ++Idx; in VisitCXXTryStmt()
1200 S->TryLoc = ReadSourceLocation(Record, Idx); in VisitCXXTryStmt()
1208 S->ForLoc = ReadSourceLocation(Record, Idx); in VisitCXXForRangeStmt()
1209 S->CoawaitLoc = ReadSourceLocation(Record, Idx); in VisitCXXForRangeStmt()
1210 S->ColonLoc = ReadSourceLocation(Record, Idx); in VisitCXXForRangeStmt()
1211 S->RParenLoc = ReadSourceLocation(Record, Idx); in VisitCXXForRangeStmt()
1223 S->KeywordLoc = ReadSourceLocation(Record, Idx); in VisitMSDependentExistsStmt()
1224 S->IsIfExists = Record[Idx++]; in VisitMSDependentExistsStmt()
1225 S->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx); in VisitMSDependentExistsStmt()
1226 ReadDeclarationNameInfo(S->NameInfo, Record, Idx); in VisitMSDependentExistsStmt()
1232 E->Operator = (OverloadedOperatorKind)Record[Idx++]; in VisitCXXOperatorCallExpr()
1233 E->Range = Reader.ReadSourceRange(F, Record, Idx); in VisitCXXOperatorCallExpr()
1234 E->setFPContractable((bool)Record[Idx++]); in VisitCXXOperatorCallExpr()
1239 E->NumArgs = Record[Idx++]; in VisitCXXConstructExpr()
1244 E->setConstructor(ReadDeclAs<CXXConstructorDecl>(Record, Idx)); in VisitCXXConstructExpr()
1245 E->setLocation(ReadSourceLocation(Record, Idx)); in VisitCXXConstructExpr()
1246 E->setElidable(Record[Idx++]); in VisitCXXConstructExpr()
1247 E->setHadMultipleCandidates(Record[Idx++]); in VisitCXXConstructExpr()
1248 E->setListInitialization(Record[Idx++]); in VisitCXXConstructExpr()
1249 E->setStdInitListInitialization(Record[Idx++]); in VisitCXXConstructExpr()
1250 E->setRequiresZeroInitialization(Record[Idx++]); in VisitCXXConstructExpr()
1251 E->setConstructionKind((CXXConstructExpr::ConstructionKind)Record[Idx++]); in VisitCXXConstructExpr()
1252 E->ParenOrBraceRange = ReadSourceRange(Record, Idx); in VisitCXXConstructExpr()
1257 E->Constructor = ReadDeclAs<CXXConstructorDecl>(Record, Idx); in VisitCXXInheritedCtorInitExpr()
1258 E->Loc = ReadSourceLocation(Record, Idx); in VisitCXXInheritedCtorInitExpr()
1259 E->ConstructsVirtualBase = Record[Idx++]; in VisitCXXInheritedCtorInitExpr()
1260 E->InheritedFromVirtualBase = Record[Idx++]; in VisitCXXInheritedCtorInitExpr()
1265 E->Type = GetTypeSourceInfo(Record, Idx); in VisitCXXTemporaryObjectExpr()
1270 unsigned NumCaptures = Record[Idx++]; in VisitLambdaExpr()
1272 unsigned NumArrayIndexVars = Record[Idx++]; in VisitLambdaExpr()
1273 E->IntroducerRange = ReadSourceRange(Record, Idx); in VisitLambdaExpr()
1274 E->CaptureDefault = static_cast<LambdaCaptureDefault>(Record[Idx++]); in VisitLambdaExpr()
1275 E->CaptureDefaultLoc = ReadSourceLocation(Record, Idx); in VisitLambdaExpr()
1276 E->ExplicitParams = Record[Idx++]; in VisitLambdaExpr()
1277 E->ExplicitResultType = Record[Idx++]; in VisitLambdaExpr()
1278 E->ClosingBrace = ReadSourceLocation(Record, Idx); in VisitLambdaExpr()
1290 ArrayIndexStarts[I] = Record[Idx++]; in VisitLambdaExpr()
1294 ArrayIndexVars[I] = ReadDeclAs<VarDecl>(Record, Idx); in VisitLambdaExpr()
1306 SourceRange R = ReadSourceRange(Record, Idx); in VisitCXXNamedCastExpr()
1309 R = ReadSourceRange(Record, Idx); in VisitCXXNamedCastExpr()
1331 E->setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitCXXFunctionalCastExpr()
1332 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitCXXFunctionalCastExpr()
1337 E->UDSuffixLoc = ReadSourceLocation(Record, Idx); in VisitUserDefinedLiteral()
1342 E->setValue(Record[Idx++]); in VisitCXXBoolLiteralExpr()
1343 E->setLocation(ReadSourceLocation(Record, Idx)); in VisitCXXBoolLiteralExpr()
1348 E->setLocation(ReadSourceLocation(Record, Idx)); in VisitCXXNullPtrLiteralExpr()
1353 E->setSourceRange(ReadSourceRange(Record, Idx)); in VisitCXXTypeidExpr()
1356 GetTypeSourceInfo(Record, Idx)); in VisitCXXTypeidExpr()
1366 E->setLocation(ReadSourceLocation(Record, Idx)); in VisitCXXThisExpr()
1367 E->setImplicit(Record[Idx++]); in VisitCXXThisExpr()
1372 E->ThrowLoc = ReadSourceLocation(Record, Idx); in VisitCXXThrowExpr()
1374 E->IsThrownVariableInScope = Record[Idx++]; in VisitCXXThrowExpr()
1379 E->Param = ReadDeclAs<ParmVarDecl>(Record, Idx); in VisitCXXDefaultArgExpr()
1380 E->Loc = ReadSourceLocation(Record, Idx); in VisitCXXDefaultArgExpr()
1385 E->Field = ReadDeclAs<FieldDecl>(Record, Idx); in VisitCXXDefaultInitExpr()
1386 E->Loc = ReadSourceLocation(Record, Idx); in VisitCXXDefaultInitExpr()
1391 E->setTemporary(Reader.ReadCXXTemporary(F, Record, Idx)); in VisitCXXBindTemporaryExpr()
1397 E->TypeInfo = GetTypeSourceInfo(Record, Idx); in VisitCXXScalarValueInitExpr()
1398 E->RParenLoc = ReadSourceLocation(Record, Idx); in VisitCXXScalarValueInitExpr()
1403 E->GlobalNew = Record[Idx++]; in VisitCXXNewExpr()
1404 bool isArray = Record[Idx++]; in VisitCXXNewExpr()
1405 E->UsualArrayDeleteWantsSize = Record[Idx++]; in VisitCXXNewExpr()
1406 unsigned NumPlacementArgs = Record[Idx++]; in VisitCXXNewExpr()
1407 E->StoredInitializationStyle = Record[Idx++]; in VisitCXXNewExpr()
1408 E->setOperatorNew(ReadDeclAs<FunctionDecl>(Record, Idx)); in VisitCXXNewExpr()
1409 E->setOperatorDelete(ReadDeclAs<FunctionDecl>(Record, Idx)); in VisitCXXNewExpr()
1410 E->AllocatedTypeInfo = GetTypeSourceInfo(Record, Idx); in VisitCXXNewExpr()
1411 E->TypeIdParens = ReadSourceRange(Record, Idx); in VisitCXXNewExpr()
1412 E->Range = ReadSourceRange(Record, Idx); in VisitCXXNewExpr()
1413 E->DirectInitRange = ReadSourceRange(Record, Idx); in VisitCXXNewExpr()
1426 E->GlobalDelete = Record[Idx++]; in VisitCXXDeleteExpr()
1427 E->ArrayForm = Record[Idx++]; in VisitCXXDeleteExpr()
1428 E->ArrayFormAsWritten = Record[Idx++]; in VisitCXXDeleteExpr()
1429 E->UsualArrayDeleteWantsSize = Record[Idx++]; in VisitCXXDeleteExpr()
1430 E->OperatorDelete = ReadDeclAs<FunctionDecl>(Record, Idx); in VisitCXXDeleteExpr()
1432 E->Loc = ReadSourceLocation(Record, Idx); in VisitCXXDeleteExpr()
1439 E->IsArrow = Record[Idx++]; in VisitCXXPseudoDestructorExpr()
1440 E->OperatorLoc = ReadSourceLocation(Record, Idx); in VisitCXXPseudoDestructorExpr()
1441 E->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx); in VisitCXXPseudoDestructorExpr()
1442 E->ScopeType = GetTypeSourceInfo(Record, Idx); in VisitCXXPseudoDestructorExpr()
1443 E->ColonColonLoc = ReadSourceLocation(Record, Idx); in VisitCXXPseudoDestructorExpr()
1444 E->TildeLoc = ReadSourceLocation(Record, Idx); in VisitCXXPseudoDestructorExpr()
1446 IdentifierInfo *II = Reader.GetIdentifierInfo(F, Record, Idx); in VisitCXXPseudoDestructorExpr()
1448 E->setDestroyedType(II, ReadSourceLocation(Record, Idx)); in VisitCXXPseudoDestructorExpr()
1450 E->setDestroyedType(GetTypeSourceInfo(Record, Idx)); in VisitCXXPseudoDestructorExpr()
1456 unsigned NumObjects = Record[Idx++]; in VisitExprWithCleanups()
1460 ReadDeclAs<BlockDecl>(Record, Idx); in VisitExprWithCleanups()
1462 E->ExprWithCleanupsBits.CleanupsHaveSideEffects = Record[Idx++]; in VisitExprWithCleanups()
1470 if (Record[Idx++]) // HasTemplateKWAndArgsInfo in VisitCXXDependentScopeMemberExpr()
1474 /*NumTemplateArgs=*/Record[Idx++]); in VisitCXXDependentScopeMemberExpr()
1477 E->BaseType = Reader.readType(F, Record, Idx); in VisitCXXDependentScopeMemberExpr()
1478 E->IsArrow = Record[Idx++]; in VisitCXXDependentScopeMemberExpr()
1479 E->OperatorLoc = ReadSourceLocation(Record, Idx); in VisitCXXDependentScopeMemberExpr()
1480 E->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx); in VisitCXXDependentScopeMemberExpr()
1481 E->FirstQualifierFoundInScope = ReadDeclAs<NamedDecl>(Record, Idx); in VisitCXXDependentScopeMemberExpr()
1482 ReadDeclarationNameInfo(E->MemberNameInfo, Record, Idx); in VisitCXXDependentScopeMemberExpr()
1489 if (Record[Idx++]) // HasTemplateKWAndArgsInfo in VisitDependentScopeDeclRefExpr()
1493 /*NumTemplateArgs=*/Record[Idx++]); in VisitDependentScopeDeclRefExpr()
1495 E->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx); in VisitDependentScopeDeclRefExpr()
1496 ReadDeclarationNameInfo(E->NameInfo, Record, Idx); in VisitDependentScopeDeclRefExpr()
1502 assert(Record[Idx] == E->arg_size() && "Read wrong record during creation ?"); in VisitCXXUnresolvedConstructExpr()
1503 ++Idx; // NumArgs; in VisitCXXUnresolvedConstructExpr()
1506 E->Type = GetTypeSourceInfo(Record, Idx); in VisitCXXUnresolvedConstructExpr()
1507 E->setLParenLoc(ReadSourceLocation(Record, Idx)); in VisitCXXUnresolvedConstructExpr()
1508 E->setRParenLoc(ReadSourceLocation(Record, Idx)); in VisitCXXUnresolvedConstructExpr()
1514 if (Record[Idx++]) // HasTemplateKWAndArgsInfo in VisitOverloadExpr()
1517 /*NumTemplateArgs=*/Record[Idx++]); in VisitOverloadExpr()
1519 unsigned NumDecls = Record[Idx++]; in VisitOverloadExpr()
1522 NamedDecl *D = ReadDeclAs<NamedDecl>(Record, Idx); in VisitOverloadExpr()
1523 AccessSpecifier AS = (AccessSpecifier)Record[Idx++]; in VisitOverloadExpr()
1528 ReadDeclarationNameInfo(E->NameInfo, Record, Idx); in VisitOverloadExpr()
1529 E->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx); in VisitOverloadExpr()
1534 E->IsArrow = Record[Idx++]; in VisitUnresolvedMemberExpr()
1535 E->HasUnresolvedUsing = Record[Idx++]; in VisitUnresolvedMemberExpr()
1537 E->BaseType = Reader.readType(F, Record, Idx); in VisitUnresolvedMemberExpr()
1538 E->OperatorLoc = ReadSourceLocation(Record, Idx); in VisitUnresolvedMemberExpr()
1543 E->RequiresADL = Record[Idx++]; in VisitUnresolvedLookupExpr()
1544 E->Overloaded = Record[Idx++]; in VisitUnresolvedLookupExpr()
1545 E->NamingClass = ReadDeclAs<CXXRecordDecl>(Record, Idx); in VisitUnresolvedLookupExpr()
1550 E->TypeTraitExprBits.NumArgs = Record[Idx++]; in VisitTypeTraitExpr()
1551 E->TypeTraitExprBits.Kind = Record[Idx++]; in VisitTypeTraitExpr()
1552 E->TypeTraitExprBits.Value = Record[Idx++]; in VisitTypeTraitExpr()
1553 SourceRange Range = ReadSourceRange(Record, Idx); in VisitTypeTraitExpr()
1559 Args[I] = GetTypeSourceInfo(Record, Idx); in VisitTypeTraitExpr()
1564 E->ATT = (ArrayTypeTrait)Record[Idx++]; in VisitArrayTypeTraitExpr()
1565 E->Value = (unsigned int)Record[Idx++]; in VisitArrayTypeTraitExpr()
1566 SourceRange Range = ReadSourceRange(Record, Idx); in VisitArrayTypeTraitExpr()
1569 E->QueriedType = GetTypeSourceInfo(Record, Idx); in VisitArrayTypeTraitExpr()
1574 E->ET = (ExpressionTrait)Record[Idx++]; in VisitExpressionTraitExpr()
1575 E->Value = (bool)Record[Idx++]; in VisitExpressionTraitExpr()
1576 SourceRange Range = ReadSourceRange(Record, Idx); in VisitExpressionTraitExpr()
1584 E->Value = (bool)Record[Idx++]; in VisitCXXNoexceptExpr()
1585 E->Range = ReadSourceRange(Record, Idx); in VisitCXXNoexceptExpr()
1591 E->EllipsisLoc = ReadSourceLocation(Record, Idx); in VisitPackExpansionExpr()
1592 E->NumExpansions = Record[Idx++]; in VisitPackExpansionExpr()
1598 unsigned NumPartialArgs = Record[Idx++]; in VisitSizeOfPackExpr()
1599 E->OperatorLoc = ReadSourceLocation(Record, Idx); in VisitSizeOfPackExpr()
1600 E->PackLoc = ReadSourceLocation(Record, Idx); in VisitSizeOfPackExpr()
1601 E->RParenLoc = ReadSourceLocation(Record, Idx); in VisitSizeOfPackExpr()
1602 E->Pack = Reader.ReadDeclAs<NamedDecl>(F, Record, Idx); in VisitSizeOfPackExpr()
1608 new (I) TemplateArgument(Reader.ReadTemplateArgument(F, Record, Idx)); in VisitSizeOfPackExpr()
1610 E->Length = Record[Idx++]; in VisitSizeOfPackExpr()
1617 E->Param = ReadDeclAs<NonTypeTemplateParmDecl>(Record, Idx); in VisitSubstNonTypeTemplateParmExpr()
1618 E->NameLoc = ReadSourceLocation(Record, Idx); in VisitSubstNonTypeTemplateParmExpr()
1625 E->Param = ReadDeclAs<NonTypeTemplateParmDecl>(Record, Idx); in VisitSubstNonTypeTemplateParmPackExpr()
1626 TemplateArgument ArgPack = Reader.ReadTemplateArgument(F, Record, Idx); in VisitSubstNonTypeTemplateParmPackExpr()
1632 E->NameLoc = ReadSourceLocation(Record, Idx); in VisitSubstNonTypeTemplateParmPackExpr()
1637 E->NumParameters = Record[Idx++]; in VisitFunctionParmPackExpr()
1638 E->ParamPack = ReadDeclAs<ParmVarDecl>(Record, Idx); in VisitFunctionParmPackExpr()
1639 E->NameLoc = ReadSourceLocation(Record, Idx); in VisitFunctionParmPackExpr()
1642 Parms[i] = ReadDeclAs<ParmVarDecl>(Record, Idx); in VisitFunctionParmPackExpr()
1648 auto VD = ReadDeclAs<ValueDecl>(Record, Idx); in VisitMaterializeTemporaryExpr()
1649 unsigned ManglingNumber = Record[Idx++]; in VisitMaterializeTemporaryExpr()
1655 E->LParenLoc = ReadSourceLocation(Record, Idx); in VisitCXXFoldExpr()
1656 E->EllipsisLoc = ReadSourceLocation(Record, Idx); in VisitCXXFoldExpr()
1657 E->RParenLoc = ReadSourceLocation(Record, Idx); in VisitCXXFoldExpr()
1660 E->Opcode = (BinaryOperatorKind)Record[Idx++]; in VisitCXXFoldExpr()
1666 E->Loc = ReadSourceLocation(Record, Idx); in VisitOpaqueValueExpr()
1678 E->IsArrow = (Record[Idx++] != 0); in VisitMSPropertyRefExpr()
1680 E->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx); in VisitMSPropertyRefExpr()
1681 E->MemberLoc = ReadSourceLocation(Record, Idx); in VisitMSPropertyRefExpr()
1682 E->TheDecl = ReadDeclAs<MSPropertyDecl>(Record, Idx); in VisitMSPropertyRefExpr()
1689 E->setRBracketLoc(ReadSourceLocation(Record, Idx)); in VisitMSPropertySubscriptExpr()
1694 E->setSourceRange(ReadSourceRange(Record, Idx)); in VisitCXXUuidofExpr()
1695 std::string UuidStr = ReadString(Record, Idx); in VisitCXXUuidofExpr()
1699 GetTypeSourceInfo(Record, Idx)); in VisitCXXUuidofExpr()
1709 S->setLeaveLoc(ReadSourceLocation(Record, Idx)); in VisitSEHLeaveStmt()
1714 S->Loc = ReadSourceLocation(Record, Idx); in VisitSEHExceptStmt()
1721 S->Loc = ReadSourceLocation(Record, Idx); in VisitSEHFinallyStmt()
1727 S->IsCXXTry = Record[Idx++]; in VisitSEHTryStmt()
1728 S->TryLoc = ReadSourceLocation(Record, Idx); in VisitSEHTryStmt()
1747 E->BuiltinLoc = ReadSourceLocation(Record, Idx); in VisitAsTypeExpr()
1748 E->RParenLoc = ReadSourceLocation(Record, Idx); in VisitAsTypeExpr()
1761 unsigned &Idx; member in clang::OMPClauseReader
1764 const ASTReader::RecordData &Record, unsigned &Idx) in OMPClauseReader() argument
1765 : Reader(R), Context(C), Record(Record), Idx(Idx) { } in OMPClauseReader()
1776 switch (Record[Idx++]) { in readClause()
1841 C = OMPPrivateClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1844 C = OMPFirstprivateClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1847 C = OMPLastprivateClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1850 C = OMPSharedClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1853 C = OMPReductionClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1856 C = OMPLinearClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1859 C = OMPAlignedClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1862 C = OMPCopyinClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1865 C = OMPCopyprivateClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1868 C = OMPFlushClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1871 C = OMPDependClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1877 unsigned NumVars = Record[Idx++]; in readClause()
1878 unsigned NumDeclarations = Record[Idx++]; in readClause()
1879 unsigned NumLists = Record[Idx++]; in readClause()
1880 unsigned NumComponents = Record[Idx++]; in readClause()
1910 unsigned NumVars = Record[Idx++]; in readClause()
1911 unsigned NumDeclarations = Record[Idx++]; in readClause()
1912 unsigned NumLists = Record[Idx++]; in readClause()
1913 unsigned NumComponents = Record[Idx++]; in readClause()
1919 unsigned NumVars = Record[Idx++]; in readClause()
1920 unsigned NumDeclarations = Record[Idx++]; in readClause()
1921 unsigned NumLists = Record[Idx++]; in readClause()
1922 unsigned NumComponents = Record[Idx++]; in readClause()
1928 C = OMPUseDevicePtrClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1931 C = OMPIsDevicePtrClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1935 C->setLocStart(Reader->ReadSourceLocation(Record, Idx)); in readClause()
1936 C->setLocEnd(Reader->ReadSourceLocation(Record, Idx)); in readClause()
1951 C->setNameModifier(static_cast<OpenMPDirectiveKind>(Record[Idx++])); in VisitOMPIfClause()
1952 C->setNameModifierLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPIfClause()
1953 C->setColonLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPIfClause()
1955 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPIfClause()
1960 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPFinalClause()
1965 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPNumThreadsClause()
1970 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPSafelenClause()
1975 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPSimdlenClause()
1980 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPCollapseClause()
1985 static_cast<OpenMPDefaultClauseKind>(Record[Idx++])); in VisitOMPDefaultClause()
1986 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPDefaultClause()
1987 C->setDefaultKindKwLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPDefaultClause()
1992 static_cast<OpenMPProcBindClauseKind>(Record[Idx++])); in VisitOMPProcBindClause()
1993 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPProcBindClause()
1994 C->setProcBindKindKwLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPProcBindClause()
2000 static_cast<OpenMPScheduleClauseKind>(Record[Idx++])); in VisitOMPScheduleClause()
2002 static_cast<OpenMPScheduleClauseModifier>(Record[Idx++])); in VisitOMPScheduleClause()
2004 static_cast<OpenMPScheduleClauseModifier>(Record[Idx++])); in VisitOMPScheduleClause()
2006 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPScheduleClause()
2007 C->setFirstScheduleModifierLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPScheduleClause()
2008 C->setSecondScheduleModifierLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPScheduleClause()
2009 C->setScheduleKindLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPScheduleClause()
2010 C->setCommaLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPScheduleClause()
2015 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPOrderedClause()
2041 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPPrivateClause()
2056 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPFirstprivateClause()
2075 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPLastprivateClause()
2101 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPSharedClause()
2112 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPReductionClause()
2113 C->setColonLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPReductionClause()
2115 Reader->Reader.ReadNestedNameSpecifierLoc(Reader->F, Record, Idx); in VisitOMPReductionClause()
2117 Reader->ReadDeclarationNameInfo(DNI, Record, Idx); in VisitOMPReductionClause()
2147 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPLinearClause()
2148 C->setColonLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPLinearClause()
2149 C->setModifier(static_cast<OpenMPLinearClauseKind>(Record[Idx++])); in VisitOMPLinearClause()
2150 C->setModifierLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPLinearClause()
2178 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPAlignedClause()
2179 C->setColonLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPAlignedClause()
2190 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPCopyinClause()
2212 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPCopyprivateClause()
2234 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPFlushClause()
2244 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPDependClause()
2245 C->setDependencyKind(static_cast<OpenMPDependClauseKind>(Record[Idx++])); in VisitOMPDependClause()
2246 C->setDependencyLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPDependClause()
2247 C->setColonLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPDependClause()
2259 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPDeviceClause()
2263 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPMapClause()
2265 static_cast<OpenMPMapClauseKind>(Record[Idx++])); in VisitOMPMapClause()
2267 static_cast<OpenMPMapClauseKind>(Record[Idx++])); in VisitOMPMapClause()
2268 C->setMapLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPMapClause()
2269 C->setColonLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPMapClause()
2285 Reader->Reader.ReadDeclAs<ValueDecl>(Reader->F, Record, Idx)); in VisitOMPMapClause()
2291 ListsPerDecl.push_back(Record[Idx++]); in VisitOMPMapClause()
2297 ListSizes.push_back(Record[Idx++]); in VisitOMPMapClause()
2305 Reader->Reader.ReadDeclAs<ValueDecl>(Reader->F, Record, Idx); in VisitOMPMapClause()
2314 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPNumTeamsClause()
2319 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPThreadLimitClause()
2324 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPPriorityClause()
2329 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPGrainsizeClause()
2334 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPNumTasksClause()
2339 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPHintClause()
2345 static_cast<OpenMPDistScheduleClauseKind>(Record[Idx++])); in VisitOMPDistScheduleClause()
2347 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPDistScheduleClause()
2348 C->setDistScheduleKindLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPDistScheduleClause()
2349 C->setCommaLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPDistScheduleClause()
2354 static_cast<OpenMPDefaultmapClauseKind>(Record[Idx++])); in VisitOMPDefaultmapClause()
2356 static_cast<OpenMPDefaultmapClauseModifier>(Record[Idx++])); in VisitOMPDefaultmapClause()
2357 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPDefaultmapClause()
2358 C->setDefaultmapModifierLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPDefaultmapClause()
2359 C->setDefaultmapKindLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPDefaultmapClause()
2363 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPToClause()
2379 Reader->Reader.ReadDeclAs<ValueDecl>(Reader->F, Record, Idx)); in VisitOMPToClause()
2385 ListsPerDecl.push_back(Record[Idx++]); in VisitOMPToClause()
2391 ListSizes.push_back(Record[Idx++]); in VisitOMPToClause()
2399 Reader->Reader.ReadDeclAs<ValueDecl>(Reader->F, Record, Idx); in VisitOMPToClause()
2407 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPFromClause()
2423 Reader->Reader.ReadDeclAs<ValueDecl>(Reader->F, Record, Idx)); in VisitOMPFromClause()
2429 ListsPerDecl.push_back(Record[Idx++]); in VisitOMPFromClause()
2435 ListSizes.push_back(Record[Idx++]); in VisitOMPFromClause()
2443 Reader->Reader.ReadDeclAs<ValueDecl>(Reader->F, Record, Idx); in VisitOMPFromClause()
2451 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPUseDevicePtrClause()
2462 C->setLParenLoc(Reader->ReadSourceLocation(Record, Idx)); in VisitOMPIsDevicePtrClause()
2476 E->setLocStart(ReadSourceLocation(Record, Idx)); in VisitOMPExecutableDirective()
2477 E->setLocEnd(ReadSourceLocation(Record, Idx)); in VisitOMPExecutableDirective()
2478 OMPClauseReader ClauseReader(this, Reader.getContext(), Record, Idx); in VisitOMPExecutableDirective()
2490 Idx += 2; in VisitOMPLoopDirective()
2543 ++Idx; in VisitOMPParallelDirective()
2545 D->setHasCancel(Record[Idx++]); in VisitOMPParallelDirective()
2554 D->setHasCancel(Record[Idx++]); in VisitOMPForDirective()
2564 ++Idx; in VisitOMPSectionsDirective()
2566 D->setHasCancel(Record[Idx++]); in VisitOMPSectionsDirective()
2572 D->setHasCancel(Record[Idx++]); in VisitOMPSectionDirective()
2578 ++Idx; in VisitOMPSingleDirective()
2590 ++Idx; in VisitOMPCriticalDirective()
2592 ReadDeclarationNameInfo(D->DirName, Record, Idx); in VisitOMPCriticalDirective()
2597 D->setHasCancel(Record[Idx++]); in VisitOMPParallelForDirective()
2609 ++Idx; in VisitOMPParallelSectionsDirective()
2611 D->setHasCancel(Record[Idx++]); in VisitOMPParallelSectionsDirective()
2617 ++Idx; in VisitOMPTaskDirective()
2619 D->setHasCancel(Record[Idx++]); in VisitOMPTaskDirective()
2645 ++Idx; in VisitOMPFlushDirective()
2652 ++Idx; in VisitOMPOrderedDirective()
2659 ++Idx; in VisitOMPAtomicDirective()
2665 D->IsXLHSInRHSPart = Record[Idx++] != 0; in VisitOMPAtomicDirective()
2666 D->IsPostfixUpdate = Record[Idx++] != 0; in VisitOMPAtomicDirective()
2672 ++Idx; in VisitOMPTargetDirective()
2678 ++Idx; in VisitOMPTargetDataDirective()
2685 ++Idx; in VisitOMPTargetEnterDataDirective()
2692 ++Idx; in VisitOMPTargetExitDataDirective()
2699 ++Idx; in VisitOMPTargetParallelDirective()
2706 D->setHasCancel(Record[Idx++]); in VisitOMPTargetParallelForDirective()
2712 ++Idx; in VisitOMPTeamsDirective()
2720 D->setCancelRegion(static_cast<OpenMPDirectiveKind>(Record[Idx++])); in VisitOMPCancellationPointDirective()
2726 ++Idx; in VisitOMPCancelDirective()
2728 D->setCancelRegion(static_cast<OpenMPDirectiveKind>(Record[Idx++])); in VisitOMPCancelDirective()
2745 ++Idx; in VisitOMPTargetUpdateDirective()
2815 unsigned Idx; in ReadStmtFromStream() local
2816 ASTStmtReader Reader(*this, F, Cursor, Record, Idx); in ReadStmtFromStream()
2835 Idx = 0; in ReadStmtFromStream()
2848 S = StmtEntries[Record[Idx++]]; in ReadStmtFromStream()
3012 assert(Idx == 0); in ReadStmtFromStream()
3014 if (Record[Idx++]) { // HasQualifier. in ReadStmtFromStream()
3015 QualifierLoc = ReadNestedNameSpecifierLoc(F, Record, Idx); in ReadStmtFromStream()
3020 bool HasTemplateKWAndArgsInfo = Record[Idx++]; in ReadStmtFromStream()
3022 TemplateKWLoc = ReadSourceLocation(F, Record, Idx); in ReadStmtFromStream()
3023 unsigned NumTemplateArgs = Record[Idx++]; in ReadStmtFromStream()
3024 ArgInfo.setLAngleLoc(ReadSourceLocation(F, Record, Idx)); in ReadStmtFromStream()
3025 ArgInfo.setRAngleLoc(ReadSourceLocation(F, Record, Idx)); in ReadStmtFromStream()
3027 ArgInfo.addArgument(ReadTemplateArgumentLoc(F, Record, Idx)); in ReadStmtFromStream()
3030 bool HadMultipleCandidates = Record[Idx++]; in ReadStmtFromStream()
3032 NamedDecl *FoundD = ReadDeclAs<NamedDecl>(F, Record, Idx); in ReadStmtFromStream()
3033 AccessSpecifier AS = (AccessSpecifier)Record[Idx++]; in ReadStmtFromStream()
3036 QualType T = readType(F, Record, Idx); in ReadStmtFromStream()
3037 ExprValueKind VK = static_cast<ExprValueKind>(Record[Idx++]); in ReadStmtFromStream()
3038 ExprObjectKind OK = static_cast<ExprObjectKind>(Record[Idx++]); in ReadStmtFromStream()
3040 ValueDecl *MemberD = ReadDeclAs<ValueDecl>(F, Record, Idx); in ReadStmtFromStream()
3041 SourceLocation MemberLoc = ReadSourceLocation(F, Record, Idx); in ReadStmtFromStream()
3043 bool IsArrow = Record[Idx++]; in ReadStmtFromStream()
3044 SourceLocation OperatorLoc = ReadSourceLocation(F, Record, Idx); in ReadStmtFromStream()
3051 MemberD->getDeclName(), Record, Idx); in ReadStmtFromStream()
3715 assert(Idx == Record.size() && "Invalid deserialization of statement"); in ReadStmtFromStream()