Lines Matching defs:Reader
29 ASTReader &Reader;
36 return Reader.ReadSourceLocation(F, R, I);
40 return Reader.ReadSourceRange(F, R, I);
44 return Reader.GetTypeSourceInfo(F, R, I);
48 return Reader.ReadDeclID(F, R, I);
52 return Reader.ReadDecl(F, R, I);
57 return Reader.ReadDeclAs<T>(F, R, I);
62 Reader.ReadDeclarationNameLoc(F, DNLoc, Name, R, I);
67 Reader.ReadDeclarationNameInfo(F, NameInfo, R, I);
71 ASTStmtReader(ASTReader &Reader, ModuleFile &F,
74 : Reader(Reader), F(F), DeclsCursor(Cursor), Record(Record), Idx(Idx) { }
107 Reader.ReadTemplateArgumentLoc(F, Record, Idx));
126 Stmts.push_back(Reader.ReadSubStmt());
127 S->setStmts(Reader.getContext(), Stmts.data(), Stmts.size());
134 Reader.RecordSwitchCaseID(S, Record[Idx++]);
141 S->setLHS(Reader.ReadSubExpr());
142 S->setRHS(Reader.ReadSubExpr());
143 S->setSubStmt(Reader.ReadSubStmt());
149 S->setSubStmt(Reader.ReadSubStmt());
157 S->setSubStmt(Reader.ReadSubStmt());
165 Reader.ReadAttributes(F, Attrs, Record, Idx);
170 S->SubStmt = Reader.ReadSubStmt();
176 S->setConditionVariable(Reader.getContext(),
178 S->setCond(Reader.ReadSubExpr());
179 S->setThen(Reader.ReadSubStmt());
180 S->setElse(Reader.ReadSubStmt());
187 S->setConditionVariable(Reader.getContext(),
189 S->setCond(Reader.ReadSubExpr());
190 S->setBody(Reader.ReadSubStmt());
197 SwitchCase *SC = Reader.getSwitchCaseWithID(Record[Idx]);
209 S->setConditionVariable(Reader.getContext(),
212 S->setCond(Reader.ReadSubExpr());
213 S->setBody(Reader.ReadSubStmt());
219 S->setCond(Reader.ReadSubExpr());
220 S->setBody(Reader.ReadSubStmt());
228 S->setInit(Reader.ReadSubStmt());
229 S->setCond(Reader.ReadSubExpr());
230 S->setConditionVariable(Reader.getContext(),
232 S->setInc(Reader.ReadSubExpr());
233 S->setBody(Reader.ReadSubStmt());
250 S->setTarget(Reader.ReadSubExpr());
265 S->setRetValue(Reader.ReadSubExpr());
283 S->setDeclGroup(DeclGroupRef(DeclGroup::Create(Reader.getContext(),
299 S->setAsmString(cast_or_null<StringLiteral>(Reader.ReadSubStmt()));
306 Names.push_back(Reader.GetIdentifierInfo(F, Record, Idx));
307 Constraints.push_back(cast_or_null<StringLiteral>(Reader.ReadSubStmt()));
308 Exprs.push_back(Reader.ReadSubStmt());
314 Clobbers.push_back(cast_or_null<StringLiteral>(Reader.ReadSubStmt()));
316 S->setOutputsAndInputsAndClobbers(Reader.getContext(),
323 // FIXME: Statement reader not yet implemented for MS style inline asm.
329 E->setType(Reader.readType(F, Record, Idx));
359 = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx);
376 E->setValue(Reader.getContext(), Reader.ReadAPInt(Record, Idx));
383 E->setValue(Reader.getContext(),
384 Reader.ReadAPFloat(Record, E->getSemantics(), Idx));
390 E->setSubExpr(Reader.ReadSubExpr());
405 E->setString(Reader.getContext(), Str.str(), kind, isPascal);
424 E->setSubExpr(Reader.ReadSubExpr());
430 E->Exprs = new (Reader.getContext()) Stmt*[NumExprs];
432 E->Exprs[i] = Reader.ReadSubStmt();
440 E->setSubExpr(Reader.ReadSubExpr());
471 Reader.GetIdentifierInfo(F, Record, Idx),
476 CXXBaseSpecifier *Base = new (Reader.getContext()) CXXBaseSpecifier();
477 *Base = Reader.ReadCXXBaseSpecifier(F, Record, Idx);
485 E->setIndexExpr(I, Reader.ReadSubExpr());
492 E->setArgument(Reader.ReadSubExpr());
503 E->setLHS(Reader.ReadSubExpr());
504 E->setRHS(Reader.ReadSubExpr());
510 E->setNumArgs(Reader.getContext(), Record[Idx++]);
512 E->setCallee(Reader.ReadSubExpr());
514 E->setArg(I, Reader.ReadSubExpr());
529 E->setBase(Reader.ReadSubExpr());
537 E->Operand = Reader.ReadSubExpr();
552 E->setSubExpr(Reader.ReadSubExpr());
556 CXXBaseSpecifier *BaseSpec = new (Reader.getContext()) CXXBaseSpecifier;
557 *BaseSpec = Reader.ReadCXXBaseSpecifier(F, Record, Idx);
564 E->setLHS(Reader.ReadSubExpr());
565 E->setRHS(Reader.ReadSubExpr());
573 E->setComputationLHSType(Reader.readType(F, Record, Idx));
574 E->setComputationResultType(Reader.readType(F, Record, Idx));
579 E->SubExprs[ConditionalOperator::COND] = Reader.ReadSubExpr();
580 E->SubExprs[ConditionalOperator::LHS] = Reader.ReadSubExpr();
581 E->SubExprs[ConditionalOperator::RHS] = Reader.ReadSubExpr();
589 E->OpaqueValue = cast<OpaqueValueExpr>(Reader.ReadSubExpr());
590 E->SubExprs[BinaryConditionalOperator::COMMON] = Reader.ReadSubExpr();
591 E->SubExprs[BinaryConditionalOperator::COND] = Reader.ReadSubExpr();
592 E->SubExprs[BinaryConditionalOperator::LHS] = Reader.ReadSubExpr();
593 E->SubExprs[BinaryConditionalOperator::RHS] = Reader.ReadSubExpr();
617 E->setInitializer(Reader.ReadSubExpr());
623 E->setBase(Reader.ReadSubExpr());
624 E->setAccessor(Reader.GetIdentifierInfo(F, Record, Idx));
630 if (InitListExpr *SyntForm = cast_or_null<InitListExpr>(Reader.ReadSubStmt()))
637 filler = Reader.ReadSubExpr();
644 E->reserveInits(Reader.getContext(), NumInits);
647 Expr *init = Reader.ReadSubExpr();
648 E->updateInit(Reader.getContext(), I, init ? init : filler);
652 E->updateInit(Reader.getContext(), I, Reader.ReadSubExpr());
663 E->setSubExpr(I, Reader.ReadSubExpr());
683 const IdentifierInfo *Name = Reader.GetIdentifierInfo(F, Record, Idx);
716 E->setDesignators(Reader.getContext(),
726 E->setSubExpr(Reader.ReadSubExpr());
743 E->setSubStmt(cast_or_null<CompoundStmt>(Reader.ReadSubStmt()));
748 E->setCond(Reader.ReadSubExpr());
749 E->setLHS(Reader.ReadSubExpr());
750 E->setRHS(Reader.ReadSubExpr());
765 Exprs.push_back(Reader.ReadSubExpr());
766 E->setExprs(Reader.getContext(), Exprs.data(), Exprs.size());
779 E->AssocTypes = new (Reader.getContext()) TypeSourceInfo*[E->NumAssocs];
781 new(Reader.getContext()) Stmt*[GenericSelectionExpr::END_EXPR+E->NumAssocs];
783 E->SubExprs[GenericSelectionExpr::CONTROLLING] = Reader.ReadSubExpr();
786 E->SubExprs[GenericSelectionExpr::END_EXPR+I] = Reader.ReadSubExpr();
802 E->getSubExprsBuffer()[0] = Reader.ReadSubExpr();
806 Expr *subExpr = Reader.ReadSubExpr();
816 E->SubExprs[I] = Reader.ReadSubExpr();
826 E->setString(cast<StringLiteral>(Reader.ReadSubStmt()));
833 E->SubExpr = Reader.ReadSubStmt();
844 Elements[I] = Reader.ReadSubExpr();
858 KeyValues[I].Key = Reader.ReadSubExpr();
859 KeyValues[I].Value = Reader.ReadSubExpr();
878 E->setSelector(Reader.ReadSelector(F, Record, Idx));
895 E->setBase(Reader.ReadSubExpr());
916 E->setBase(Reader.ReadSubExpr());
919 E->setSuperReceiver(Reader.readType(F, Record, Idx));
930 E->setBaseExpr(Reader.ReadSubExpr());
931 E->setKeyExpr(Reader.ReadSubExpr());
948 E->setInstanceReceiver(Reader.ReadSubExpr());
957 QualType T = Reader.readType(F, Record, Idx);
969 E->setSelector(Reader.ReadSelector(F, Record, Idx));
975 E->setArg(I, Reader.ReadSubExpr());
984 S->setElement(Reader.ReadSubStmt());
985 S->setCollection(Reader.ReadSubExpr());
986 S->setBody(Reader.ReadSubStmt());
993 S->setCatchBody(Reader.ReadSubStmt());
1001 S->setFinallyBody(Reader.ReadSubStmt());
1007 S->setSubStmt(Reader.ReadSubStmt());
1016 S->setTryBody(Reader.ReadSubStmt());
1018 S->setCatchStmt(I, cast_or_null<ObjCAtCatchStmt>(Reader.ReadSubStmt()));
1021 S->setFinallyStmt(Reader.ReadSubStmt());
1027 S->setSynchExpr(Reader.ReadSubStmt());
1028 S->setSynchBody(Reader.ReadSubStmt());
1034 S->setThrowExpr(Reader.ReadSubStmt());
1052 S->HandlerBlock = Reader.ReadSubStmt();
1060 S->getStmts()[0] = Reader.ReadSubStmt();
1062 S->getStmts()[i + 1] = Reader.ReadSubStmt();
1070 S->setRangeStmt(Reader.ReadSubStmt());
1071 S->setBeginEndStmt(Reader.ReadSubStmt());
1072 S->setCond(Reader.ReadSubExpr());
1073 S->setInc(Reader.ReadSubExpr());
1074 S->setLoopVarStmt(Reader.ReadSubStmt());
1075 S->setBody(Reader.ReadSubStmt());
1082 S->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx);
1084 S->SubStmt = Reader.ReadSubStmt();
1090 E->Range = Reader.ReadSourceRange(F, Record, Idx);
1098 E->Args = new (Reader.getContext()) Stmt*[E->NumArgs];
1100 E->setArg(I, Reader.ReadSubExpr());
1131 *C = Reader.ReadSubExpr();
1202 E->setExprOperand(Reader.ReadSubExpr());
1214 E->Op = Reader.ReadSubExpr();
1229 E->setTemporary(Reader.ReadCXXTemporary(F, Record, Idx));
1230 E->setSubExpr(Reader.ReadSubExpr());
1253 E->AllocateArgsArray(Reader.getContext(), isArray, NumPlacementArgs,
1259 *I = Reader.ReadSubStmt();
1269 E->Argument = Reader.ReadSubExpr();
1276 E->Base = Reader.ReadSubExpr();
1279 E->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx);
1284 IdentifierInfo *II = Reader.GetIdentifierInfo(F, Record, Idx);
1299 E->SubExpr = Reader.ReadSubExpr();
1310 E->Base = Reader.ReadSubExpr();
1311 E->BaseType = Reader.readType(F, Record, Idx);
1314 E->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx);
1327 E->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx);
1337 E->setArg(I, Reader.ReadSubExpr());
1357 E->initializeResults(Reader.getContext(), Decls.begin(), Decls.end());
1360 E->QualifierLoc = Reader.ReadNestedNameSpecifierLoc(F, Record, Idx);
1367 E->Base = Reader.ReadSubExpr();
1368 E->BaseType = Reader.readType(F, Record, Idx);
1426 E->QueriedExpression = Reader.ReadSubExpr();
1435 E->Operand = Reader.ReadSubExpr();
1442 E->Pattern = Reader.ReadSubExpr();
1459 E->Replacement = Reader.ReadSubExpr();
1466 TemplateArgument ArgPack = Reader.ReadTemplateArgument(F, Record, Idx);
1487 E->Temporary = Reader.ReadSubExpr();
1492 E->SourceExpr = Reader.ReadSubExpr();
1509 E->setExprOperand(Reader.ReadSubExpr());
1515 S->Children[SEHExceptStmt::FILTER_EXPR] = Reader.ReadSubStmt();
1516 S->Children[SEHExceptStmt::BLOCK] = Reader.ReadSubStmt();
1522 S->Block = Reader.ReadSubStmt();
1529 S->Children[SEHTryStmt::TRY] = Reader.ReadSubStmt();
1530 S->Children[SEHTryStmt::HANDLER] = Reader.ReadSubStmt();
1539 E->setConfig(cast<CallExpr>(Reader.ReadSubExpr()));
1549 E->SrcExpr = Reader.ReadSubExpr();
1598 ASTStmtReader Reader(*this, F, Cursor, Record, Idx);
2239 Reader.Visit(S);