Lines Matching refs:Term
1001 static bool isLoop(const Stmt *Term) {
1002 switch (Term->getStmtClass()) {
1030 static const Stmt *getStmtBeforeCond(const ParentMap &PM, const Stmt *Term,
1036 if (!isContainedByStmt(PM, Term, S))
1044 static bool isInLoopBody(const ParentMap &PM, const Stmt *S, const Stmt *Term) {
1046 switch (Term->getStmtClass()) {
1048 const auto *FR = cast<CXXForRangeStmt>(Term);
1057 const auto *FS = cast<ForStmt>(Term);
1064 const auto *FC = cast<ObjCForCollectionStmt>(Term);
1069 LoopBody = cast<WhileStmt>(Term)->getBody();
1273 if (const Stmt *Term = BSrc->getTerminatorStmt()) {
1276 if (isLoop(Term)) {
1279 PM, getStmtBeforeCond(PM, TermCond, C.getCurrentNode()), Term);
1285 if (isa<ObjCForCollectionStmt>(Term)) {
1287 } else if (isa<CXXForRangeStmt>(Term)) {
1298 PathDiagnosticLocation L(TermCond ? TermCond : Term, SM,
1305 } else if (isa<BreakStmt>(Term) || isa<ContinueStmt>(Term) ||
1306 isa<GotoStmt>(Term)) {
1307 PathDiagnosticLocation L(Term, SM, C.getCurrLocationContext());