• Home
  • Raw
  • Download

Lines Matching refs:Terminator

3067 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) {  in VisitSwitchStmt()  argument
3077 if (Stmt *Init = Terminator->getInit()) { in VisitSwitchStmt()
3080 addAutomaticObjDtors(ScopePos, BeginScopePos, Terminator); in VisitSwitchStmt()
3085 if (VarDecl *VD = Terminator->getConditionVariable()) { in VisitSwitchStmt()
3088 addAutomaticObjDtors(ScopePos, SwitchBeginScopePos, Terminator); in VisitSwitchStmt()
3118 assert(Terminator->getBody() && "switch must contain a non-NULL body"); in VisitSwitchStmt()
3127 assert(Terminator->getCond() && "switch condition must be non-NULL"); in VisitSwitchStmt()
3129 bool b = tryEvaluate(Terminator->getCond(), result); in VisitSwitchStmt()
3135 if (!isa<CompoundStmt>(Terminator->getBody())) in VisitSwitchStmt()
3136 addLocalScopeAndDtors(Terminator->getBody()); in VisitSwitchStmt()
3138 addStmt(Terminator->getBody()); in VisitSwitchStmt()
3152 SwitchAlwaysHasSuccessor |= Terminator->isAllEnumCasesCovered() && in VisitSwitchStmt()
3153 Terminator->getSwitchCaseList(); in VisitSwitchStmt()
3158 SwitchTerminatedBlock->setTerminator(Terminator); in VisitSwitchStmt()
3160 CFGBlock *LastBlock = addStmt(Terminator->getCond()); in VisitSwitchStmt()
3164 if (VarDecl *VD = Terminator->getConditionVariable()) { in VisitSwitchStmt()
3167 appendStmt(Block, Terminator->getConditionVariableDeclStmt()); in VisitSwitchStmt()
3173 if (Stmt *Init = Terminator->getInit()) { in VisitSwitchStmt()
3280 CFGBlock *CFGBuilder::VisitDefaultStmt(DefaultStmt *Terminator) { in VisitDefaultStmt() argument
3281 if (Terminator->getSubStmt()) in VisitDefaultStmt()
3282 addStmt(Terminator->getSubStmt()); in VisitDefaultStmt()
3291 DefaultCaseBlock->setLabel(Terminator); in VisitDefaultStmt()
3311 CFGBlock *CFGBuilder::VisitCXXTryStmt(CXXTryStmt *Terminator) { in VisitCXXTryStmt() argument
3327 NewTryTerminatedBlock->setTerminator(Terminator); in VisitCXXTryStmt()
3330 for (unsigned h = 0; h <Terminator->getNumHandlers(); ++h) { in VisitCXXTryStmt()
3333 CXXCatchStmt *CS = Terminator->getHandler(h); in VisitCXXTryStmt()
3359 assert(Terminator->getTryBlock() && "try must contain a non-NULL body"); in VisitCXXTryStmt()
3361 return addStmt(Terminator->getTryBlock()); in VisitCXXTryStmt()
4123 void VisitStmt(Stmt *Terminator) { in VisitStmt() argument
4124 Terminator->printPretty(OS, Helper, Policy); in VisitStmt()
4157 void VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt() argument
4159 Terminator->getCond()->printPretty(OS, Helper, Policy); in VisitSwitchStmt()
4570 Stmt *Terminator = this->Terminator; in getTerminatorCondition() local
4571 if (!Terminator) in getTerminatorCondition()
4576 switch (Terminator->getStmtClass()) { in getTerminatorCondition()
4581 E = cast<CXXForRangeStmt>(Terminator)->getCond(); in getTerminatorCondition()
4585 E = cast<ForStmt>(Terminator)->getCond(); in getTerminatorCondition()
4589 E = cast<WhileStmt>(Terminator)->getCond(); in getTerminatorCondition()
4593 E = cast<DoStmt>(Terminator)->getCond(); in getTerminatorCondition()
4597 E = cast<IfStmt>(Terminator)->getCond(); in getTerminatorCondition()
4601 E = cast<ChooseExpr>(Terminator)->getCond(); in getTerminatorCondition()
4605 E = cast<IndirectGotoStmt>(Terminator)->getTarget(); in getTerminatorCondition()
4609 E = cast<SwitchStmt>(Terminator)->getCond(); in getTerminatorCondition()
4613 E = cast<BinaryConditionalOperator>(Terminator)->getCond(); in getTerminatorCondition()
4617 E = cast<ConditionalOperator>(Terminator)->getCond(); in getTerminatorCondition()
4621 E = cast<BinaryOperator>(Terminator)->getLHS(); in getTerminatorCondition()
4625 return Terminator; in getTerminatorCondition()