Lines Matching defs:Term
1003 static bool isLoop(const Stmt *Term) {
1004 switch (Term->getStmtClass()) {
1032 static const Stmt *getStmtBeforeCond(const ParentMap &PM, const Stmt *Term,
1038 if (!isContainedByStmt(PM, Term, S))
1046 static bool isInLoopBody(const ParentMap &PM, const Stmt *S, const Stmt *Term) {
1048 switch (Term->getStmtClass()) {
1050 const auto *FR = cast<CXXForRangeStmt>(Term);
1059 const auto *FS = cast<ForStmt>(Term);
1066 const auto *FC = cast<ObjCForCollectionStmt>(Term);
1071 LoopBody = cast<WhileStmt>(Term)->getBody();
1280 if (const Stmt *Term = BSrc->getTerminatorStmt()) {
1283 if (isLoop(Term)) {
1286 PM, getStmtBeforeCond(PM, TermCond, C.getCurrentNode()), Term);
1292 if (isa<ObjCForCollectionStmt>(Term)) {
1294 } else if (isa<CXXForRangeStmt>(Term)) {
1305 PathDiagnosticLocation L(TermCond ? TermCond : Term, SM,
1316 } else if (isa<BreakStmt, ContinueStmt, GotoStmt>(Term)) {
1317 PathDiagnosticLocation L(Term, SM, C.getCurrLocationContext());