• Home
  • Raw
  • Download

Lines Matching full:record

72     ASTRecordReader &Record;  member in clang::ASTStmtReader
76 return Record.readSourceLocation(); in readSourceLocation()
80 return Record.readSourceRange(); in readSourceRange()
84 return Record.readString(); in readString()
88 return Record.readTypeSourceInfo(); in readTypeSourceInfo()
92 return Record.readDecl(); in readDecl()
97 return Record.readDeclAs<T>(); in readDeclAs()
101 ASTStmtReader(ASTRecordReader &Record, llvm::BitstreamCursor &Cursor) in ASTStmtReader() argument
102 : Record(Record), DeclsCursor(Cursor) {} in ASTStmtReader()
104 /// The number of record fields required for the Stmt class
108 /// The number of record fields required for the Expr class
138 ArgInfo.addArgument(Record.readTemplateArgumentLoc()); in ReadTemplateKWAndArgsInfo()
143 assert(Record.getIdx() == NumStmtFields && "Incorrect statement field count"); in VisitStmt()
149 S->NullStmtBits.HasLeadingEmptyMacro = Record.readInt(); in VisitNullStmt()
155 unsigned NumStmts = Record.readInt(); in VisitCompoundStmt()
157 Stmts.push_back(Record.readSubStmt()); in VisitCompoundStmt()
165 Record.recordSwitchCaseID(S, Record.readInt()); in VisitSwitchCase()
172 bool CaseStmtIsGNURange = Record.readInt(); in VisitCaseStmt()
173 S->setLHS(Record.readSubExpr()); in VisitCaseStmt()
174 S->setSubStmt(Record.readSubStmt()); in VisitCaseStmt()
176 S->setRHS(Record.readSubExpr()); in VisitCaseStmt()
183 S->setSubStmt(Record.readSubStmt()); in VisitDefaultStmt()
191 S->setSubStmt(Record.readSubStmt()); in VisitLabelStmt()
200 uint64_t NumAttrs = Record.readInt(); in VisitAttributedStmt()
202 Record.readAttributes(Attrs); in VisitAttributedStmt()
207 S->SubStmt = Record.readSubStmt(); in VisitAttributedStmt()
214 S->setConstexpr(Record.readInt()); in VisitIfStmt()
215 bool HasElse = Record.readInt(); in VisitIfStmt()
216 bool HasVar = Record.readInt(); in VisitIfStmt()
217 bool HasInit = Record.readInt(); in VisitIfStmt()
219 S->setCond(Record.readSubExpr()); in VisitIfStmt()
220 S->setThen(Record.readSubStmt()); in VisitIfStmt()
222 S->setElse(Record.readSubStmt()); in VisitIfStmt()
224 S->setConditionVariable(Record.getContext(), readDeclAs<VarDecl>()); in VisitIfStmt()
226 S->setInit(Record.readSubStmt()); in VisitIfStmt()
238 bool HasInit = Record.readInt(); in VisitSwitchStmt()
239 bool HasVar = Record.readInt(); in VisitSwitchStmt()
240 bool AllEnumCasesCovered = Record.readInt(); in VisitSwitchStmt()
244 S->setCond(Record.readSubExpr()); in VisitSwitchStmt()
245 S->setBody(Record.readSubStmt()); in VisitSwitchStmt()
247 S->setInit(Record.readSubStmt()); in VisitSwitchStmt()
249 S->setConditionVariable(Record.getContext(), readDeclAs<VarDecl>()); in VisitSwitchStmt()
256 for (auto E = Record.size(); Record.getIdx() != E; ) { in VisitSwitchStmt()
257 SwitchCase *SC = Record.getSwitchCaseWithID(Record.readInt()); in VisitSwitchStmt()
270 bool HasVar = Record.readInt(); in VisitWhileStmt()
272 S->setCond(Record.readSubExpr()); in VisitWhileStmt()
273 S->setBody(Record.readSubStmt()); in VisitWhileStmt()
275 S->setConditionVariable(Record.getContext(), readDeclAs<VarDecl>()); in VisitWhileStmt()
284 S->setCond(Record.readSubExpr()); in VisitDoStmt()
285 S->setBody(Record.readSubStmt()); in VisitDoStmt()
293 S->setInit(Record.readSubStmt()); in VisitForStmt()
294 S->setCond(Record.readSubExpr()); in VisitForStmt()
295 S->setConditionVariable(Record.getContext(), readDeclAs<VarDecl>()); in VisitForStmt()
296 S->setInc(Record.readSubExpr()); in VisitForStmt()
297 S->setBody(Record.readSubStmt()); in VisitForStmt()
314 S->setTarget(Record.readSubExpr()); in VisitIndirectGotoStmt()
330 bool HasNRVOCandidate = Record.readInt(); in VisitReturnStmt()
332 S->setRetValue(Record.readSubExpr()); in VisitReturnStmt()
344 if (Record.size() - Record.getIdx() == 1) { in VisitDeclStmt()
349 int N = Record.size() - Record.getIdx(); in VisitDeclStmt()
353 S->setDeclGroup(DeclGroupRef(DeclGroup::Create(Record.getContext(), in VisitDeclStmt()
361 S->NumOutputs = Record.readInt(); in VisitAsmStmt()
362 S->NumInputs = Record.readInt(); in VisitAsmStmt()
363 S->NumClobbers = Record.readInt(); in VisitAsmStmt()
365 S->setVolatile(Record.readInt()); in VisitAsmStmt()
366 S->setSimple(Record.readInt()); in VisitAsmStmt()
371 S->NumLabels = Record.readInt(); in VisitGCCAsmStmt()
373 S->setAsmString(cast_or_null<StringLiteral>(Record.readSubStmt())); in VisitGCCAsmStmt()
385 Names.push_back(Record.readIdentifier()); in VisitGCCAsmStmt()
386 Constraints.push_back(cast_or_null<StringLiteral>(Record.readSubStmt())); in VisitGCCAsmStmt()
387 Exprs.push_back(Record.readSubStmt()); in VisitGCCAsmStmt()
393 Clobbers.push_back(cast_or_null<StringLiteral>(Record.readSubStmt())); in VisitGCCAsmStmt()
397 Exprs.push_back(Record.readSubStmt()); in VisitGCCAsmStmt()
399 S->setOutputsAndInputsAndClobbers(Record.getContext(), in VisitGCCAsmStmt()
410 S->NumAsmToks = Record.readInt(); in VisitMSAsmStmt()
417 AsmToks.push_back(Record.readToken()); in VisitMSAsmStmt()
442 Exprs.push_back(cast<Expr>(Record.readSubStmt())); in VisitMSAsmStmt()
447 S->initialize(Record.getContext(), AsmStr, AsmToks, in VisitMSAsmStmt()
453 assert(Record.peekInt() == S->NumParams); in VisitCoroutineBodyStmt()
454 Record.skipInts(1); in VisitCoroutineBodyStmt()
458 StoredStmts[i] = Record.readSubStmt(); in VisitCoroutineBodyStmt()
463 S->CoreturnLoc = Record.readSourceLocation(); in VisitCoreturnStmt()
465 SubStmt = Record.readSubStmt(); in VisitCoreturnStmt()
466 S->IsImplicit = Record.readInt() != 0; in VisitCoreturnStmt()
473 SubExpr = Record.readSubStmt(); in VisitCoawaitExpr()
474 E->OpaqueValue = cast_or_null<OpaqueValueExpr>(Record.readSubStmt()); in VisitCoawaitExpr()
475 E->setIsImplicit(Record.readInt() != 0); in VisitCoawaitExpr()
482 SubExpr = Record.readSubStmt(); in VisitCoyieldExpr()
483 E->OpaqueValue = cast_or_null<OpaqueValueExpr>(Record.readSubStmt()); in VisitCoyieldExpr()
490 SubExpr = Record.readSubStmt(); in VisitDependentCoawaitExpr()
495 Record.skipInts(1); in VisitCapturedStmt()
497 S->setCapturedRegionKind(static_cast<CapturedRegionKind>(Record.readInt())); in VisitCapturedStmt()
504 *I = Record.readSubExpr(); in VisitCapturedStmt()
507 S->setCapturedStmt(Record.readSubStmt()); in VisitCapturedStmt()
514 static_cast<CapturedStmt::VariableCaptureKind>(Record.readInt())); in VisitCapturedStmt()
521 E->setType(Record.readType()); in VisitExpr()
524 bool TypeDependent = Record.readInt(); in VisitExpr()
525 bool ValueDependent = Record.readInt(); in VisitExpr()
526 bool InstantiationDependent = Record.readInt(); in VisitExpr()
527 bool ContainsUnexpandedTemplateParameters = Record.readInt(); in VisitExpr()
528 bool ContainsErrors = Record.readInt(); in VisitExpr()
542 E->setValueKind(static_cast<ExprValueKind>(Record.readInt())); in VisitExpr()
543 E->setObjectKind(static_cast<ExprObjectKind>(Record.readInt())); in VisitExpr()
544 assert(Record.getIdx() == NumExprFields && in VisitExpr()
551 auto StorageKind = Record.readInt(); in VisitConstantExpr()
554 E->ConstantExprBits.APValueKind = Record.readInt(); in VisitConstantExpr()
555 E->ConstantExprBits.IsUnsigned = Record.readInt(); in VisitConstantExpr()
556 E->ConstantExprBits.BitWidth = Record.readInt(); in VisitConstantExpr()
558 E->ConstantExprBits.IsImmediateInvocation = Record.readInt(); in VisitConstantExpr()
565 E->Int64Result() = Record.readInt(); in VisitConstantExpr()
569 E->APValueResult() = Record.readAPValue(); in VisitConstantExpr()
572 Record.getContext().addDestruction(&E->APValueResult()); in VisitConstantExpr()
579 E->setSubExpr(Record.readSubExpr()); in VisitConstantExpr()
584 bool HasFunctionName = Record.readInt(); in VisitPredefinedExpr()
586 E->PredefinedExprBits.Kind = Record.readInt(); in VisitPredefinedExpr()
589 E->setFunctionName(cast<StringLiteral>(Record.readSubExpr())); in VisitPredefinedExpr()
595 E->DeclRefExprBits.HasQualifier = Record.readInt(); in VisitDeclRefExpr()
596 E->DeclRefExprBits.HasFoundDecl = Record.readInt(); in VisitDeclRefExpr()
597 E->DeclRefExprBits.HasTemplateKWAndArgsInfo = Record.readInt(); in VisitDeclRefExpr()
598 E->DeclRefExprBits.HadMultipleCandidates = Record.readInt(); in VisitDeclRefExpr()
599 E->DeclRefExprBits.RefersToEnclosingVariableOrCapture = Record.readInt(); in VisitDeclRefExpr()
600 E->DeclRefExprBits.NonOdrUseReason = Record.readInt(); in VisitDeclRefExpr()
603 NumTemplateArgs = Record.readInt(); in VisitDeclRefExpr()
607 NestedNameSpecifierLoc(Record.readNestedNameSpecifierLoc()); in VisitDeclRefExpr()
619 E->DNLoc = Record.readDeclarationNameLoc(E->getDecl()->getDeclName()); in VisitDeclRefExpr()
625 E->setValue(Record.getContext(), Record.readAPInt()); in VisitIntegerLiteral()
631 E->setScale(Record.readInt()); in VisitFixedPointLiteral()
632 E->setValue(Record.getContext(), Record.readAPInt()); in VisitFixedPointLiteral()
638 static_cast<llvm::APFloatBase::Semantics>(Record.readInt())); in VisitFloatingLiteral()
639 E->setExact(Record.readInt()); in VisitFloatingLiteral()
640 E->setValue(Record.getContext(), Record.readAPFloat(E->getSemantics())); in VisitFloatingLiteral()
646 E->setSubExpr(Record.readSubExpr()); in VisitImaginaryLiteral()
654 unsigned NumConcatenated = Record.readInt(); in VisitStringLiteral()
655 unsigned Length = Record.readInt(); in VisitStringLiteral()
656 unsigned CharByteWidth = Record.readInt(); in VisitStringLiteral()
661 E->StringLiteralBits.Kind = Record.readInt(); in VisitStringLiteral()
662 E->StringLiteralBits.IsPascal = Record.readInt(); in VisitStringLiteral()
668 StringLiteral::mapCharByteWidth(Record.getContext().getTargetInfo(), in VisitStringLiteral()
679 StrData[I] = Record.readInt(); in VisitStringLiteral()
684 E->setValue(Record.readInt()); in VisitCharacterLiteral()
686 E->setKind(static_cast<CharacterLiteral::CharacterKind>(Record.readInt())); in VisitCharacterLiteral()
693 E->setSubExpr(Record.readSubExpr()); in VisitParenExpr()
698 unsigned NumExprs = Record.readInt(); in VisitParenListExpr()
701 E->getTrailingObjects<Stmt *>()[I] = Record.readSubStmt(); in VisitParenListExpr()
708 bool hasFP_Features = Record.readInt(); in VisitUnaryOperator()
710 E->setSubExpr(Record.readSubExpr()); in VisitUnaryOperator()
711 E->setOpcode((UnaryOperator::Opcode)Record.readInt()); in VisitUnaryOperator()
713 E->setCanOverflow(Record.readInt()); in VisitUnaryOperator()
716 FPOptionsOverride::getFromOpaqueInt(Record.readInt())); in VisitUnaryOperator()
721 assert(E->getNumComponents() == Record.peekInt()); in VisitOffsetOfExpr()
722 Record.skipInts(1); in VisitOffsetOfExpr()
723 assert(E->getNumExpressions() == Record.peekInt()); in VisitOffsetOfExpr()
724 Record.skipInts(1); in VisitOffsetOfExpr()
729 auto Kind = static_cast<OffsetOfNode::Kind>(Record.readInt()); in VisitOffsetOfExpr()
734 E->setComponent(I, OffsetOfNode(Start, Record.readInt(), End)); in VisitOffsetOfExpr()
745 OffsetOfNode(Start, Record.readIdentifier(), End)); in VisitOffsetOfExpr()
749 auto *Base = new (Record.getContext()) CXXBaseSpecifier(); in VisitOffsetOfExpr()
750 *Base = Record.readCXXBaseSpecifier(); in VisitOffsetOfExpr()
758 E->setIndexExpr(I, Record.readSubExpr()); in VisitOffsetOfExpr()
763 E->setKind(static_cast<UnaryExprOrTypeTrait>(Record.readInt())); in VisitUnaryExprOrTypeTraitExpr()
764 if (Record.peekInt() == 0) { in VisitUnaryExprOrTypeTraitExpr()
765 E->setArgument(Record.readSubExpr()); in VisitUnaryExprOrTypeTraitExpr()
766 Record.skipInts(1); in VisitUnaryExprOrTypeTraitExpr()
775 readConstraintSatisfaction(ASTRecordReader &Record) { in readConstraintSatisfaction() argument
777 Satisfaction.IsSatisfied = Record.readInt(); in readConstraintSatisfaction()
779 unsigned NumDetailRecords = Record.readInt(); in readConstraintSatisfaction()
781 Expr *ConstraintExpr = Record.readExpr(); in readConstraintSatisfaction()
782 if (/* IsDiagnostic */Record.readInt()) { in readConstraintSatisfaction()
783 SourceLocation DiagLocation = Record.readSourceLocation(); in readConstraintSatisfaction()
784 std::string DiagMessage = Record.readString(); in readConstraintSatisfaction()
786 ConstraintExpr, new (Record.getContext()) in readConstraintSatisfaction()
790 Satisfaction.Details.emplace_back(ConstraintExpr, Record.readExpr()); in readConstraintSatisfaction()
799 unsigned NumTemplateArgs = Record.readInt(); in VisitConceptSpecializationExpr()
800 E->NestedNameSpec = Record.readNestedNameSpecifierLoc(); in VisitConceptSpecializationExpr()
801 E->TemplateKWLoc = Record.readSourceLocation(); in VisitConceptSpecializationExpr()
802 E->ConceptName = Record.readDeclarationNameInfo(); in VisitConceptSpecializationExpr()
804 E->FoundDecl = Record.readDeclAs<NamedDecl>(); in VisitConceptSpecializationExpr()
805 E->ArgsAsWritten = Record.readASTTemplateArgumentListInfo(); in VisitConceptSpecializationExpr()
808 Args.push_back(Record.readTemplateArgument()); in VisitConceptSpecializationExpr()
811 ASTConstraintSatisfaction::Create(Record.getContext(), in VisitConceptSpecializationExpr()
812 readConstraintSatisfaction(Record)); in VisitConceptSpecializationExpr()
816 readSubstitutionDiagnostic(ASTRecordReader &Record) { in readSubstitutionDiagnostic() argument
817 std::string SubstitutedEntity = Record.readString(); in readSubstitutionDiagnostic()
818 SourceLocation DiagLoc = Record.readSourceLocation(); in readSubstitutionDiagnostic()
819 std::string DiagMessage = Record.readString(); in readSubstitutionDiagnostic()
820 return new (Record.getContext()) in readSubstitutionDiagnostic()
827 unsigned NumLocalParameters = Record.readInt(); in VisitRequiresExpr()
828 unsigned NumRequirements = Record.readInt(); in VisitRequiresExpr()
829 E->RequiresExprBits.RequiresKWLoc = Record.readSourceLocation(); in VisitRequiresExpr()
830 E->RequiresExprBits.IsSatisfied = Record.readInt(); in VisitRequiresExpr()
831 E->Body = Record.readDeclAs<RequiresExprBodyDecl>(); in VisitRequiresExpr()
834 LocalParameters.push_back(cast<ParmVarDecl>(Record.readDecl())); in VisitRequiresExpr()
840 static_cast<concepts::Requirement::RequirementKind>(Record.readInt()); in VisitRequiresExpr()
846 Record.readInt()); in VisitRequiresExpr()
848 R = new (Record.getContext()) in VisitRequiresExpr()
849 concepts::TypeRequirement(readSubstitutionDiagnostic(Record)); in VisitRequiresExpr()
851 R = new (Record.getContext()) in VisitRequiresExpr()
852 concepts::TypeRequirement(Record.readTypeSourceInfo()); in VisitRequiresExpr()
858 Record.readInt()); in VisitRequiresExpr()
862 E = readSubstitutionDiagnostic(Record); in VisitRequiresExpr()
864 E = Record.readExpr(); in VisitRequiresExpr()
872 NoexceptLoc = Record.readSourceLocation(); in VisitRequiresExpr()
873 switch (/* returnTypeRequirementKind */Record.readInt()) { in VisitRequiresExpr()
880 TemplateParameterList *TPL = Record.readTemplateParameterList(); in VisitRequiresExpr()
884 cast<ConceptSpecializationExpr>(Record.readExpr()); in VisitRequiresExpr()
889 Req.emplace(readSubstitutionDiagnostic(Record)); in VisitRequiresExpr()
894 R = new (Record.getContext()) concepts::ExprRequirement( in VisitRequiresExpr()
898 R = new (Record.getContext()) concepts::ExprRequirement( in VisitRequiresExpr()
904 if (/* IsSubstitutionDiagnostic */Record.readInt()) { in VisitRequiresExpr()
905 R = new (Record.getContext()) concepts::NestedRequirement( in VisitRequiresExpr()
906 readSubstitutionDiagnostic(Record)); in VisitRequiresExpr()
909 Expr *E = Record.readExpr(); in VisitRequiresExpr()
911 R = new (Record.getContext()) concepts::NestedRequirement(E); in VisitRequiresExpr()
913 R = new (Record.getContext()) in VisitRequiresExpr()
914 concepts::NestedRequirement(Record.getContext(), E, in VisitRequiresExpr()
915 readConstraintSatisfaction(Record)); in VisitRequiresExpr()
924 E->RBraceLoc = Record.readSourceLocation(); in VisitRequiresExpr()
929 E->setLHS(Record.readSubExpr()); in VisitArraySubscriptExpr()
930 E->setRHS(Record.readSubExpr()); in VisitArraySubscriptExpr()
936 E->setBase(Record.readSubExpr()); in VisitMatrixSubscriptExpr()
937 E->setRowIdx(Record.readSubExpr()); in VisitMatrixSubscriptExpr()
938 E->setColumnIdx(Record.readSubExpr()); in VisitMatrixSubscriptExpr()
944 E->setBase(Record.readSubExpr()); in VisitOMPArraySectionExpr()
945 E->setLowerBound(Record.readSubExpr()); in VisitOMPArraySectionExpr()
946 E->setLength(Record.readSubExpr()); in VisitOMPArraySectionExpr()
947 E->setStride(Record.readSubExpr()); in VisitOMPArraySectionExpr()
955 unsigned NumDims = Record.readInt(); in VisitOMPArrayShapingExpr()
956 E->setBase(Record.readSubExpr()); in VisitOMPArrayShapingExpr()
959 Dims[I] = Record.readSubExpr(); in VisitOMPArrayShapingExpr()
971 unsigned NumIters = Record.readInt(); in VisitOMPIteratorExpr()
976 E->setIteratorDeclaration(I, Record.readDeclRef()); in VisitOMPIteratorExpr()
978 Expr *Begin = Record.readSubExpr(); in VisitOMPIteratorExpr()
979 Expr *End = Record.readSubExpr(); in VisitOMPIteratorExpr()
980 Expr *Step = Record.readSubExpr(); in VisitOMPIteratorExpr()
988 HD.CounterVD = cast_or_null<VarDecl>(Record.readDeclRef()); in VisitOMPIteratorExpr()
989 HD.Upper = Record.readSubExpr(); in VisitOMPIteratorExpr()
990 HD.Update = Record.readSubExpr(); in VisitOMPIteratorExpr()
991 HD.CounterUpdate = Record.readSubExpr(); in VisitOMPIteratorExpr()
998 unsigned NumArgs = Record.readInt(); in VisitCallExpr()
999 bool HasFPFeatures = Record.readInt(); in VisitCallExpr()
1002 E->setCallee(Record.readSubExpr()); in VisitCallExpr()
1004 E->setArg(I, Record.readSubExpr()); in VisitCallExpr()
1005 E->setADLCallKind(static_cast<CallExpr::ADLCallKind>(Record.readInt())); in VisitCallExpr()
1008 FPOptionsOverride::getFromOpaqueInt(Record.readInt())); in VisitCallExpr()
1018 bool HasQualifier = Record.readInt(); in VisitMemberExpr()
1019 bool HasFoundDecl = Record.readInt(); in VisitMemberExpr()
1020 bool HasTemplateInfo = Record.readInt(); in VisitMemberExpr()
1021 unsigned NumTemplateArgs = Record.readInt(); in VisitMemberExpr()
1023 E->Base = Record.readSubExpr(); in VisitMemberExpr()
1024 E->MemberDecl = Record.readDeclAs<ValueDecl>(); in VisitMemberExpr()
1025 E->MemberDNLoc = Record.readDeclarationNameLoc(E->MemberDecl->getDeclName()); in VisitMemberExpr()
1026 E->MemberLoc = Record.readSourceLocation(); in VisitMemberExpr()
1027 E->MemberExprBits.IsArrow = Record.readInt(); in VisitMemberExpr()
1030 E->MemberExprBits.HadMultipleCandidates = Record.readInt(); in VisitMemberExpr()
1031 E->MemberExprBits.NonOdrUseReason = Record.readInt(); in VisitMemberExpr()
1032 E->MemberExprBits.OperatorLoc = Record.readSourceLocation(); in VisitMemberExpr()
1037 auto *FoundD = Record.readDeclAs<NamedDecl>(); in VisitMemberExpr()
1038 auto AS = (AccessSpecifier)Record.readInt(); in VisitMemberExpr()
1048 QualifierLoc = Record.readNestedNameSpecifierLoc(); in VisitMemberExpr()
1061 E->setBase(Record.readSubExpr()); in VisitObjCIsaExpr()
1064 E->setArrow(Record.readInt()); in VisitObjCIsaExpr()
1070 E->Operand = Record.readSubExpr(); in VisitObjCIndirectCopyRestoreExpr()
1071 E->setShouldCopy(Record.readInt()); in VisitObjCIndirectCopyRestoreExpr()
1078 E->Kind = Record.readInt(); in VisitObjCBridgedCastExpr()
1083 unsigned NumBaseSpecs = Record.readInt(); in VisitCastExpr()
1085 unsigned HasFPFeatures = Record.readInt(); in VisitCastExpr()
1087 E->setSubExpr(Record.readSubExpr()); in VisitCastExpr()
1088 E->setCastKind((CastKind)Record.readInt()); in VisitCastExpr()
1091 auto *BaseSpec = new (Record.getContext()) CXXBaseSpecifier; in VisitCastExpr()
1092 *BaseSpec = Record.readCXXBaseSpecifier(); in VisitCastExpr()
1097 FPOptionsOverride::getFromOpaqueInt(Record.readInt()); in VisitCastExpr()
1104 E->setHasStoredFPFeatures(hasFP_Features = Record.readInt()); in VisitBinaryOperator()
1105 E->setOpcode(opc = (BinaryOperator::Opcode)Record.readInt()); in VisitBinaryOperator()
1106 E->setLHS(Record.readSubExpr()); in VisitBinaryOperator()
1107 E->setRHS(Record.readSubExpr()); in VisitBinaryOperator()
1111 FPOptionsOverride::getFromOpaqueInt(Record.readInt())); in VisitBinaryOperator()
1116 E->setComputationLHSType(Record.readType()); in VisitCompoundAssignOperator()
1117 E->setComputationResultType(Record.readType()); in VisitCompoundAssignOperator()
1122 E->SubExprs[ConditionalOperator::COND] = Record.readSubExpr(); in VisitConditionalOperator()
1123 E->SubExprs[ConditionalOperator::LHS] = Record.readSubExpr(); in VisitConditionalOperator()
1124 E->SubExprs[ConditionalOperator::RHS] = Record.readSubExpr(); in VisitConditionalOperator()
1132 E->OpaqueValue = cast<OpaqueValueExpr>(Record.readSubExpr()); in VisitBinaryConditionalOperator()
1133 E->SubExprs[BinaryConditionalOperator::COMMON] = Record.readSubExpr(); in VisitBinaryConditionalOperator()
1134 E->SubExprs[BinaryConditionalOperator::COND] = Record.readSubExpr(); in VisitBinaryConditionalOperator()
1135 E->SubExprs[BinaryConditionalOperator::LHS] = Record.readSubExpr(); in VisitBinaryConditionalOperator()
1136 E->SubExprs[BinaryConditionalOperator::RHS] = Record.readSubExpr(); in VisitBinaryConditionalOperator()
1143 E->setIsPartOfExplicitCast(Record.readInt()); in VisitImplicitCastExpr()
1161 E->setInitializer(Record.readSubExpr()); in VisitCompoundLiteralExpr()
1162 E->setFileScope(Record.readInt()); in VisitCompoundLiteralExpr()
1167 E->setBase(Record.readSubExpr()); in VisitExtVectorElementExpr()
1168 E->setAccessor(Record.readIdentifier()); in VisitExtVectorElementExpr()
1174 if (auto *SyntForm = cast_or_null<InitListExpr>(Record.readSubStmt())) in VisitInitListExpr()
1178 bool isArrayFiller = Record.readInt(); in VisitInitListExpr()
1181 filler = Record.readSubExpr(); in VisitInitListExpr()
1185 E->sawArrayRangeDesignator(Record.readInt()); in VisitInitListExpr()
1186 unsigned NumInits = Record.readInt(); in VisitInitListExpr()
1187 E->reserveInits(Record.getContext(), NumInits); in VisitInitListExpr()
1190 Expr *init = Record.readSubExpr(); in VisitInitListExpr()
1191 E->updateInit(Record.getContext(), I, init ? init : filler); in VisitInitListExpr()
1195 E->updateInit(Record.getContext(), I, Record.readSubExpr()); in VisitInitListExpr()
1203 unsigned NumSubExprs = Record.readInt(); in VisitDesignatedInitExpr()
1206 E->setSubExpr(I, Record.readSubExpr()); in VisitDesignatedInitExpr()
1208 E->setGNUSyntax(Record.readInt()); in VisitDesignatedInitExpr()
1211 while (Record.getIdx() < Record.size()) { in VisitDesignatedInitExpr()
1212 switch ((DesignatorTypes)Record.readInt()) { in VisitDesignatedInitExpr()
1224 const IdentifierInfo *Name = Record.readIdentifier(); in VisitDesignatedInitExpr()
1232 unsigned Index = Record.readInt(); in VisitDesignatedInitExpr()
1240 unsigned Index = Record.readInt(); in VisitDesignatedInitExpr()
1250 E->setDesignators(Record.getContext(), in VisitDesignatedInitExpr()
1256 E->setBase(Record.readSubExpr()); in VisitDesignatedInitUpdateExpr()
1257 E->setUpdater(Record.readSubExpr()); in VisitDesignatedInitUpdateExpr()
1266 E->SubExprs[0] = Record.readSubExpr(); in VisitArrayInitLoopExpr()
1267 E->SubExprs[1] = Record.readSubExpr(); in VisitArrayInitLoopExpr()
1280 E->setSubExpr(Record.readSubExpr()); in VisitVAArgExpr()
1284 E->setIsMicrosoftABI(Record.readInt()); in VisitVAArgExpr()
1293 static_cast<SourceLocExpr::IdentKind>(Record.readInt()); in VisitSourceLocExpr()
1307 E->setSubStmt(cast_or_null<CompoundStmt>(Record.readSubStmt())); in VisitStmtExpr()
1308 E->StmtExprBits.TemplateDepth = Record.readInt(); in VisitStmtExpr()
1313 E->setCond(Record.readSubExpr()); in VisitChooseExpr()
1314 E->setLHS(Record.readSubExpr()); in VisitChooseExpr()
1315 E->setRHS(Record.readSubExpr()); in VisitChooseExpr()
1318 E->setIsConditionTrue(Record.readInt()); in VisitChooseExpr()
1329 unsigned NumExprs = Record.readInt(); in VisitShuffleVectorExpr()
1331 Exprs.push_back(Record.readSubExpr()); in VisitShuffleVectorExpr()
1332 E->setExprs(Record.getContext(), Exprs); in VisitShuffleVectorExpr()
1342 E->SrcExpr = Record.readSubExpr(); in VisitConvertVectorExpr()
1353 unsigned NumAssocs = Record.readInt(); in VisitGenericSelectionExpr()
1355 E->ResultIndex = Record.readInt(); in VisitGenericSelectionExpr()
1365 Stmts[I] = Record.readSubExpr(); in VisitGenericSelectionExpr()
1374 unsigned numSemanticExprs = Record.readInt(); in VisitPseudoObjectExpr()
1376 E->PseudoObjectExprBits.ResultIndex = Record.readInt(); in VisitPseudoObjectExpr()
1379 E->getSubExprsBuffer()[0] = Record.readSubExpr(); in VisitPseudoObjectExpr()
1383 Expr *subExpr = Record.readSubExpr(); in VisitPseudoObjectExpr()
1390 E->Op = AtomicExpr::AtomicOp(Record.readInt()); in VisitAtomicExpr()
1393 E->SubExprs[I] = Record.readSubExpr(); in VisitAtomicExpr()
1403 E->setString(cast<StringLiteral>(Record.readSubStmt())); in VisitObjCStringLiteral()
1410 E->SubExpr = Record.readSubStmt(); in VisitObjCBoxedExpr()
1417 unsigned NumElements = Record.readInt(); in VisitObjCArrayLiteral()
1421 Elements[I] = Record.readSubExpr(); in VisitObjCArrayLiteral()
1428 unsigned NumElements = Record.readInt(); in VisitObjCDictionaryLiteral()
1430 bool HasPackExpansions = Record.readInt(); in VisitObjCDictionaryLiteral()
1437 KeyValues[I].Key = Record.readSubExpr(); in VisitObjCDictionaryLiteral()
1438 KeyValues[I].Value = Record.readSubExpr(); in VisitObjCDictionaryLiteral()
1441 Expansions[I].NumExpansionsPlusOne = Record.readInt(); in VisitObjCDictionaryLiteral()
1457 E->setSelector(Record.readSelector()); in VisitObjCSelectorExpr()
1475 E->setBase(Record.readSubExpr()); in VisitObjCIvarRefExpr()
1476 E->setIsArrow(Record.readInt()); in VisitObjCIvarRefExpr()
1477 E->setIsFreeIvar(Record.readInt()); in VisitObjCIvarRefExpr()
1482 unsigned MethodRefFlags = Record.readInt(); in VisitObjCPropertyRefExpr()
1483 bool Implicit = Record.readInt() != 0; in VisitObjCPropertyRefExpr()
1493 switch (Record.readInt()) { in VisitObjCPropertyRefExpr()
1495 E->setBase(Record.readSubExpr()); in VisitObjCPropertyRefExpr()
1498 E->setSuperReceiver(Record.readType()); in VisitObjCPropertyRefExpr()
1509 E->setBaseExpr(Record.readSubExpr()); in VisitObjCSubscriptRefExpr()
1510 E->setKeyExpr(Record.readSubExpr()); in VisitObjCSubscriptRefExpr()
1517 assert(Record.peekInt() == E->getNumArgs()); in VisitObjCMessageExpr()
1518 Record.skipInts(1); in VisitObjCMessageExpr()
1519 unsigned NumStoredSelLocs = Record.readInt(); in VisitObjCMessageExpr()
1520 E->SelLocsKind = Record.readInt(); in VisitObjCMessageExpr()
1521 E->setDelegateInitCall(Record.readInt()); in VisitObjCMessageExpr()
1522 E->IsImplicit = Record.readInt(); in VisitObjCMessageExpr()
1523 auto Kind = static_cast<ObjCMessageExpr::ReceiverKind>(Record.readInt()); in VisitObjCMessageExpr()
1526 E->setInstanceReceiver(Record.readSubExpr()); in VisitObjCMessageExpr()
1535 QualType T = Record.readType(); in VisitObjCMessageExpr()
1544 if (Record.readInt()) in VisitObjCMessageExpr()
1547 E->setSelector(Record.readSelector()); in VisitObjCMessageExpr()
1553 E->setArg(I, Record.readSubExpr()); in VisitObjCMessageExpr()
1562 S->setElement(Record.readSubStmt()); in VisitObjCForCollectionStmt()
1563 S->setCollection(Record.readSubExpr()); in VisitObjCForCollectionStmt()
1564 S->setBody(Record.readSubStmt()); in VisitObjCForCollectionStmt()
1571 S->setCatchBody(Record.readSubStmt()); in VisitObjCAtCatchStmt()
1579 S->setFinallyBody(Record.readSubStmt()); in VisitObjCAtFinallyStmt()
1585 S->setSubStmt(Record.readSubStmt()); in VisitObjCAutoreleasePoolStmt()
1591 assert(Record.peekInt() == S->getNumCatchStmts()); in VisitObjCAtTryStmt()
1592 Record.skipInts(1); in VisitObjCAtTryStmt()
1593 bool HasFinally = Record.readInt(); in VisitObjCAtTryStmt()
1594 S->setTryBody(Record.readSubStmt()); in VisitObjCAtTryStmt()
1596 S->setCatchStmt(I, cast_or_null<ObjCAtCatchStmt>(Record.readSubStmt())); in VisitObjCAtTryStmt()
1599 S->setFinallyStmt(Record.readSubStmt()); in VisitObjCAtTryStmt()
1605 S->setSynchExpr(Record.readSubStmt()); in VisitObjCAtSynchronizedStmt()
1606 S->setSynchBody(Record.readSubStmt()); in VisitObjCAtSynchronizedStmt()
1612 S->setThrowExpr(Record.readSubStmt()); in VisitObjCAtThrowStmt()
1618 E->setValue(Record.readInt()); in VisitObjCBoolLiteralExpr()
1624 SourceRange R = Record.readSourceRange(); in VisitObjCAvailabilityCheckExpr()
1627 E->VersionToCheck = Record.readVersionTuple(); in VisitObjCAvailabilityCheckExpr()
1638 S->HandlerBlock = Record.readSubStmt(); in VisitCXXCatchStmt()
1643 assert(Record.peekInt() == S->getNumHandlers() && "NumStmtFields is wrong ?"); in VisitCXXTryStmt()
1644 Record.skipInts(1); in VisitCXXTryStmt()
1646 S->getStmts()[0] = Record.readSubStmt(); in VisitCXXTryStmt()
1648 S->getStmts()[i + 1] = Record.readSubStmt(); in VisitCXXTryStmt()
1657 S->setInit(Record.readSubStmt()); in VisitCXXForRangeStmt()
1658 S->setRangeStmt(Record.readSubStmt()); in VisitCXXForRangeStmt()
1659 S->setBeginStmt(Record.readSubStmt()); in VisitCXXForRangeStmt()
1660 S->setEndStmt(Record.readSubStmt()); in VisitCXXForRangeStmt()
1661 S->setCond(Record.readSubExpr()); in VisitCXXForRangeStmt()
1662 S->setInc(Record.readSubExpr()); in VisitCXXForRangeStmt()
1663 S->setLoopVarStmt(Record.readSubStmt()); in VisitCXXForRangeStmt()
1664 S->setBody(Record.readSubStmt()); in VisitCXXForRangeStmt()
1670 S->IsIfExists = Record.readInt(); in VisitMSDependentExistsStmt()
1671 S->QualifierLoc = Record.readNestedNameSpecifierLoc(); in VisitMSDependentExistsStmt()
1672 S->NameInfo = Record.readDeclarationNameInfo(); in VisitMSDependentExistsStmt()
1673 S->SubStmt = Record.readSubStmt(); in VisitMSDependentExistsStmt()
1678 E->CXXOperatorCallExprBits.OperatorKind = Record.readInt(); in VisitCXXOperatorCallExpr()
1679 E->Range = Record.readSourceRange(); in VisitCXXOperatorCallExpr()
1685 E->CXXRewrittenBinaryOperatorBits.IsReversed = Record.readInt(); in VisitCXXRewrittenBinaryOperator()
1686 E->SemanticForm = Record.readSubExpr(); in VisitCXXRewrittenBinaryOperator()
1692 unsigned NumArgs = Record.readInt(); in VisitCXXConstructExpr()
1695 E->CXXConstructExprBits.Elidable = Record.readInt(); in VisitCXXConstructExpr()
1696 E->CXXConstructExprBits.HadMultipleCandidates = Record.readInt(); in VisitCXXConstructExpr()
1697 E->CXXConstructExprBits.ListInitialization = Record.readInt(); in VisitCXXConstructExpr()
1698 E->CXXConstructExprBits.StdInitListInitialization = Record.readInt(); in VisitCXXConstructExpr()
1699 E->CXXConstructExprBits.ZeroInitialization = Record.readInt(); in VisitCXXConstructExpr()
1700 E->CXXConstructExprBits.ConstructionKind = Record.readInt(); in VisitCXXConstructExpr()
1706 E->setArg(I, Record.readSubExpr()); in VisitCXXConstructExpr()
1713 E->ConstructsVirtualBase = Record.readInt(); in VisitCXXInheritedCtorInitExpr()
1714 E->InheritedFromVirtualBase = Record.readInt(); in VisitCXXInheritedCtorInitExpr()
1724 unsigned NumCaptures = Record.readInt(); in VisitLambdaExpr()
1728 E->LambdaExprBits.CaptureDefault = Record.readInt(); in VisitLambdaExpr()
1730 E->LambdaExprBits.ExplicitParams = Record.readInt(); in VisitLambdaExpr()
1731 E->LambdaExprBits.ExplicitResultType = Record.readInt(); in VisitLambdaExpr()
1738 *C = Record.readSubExpr(); in VisitLambdaExpr()
1747 E->SubExpr = Record.readSubExpr(); in VisitCXXStdInitializerListExpr()
1798 E->setValue(Record.readInt()); in VisitCXXBoolLiteralExpr()
1813 E->Operand = Record.readSubExpr(); in VisitCXXTypeidExpr()
1819 E->setImplicit(Record.readInt()); in VisitCXXThisExpr()
1825 E->Operand = Record.readSubExpr(); in VisitCXXThrowExpr()
1826 E->CXXThrowExprBits.IsThrownVariableInScope = Record.readInt(); in VisitCXXThrowExpr()
1845 E->setTemporary(Record.readCXXTemporary()); in VisitCXXBindTemporaryExpr()
1846 E->setSubExpr(Record.readSubExpr()); in VisitCXXBindTemporaryExpr()
1858 bool IsArray = Record.readInt(); in VisitCXXNewExpr()
1859 bool HasInit = Record.readInt(); in VisitCXXNewExpr()
1860 unsigned NumPlacementArgs = Record.readInt(); in VisitCXXNewExpr()
1861 bool IsParenTypeId = Record.readInt(); in VisitCXXNewExpr()
1863 E->CXXNewExprBits.IsGlobalNew = Record.readInt(); in VisitCXXNewExpr()
1864 E->CXXNewExprBits.ShouldPassAlignment = Record.readInt(); in VisitCXXNewExpr()
1865 E->CXXNewExprBits.UsualArrayDeleteWantsSize = Record.readInt(); in VisitCXXNewExpr()
1866 E->CXXNewExprBits.StoredInitializationStyle = Record.readInt(); in VisitCXXNewExpr()
1889 *I = Record.readSubStmt(); in VisitCXXNewExpr()
1894 E->CXXDeleteExprBits.GlobalDelete = Record.readInt(); in VisitCXXDeleteExpr()
1895 E->CXXDeleteExprBits.ArrayForm = Record.readInt(); in VisitCXXDeleteExpr()
1896 E->CXXDeleteExprBits.ArrayFormAsWritten = Record.readInt(); in VisitCXXDeleteExpr()
1897 E->CXXDeleteExprBits.UsualArrayDeleteWantsSize = Record.readInt(); in VisitCXXDeleteExpr()
1899 E->Argument = Record.readSubExpr(); in VisitCXXDeleteExpr()
1906 E->Base = Record.readSubExpr(); in VisitCXXPseudoDestructorExpr()
1907 E->IsArrow = Record.readInt(); in VisitCXXPseudoDestructorExpr()
1909 E->QualifierLoc = Record.readNestedNameSpecifierLoc(); in VisitCXXPseudoDestructorExpr()
1914 IdentifierInfo *II = Record.readIdentifier(); in VisitCXXPseudoDestructorExpr()
1924 unsigned NumObjects = Record.readInt(); in VisitExprWithCleanups()
1927 unsigned CleanupKind = Record.readInt(); in VisitExprWithCleanups()
1932 Obj = cast<CompoundLiteralExpr>(Record.readSubExpr()); in VisitExprWithCleanups()
1938 E->ExprWithCleanupsBits.CleanupsHaveSideEffects = Record.readInt(); in VisitExprWithCleanups()
1939 E->SubExpr = Record.readSubExpr(); in VisitExprWithCleanups()
1946 bool HasTemplateKWAndArgsInfo = Record.readInt(); in VisitCXXDependentScopeMemberExpr()
1947 unsigned NumTemplateArgs = Record.readInt(); in VisitCXXDependentScopeMemberExpr()
1948 bool HasFirstQualifierFoundInScope = Record.readInt(); in VisitCXXDependentScopeMemberExpr()
1964 E->CXXDependentScopeMemberExprBits.IsArrow = Record.readInt(); in VisitCXXDependentScopeMemberExpr()
1966 E->BaseType = Record.readType(); in VisitCXXDependentScopeMemberExpr()
1967 E->QualifierLoc = Record.readNestedNameSpecifierLoc(); in VisitCXXDependentScopeMemberExpr()
1968 E->Base = Record.readSubExpr(); in VisitCXXDependentScopeMemberExpr()
1973 E->MemberNameInfo = Record.readDeclarationNameInfo(); in VisitCXXDependentScopeMemberExpr()
1980 if (Record.readInt()) // HasTemplateKWAndArgsInfo in VisitDependentScopeDeclRefExpr()
1984 /*NumTemplateArgs=*/Record.readInt()); in VisitDependentScopeDeclRefExpr()
1986 E->QualifierLoc = Record.readNestedNameSpecifierLoc(); in VisitDependentScopeDeclRefExpr()
1987 E->NameInfo = Record.readDeclarationNameInfo(); in VisitDependentScopeDeclRefExpr()
1993 assert(Record.peekInt() == E->getNumArgs() && in VisitCXXUnresolvedConstructExpr()
1994 "Read wrong record during creation ?"); in VisitCXXUnresolvedConstructExpr()
1995 Record.skipInts(1); in VisitCXXUnresolvedConstructExpr()
1997 E->setArg(I, Record.readSubExpr()); in VisitCXXUnresolvedConstructExpr()
2006 unsigned NumResults = Record.readInt(); in VisitOverloadExpr()
2007 bool HasTemplateKWAndArgsInfo = Record.readInt(); in VisitOverloadExpr()
2013 unsigned NumTemplateArgs = Record.readInt(); in VisitOverloadExpr()
2024 auto AS = (AccessSpecifier)Record.readInt(); in VisitOverloadExpr()
2034 E->NameInfo = Record.readDeclarationNameInfo(); in VisitOverloadExpr()
2035 E->QualifierLoc = Record.readNestedNameSpecifierLoc(); in VisitOverloadExpr()
2040 E->UnresolvedMemberExprBits.IsArrow = Record.readInt(); in VisitUnresolvedMemberExpr()
2041 E->UnresolvedMemberExprBits.HasUnresolvedUsing = Record.readInt(); in VisitUnresolvedMemberExpr()
2042 E->Base = Record.readSubExpr(); in VisitUnresolvedMemberExpr()
2043 E->BaseType = Record.readType(); in VisitUnresolvedMemberExpr()
2049 E->UnresolvedLookupExprBits.RequiresADL = Record.readInt(); in VisitUnresolvedLookupExpr()
2050 E->UnresolvedLookupExprBits.Overloaded = Record.readInt(); in VisitUnresolvedLookupExpr()
2056 E->TypeTraitExprBits.NumArgs = Record.readInt(); in VisitTypeTraitExpr()
2057 E->TypeTraitExprBits.Kind = Record.readInt(); in VisitTypeTraitExpr()
2058 E->TypeTraitExprBits.Value = Record.readInt(); in VisitTypeTraitExpr()
2070 E->ATT = (ArrayTypeTrait)Record.readInt(); in VisitArrayTypeTraitExpr()
2071 E->Value = (unsigned int)Record.readInt(); in VisitArrayTypeTraitExpr()
2076 E->Dimension = Record.readSubExpr(); in VisitArrayTypeTraitExpr()
2081 E->ET = (ExpressionTrait)Record.readInt(); in VisitExpressionTraitExpr()
2082 E->Value = (bool)Record.readInt(); in VisitExpressionTraitExpr()
2084 E->QueriedExpression = Record.readSubExpr(); in VisitExpressionTraitExpr()
2091 E->CXXNoexceptExprBits.Value = Record.readInt(); in VisitCXXNoexceptExpr()
2093 E->Operand = Record.readSubExpr(); in VisitCXXNoexceptExpr()
2099 E->NumExpansions = Record.readInt(); in VisitPackExpansionExpr()
2100 E->Pattern = Record.readSubExpr(); in VisitPackExpansionExpr()
2105 unsigned NumPartialArgs = Record.readInt(); in VisitSizeOfPackExpr()
2109 E->Pack = Record.readDeclAs<NamedDecl>(); in VisitSizeOfPackExpr()
2115 new (I) TemplateArgument(Record.readTemplateArgument()); in VisitSizeOfPackExpr()
2117 E->Length = Record.readInt(); in VisitSizeOfPackExpr()
2125 E->ParamAndRef.setInt(Record.readInt()); in VisitSubstNonTypeTemplateParmExpr()
2127 E->Replacement = Record.readSubExpr(); in VisitSubstNonTypeTemplateParmExpr()
2134 TemplateArgument ArgPack = Record.readTemplateArgument(); in VisitSubstNonTypeTemplateParmPackExpr()
2145 E->NumParameters = Record.readInt(); in VisitFunctionParmPackExpr()
2155 bool HasMaterialzedDecl = Record.readInt(); in VisitMaterializeTemporaryExpr()
2157 E->State = cast<LifetimeExtendedTemporaryDecl>(Record.readDecl()); in VisitMaterializeTemporaryExpr()
2159 E->State = Record.readSubExpr(); in VisitMaterializeTemporaryExpr()
2167 E->NumExpansions = Record.readInt(); in VisitCXXFoldExpr()
2168 E->SubExprs[0] = Record.readSubExpr(); in VisitCXXFoldExpr()
2169 E->SubExprs[1] = Record.readSubExpr(); in VisitCXXFoldExpr()
2170 E->SubExprs[2] = Record.readSubExpr(); in VisitCXXFoldExpr()
2171 E->Opcode = (BinaryOperatorKind)Record.readInt(); in VisitCXXFoldExpr()
2176 E->SourceExpr = Record.readSubExpr(); in VisitOpaqueValueExpr()
2178 E->setIsUnique(Record.readInt()); in VisitOpaqueValueExpr()
2187 unsigned NumArgs = Record.readInt(); in VisitRecoveryExpr()
2195 Child = Record.readSubStmt(); in VisitRecoveryExpr()
2203 E->IsArrow = (Record.readInt() != 0); in VisitMSPropertyRefExpr()
2204 E->BaseExpr = Record.readSubExpr(); in VisitMSPropertyRefExpr()
2205 E->QualifierLoc = Record.readNestedNameSpecifierLoc(); in VisitMSPropertyRefExpr()
2212 E->setBase(Record.readSubExpr()); in VisitMSPropertySubscriptExpr()
2213 E->setIdx(Record.readSubExpr()); in VisitMSPropertySubscriptExpr()
2224 E->Operand = Record.readSubExpr(); in VisitCXXUuidofExpr()
2235 S->Children[SEHExceptStmt::FILTER_EXPR] = Record.readSubStmt(); in VisitSEHExceptStmt()
2236 S->Children[SEHExceptStmt::BLOCK] = Record.readSubStmt(); in VisitSEHExceptStmt()
2242 S->Block = Record.readSubStmt(); in VisitSEHFinallyStmt()
2247 S->IsCXXTry = Record.readInt(); in VisitSEHTryStmt()
2249 S->Children[SEHTryStmt::TRY] = Record.readSubStmt(); in VisitSEHTryStmt()
2250 S->Children[SEHTryStmt::HANDLER] = Record.readSubStmt(); in VisitSEHTryStmt()
2259 E->setPreArg(CUDAKernelCallExpr::CONFIG, Record.readSubExpr()); in VisitCUDAKernelCallExpr()
2269 E->SrcExpr = Record.readSubExpr(); in VisitAsTypeExpr()
2277 Record.readOMPChildren(E->Data); in VisitOMPExecutableDirective()
2285 Record.skipInts(1); in VisitOMPLoopDirective()
2292 D->setHasCancel(Record.readBool()); in VisitOMPParallelDirective()
2301 D->setHasCancel(Record.readBool()); in VisitOMPForDirective()
2311 D->setHasCancel(Record.readBool()); in VisitOMPSectionsDirective()
2317 D->setHasCancel(Record.readBool()); in VisitOMPSectionDirective()
2333 D->DirName = Record.readDeclarationNameInfo(); in VisitOMPCriticalDirective()
2338 D->setHasCancel(Record.readBool()); in VisitOMPParallelForDirective()
2356 D->setHasCancel(Record.readBool()); in VisitOMPParallelSectionsDirective()
2362 D->setHasCancel(Record.readBool()); in VisitOMPTaskDirective()
2408 D->IsXLHSInRHSPart = Record.readBool(); in VisitOMPAtomicDirective()
2409 D->IsPostfixUpdate = Record.readBool(); in VisitOMPAtomicDirective()
2438 D->setHasCancel(Record.readBool()); in VisitOMPTargetParallelDirective()
2444 D->setHasCancel(Record.readBool()); in VisitOMPTargetParallelForDirective()
2456 D->setCancelRegion(Record.readEnum<OpenMPDirectiveKind>()); in VisitOMPCancellationPointDirective()
2462 D->setCancelRegion(Record.readEnum<OpenMPDirectiveKind>()); in VisitOMPCancelDirective()
2467 D->setHasCancel(Record.readBool()); in VisitOMPTaskLoopDirective()
2477 D->setHasCancel(Record.readBool()); in VisitOMPMasterTaskLoopDirective()
2488 D->setHasCancel(Record.readBool()); in VisitOMPParallelMasterTaskLoopDirective()
2508 D->setHasCancel(Record.readBool()); in VisitOMPDistributeParallelForDirective()
2548 D->setHasCancel(Record.readBool()); in VisitOMPTeamsDistributeParallelForDirective()
2564 D->setHasCancel(Record.readBool()); in VisitOMPTargetTeamsDistributeParallelForDirective()
2608 // stack. Evaluation terminates when we see a STMT_STOP record, and
2615 // just after the stmt record. in ReadStmtFromStream()
2622 ASTRecordReader Record(*this, F); in ReadStmtFromStream() local
2623 ASTStmtReader Reader(Record, Cursor); in ReadStmtFromStream()
2638 Error("malformed block record in AST file"); in ReadStmtFromStream()
2642 case llvm::BitstreamEntry::Record: in ReadStmtFromStream()
2651 Expected<unsigned> MaybeStmtCode = Record.readRecord(Cursor, Entry.ID); in ReadStmtFromStream()
2663 assert(StmtEntries.find(Record[0]) != StmtEntries.end() && in ReadStmtFromStream()
2665 S = StmtEntries[Record.readInt()]; in ReadStmtFromStream()
2678 Context, /*NumStmts=*/Record[ASTStmtReader::NumStmtFields]); in ReadStmtFromStream()
2684 /*CaseStmtIsGNURange*/ Record[ASTStmtReader::NumStmtFields + 3]); in ReadStmtFromStream()
2698 /*NumAttrs*/Record[ASTStmtReader::NumStmtFields]); in ReadStmtFromStream()
2704 /* HasElse=*/Record[ASTStmtReader::NumStmtFields + 1], in ReadStmtFromStream()
2705 /* HasVar=*/Record[ASTStmtReader::NumStmtFields + 2], in ReadStmtFromStream()
2706 /* HasInit=*/Record[ASTStmtReader::NumStmtFields + 3]); in ReadStmtFromStream()
2712 /* HasInit=*/Record[ASTStmtReader::NumStmtFields], in ReadStmtFromStream()
2713 /* HasVar=*/Record[ASTStmtReader::NumStmtFields + 1]); in ReadStmtFromStream()
2719 /* HasVar=*/Record[ASTStmtReader::NumStmtFields]); in ReadStmtFromStream()
2748 Context, /* HasNRVOCandidate=*/Record[ASTStmtReader::NumStmtFields]); in ReadStmtFromStream()
2765 Context, Record[ASTStmtReader::NumStmtFields]); in ReadStmtFromStream()
2771 /*StorageKind=*/Record[ASTStmtReader::NumExprFields])); in ReadStmtFromStream()
2777 /*HasFunctionName*/ Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
2783 /*HasQualifier=*/Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
2784 /*HasFoundDecl=*/Record[ASTStmtReader::NumExprFields + 1], in ReadStmtFromStream()
2785 /*HasTemplateKWAndArgsInfo=*/Record[ASTStmtReader::NumExprFields + 2], in ReadStmtFromStream()
2786 /*NumTemplateArgs=*/Record[ASTStmtReader::NumExprFields + 2] ? in ReadStmtFromStream()
2787 Record[ASTStmtReader::NumExprFields + 6] : 0); in ReadStmtFromStream()
2809 /* NumConcatenated=*/Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
2810 /* Length=*/Record[ASTStmtReader::NumExprFields + 1], in ReadStmtFromStream()
2811 /* CharByteWidth=*/Record[ASTStmtReader::NumExprFields + 2]); in ReadStmtFromStream()
2825 /* NumExprs=*/Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
2830 Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
2835 Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
2836 Record[ASTStmtReader::NumExprFields + 1]); in ReadStmtFromStream()
2857 Context, Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
2862 Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
2867 Context, /*NumArgs=*/Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
2868 /*HasFPFeatures=*/Record[ASTStmtReader::NumExprFields + 1], Empty); in ReadStmtFromStream()
2873 Context, /*NumArgs=*/Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
2877 S = MemberExpr::CreateEmpty(Context, Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
2878 Record[ASTStmtReader::NumExprFields + 1], in ReadStmtFromStream()
2879 Record[ASTStmtReader::NumExprFields + 2], in ReadStmtFromStream()
2880 Record[ASTStmtReader::NumExprFields + 3]); in ReadStmtFromStream()
2885 Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
2890 Context, Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
2904 /*PathSize*/ Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
2905 /*HasFPFeatures*/ Record[ASTStmtReader::NumExprFields + 1]); in ReadStmtFromStream()
2911 /*PathSize*/ Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
2912 /*HasFPFeatures*/ Record[ASTStmtReader::NumExprFields + 1]); in ReadStmtFromStream()
2929 Record[ASTStmtReader::NumExprFields] - 1); in ReadStmtFromStream()
2992 /*NumAssocs=*/Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
3005 Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
3010 Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3011 Record[ASTStmtReader::NumExprFields + 1]); in ReadStmtFromStream()
3043 Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3044 Record[ASTStmtReader::NumExprFields + 1]); in ReadStmtFromStream()
3073 Record[ASTStmtReader::NumStmtFields], in ReadStmtFromStream()
3074 Record[ASTStmtReader::NumStmtFields + 1]); in ReadStmtFromStream()
3119 /*numHandlers=*/Record[ASTStmtReader::NumStmtFields]); in ReadStmtFromStream()
3136 Record[ASTStmtReader::NumStmtFields], in ReadStmtFromStream()
3141 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3142 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3149 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3150 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3157 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3158 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3166 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3175 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3184 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3188 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3189 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3196 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3197 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3205 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3210 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3215 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3232 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3237 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3242 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3247 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3251 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3252 bool HasAssociatedStmt = Record[ASTStmtReader::NumStmtFields + 2]; in ReadStmtFromStream()
3260 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3265 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3270 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3275 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3280 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3285 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3289 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3290 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3298 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3303 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3312 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3316 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3317 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3324 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3325 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3332 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3333 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3340 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3341 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3348 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3349 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3356 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3357 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3364 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3365 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3372 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3373 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3380 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3381 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3389 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3390 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3397 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3398 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3405 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3406 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3413 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3414 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3421 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3422 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3429 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3430 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3437 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3438 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3446 Context, Record[ASTStmtReader::NumStmtFields], Empty); in ReadStmtFromStream()
3450 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3451 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3458 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3459 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3466 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3467 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3474 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3475 unsigned NumClauses = Record[ASTStmtReader::NumStmtFields + 1]; in ReadStmtFromStream()
3483 Context, /*NumArgs=*/Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3484 /*HasFPFeatures=*/Record[ASTStmtReader::NumExprFields + 1], Empty); in ReadStmtFromStream()
3489 Context, /*NumArgs=*/Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3490 /*HasFPFeatures=*/Record[ASTStmtReader::NumExprFields + 1], Empty); in ReadStmtFromStream()
3500 /* NumArgs=*/Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
3510 /* NumArgs=*/Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
3516 /*PathSize*/ Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3517 /*HasFPFeatures*/ Record[ASTStmtReader::NumExprFields + 1]); in ReadStmtFromStream()
3522 /*PathSize*/ Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
3527 /*PathSize*/ Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
3541 /*PathSize*/ Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3542 /*HasFPFeatures*/ Record[ASTStmtReader::NumExprFields + 1]); in ReadStmtFromStream()
3546 assert(Record[ASTStmtReader::NumExprFields] == 0 && "Wrong PathSize!"); in ReadStmtFromStream()
3552 Context, /*NumArgs=*/Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3553 /*HasFPFeatures=*/Record[ASTStmtReader::NumExprFields + 1], Empty); in ReadStmtFromStream()
3619 /*IsArray=*/Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3620 /*HasInit=*/Record[ASTStmtReader::NumExprFields + 1], in ReadStmtFromStream()
3621 /*NumPlacementArgs=*/Record[ASTStmtReader::NumExprFields + 2], in ReadStmtFromStream()
3622 /*IsParenTypeId=*/Record[ASTStmtReader::NumExprFields + 3]); in ReadStmtFromStream()
3635 Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
3641 /*HasTemplateKWAndArgsInfo=*/Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3642 /*NumTemplateArgs=*/Record[ASTStmtReader::NumExprFields + 1], in ReadStmtFromStream()
3644 Record[ASTStmtReader::NumExprFields + 2]); in ReadStmtFromStream()
3649 /*HasTemplateKWAndArgsInfo=*/Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3650 /*NumTemplateArgs=*/Record[ASTStmtReader::NumExprFields] in ReadStmtFromStream()
3651 ? Record[ASTStmtReader::NumExprFields + 1] in ReadStmtFromStream()
3657 /*NumArgs=*/Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
3663 /*NumResults=*/Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3664 /*HasTemplateKWAndArgsInfo=*/Record[ASTStmtReader::NumExprFields + 1], in ReadStmtFromStream()
3666 Record[ASTStmtReader::NumExprFields + 1] in ReadStmtFromStream()
3667 ? Record[ASTStmtReader::NumExprFields + 2] in ReadStmtFromStream()
3674 /*NumResults=*/Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3675 /*HasTemplateKWAndArgsInfo=*/Record[ASTStmtReader::NumExprFields + 1], in ReadStmtFromStream()
3677 Record[ASTStmtReader::NumExprFields + 1] in ReadStmtFromStream()
3678 ? Record[ASTStmtReader::NumExprFields + 2] in ReadStmtFromStream()
3684 Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
3706 /*NumPartialArgs=*/Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
3719 Record[ASTStmtReader::NumExprFields]); in ReadStmtFromStream()
3736 Context, /*NumArgs=*/Record[ASTStmtReader::NumExprFields], in ReadStmtFromStream()
3737 /*HasFPFeatures=*/Record[ASTStmtReader::NumExprFields + 1], Empty); in ReadStmtFromStream()
3745 unsigned numSemanticExprs = Record[ASTStmtReader::NumExprFields]; in ReadStmtFromStream()
3755 unsigned NumCaptures = Record[ASTStmtReader::NumExprFields]; in ReadStmtFromStream()
3761 unsigned NumParams = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream()
3783 unsigned numTemplateArgs = Record[ASTStmtReader::NumExprFields]; in ReadStmtFromStream()
3789 unsigned numLocalParameters = Record[ASTStmtReader::NumExprFields]; in ReadStmtFromStream()
3790 unsigned numRequirement = Record[ASTStmtReader::NumExprFields + 1]; in ReadStmtFromStream()
3807 assert(Record.getIdx() == Record.size() && in ReadStmtFromStream()