Lines Matching refs:Term
1298 static bool isLoop(const Stmt *Term) {
1299 switch (Term->getStmtClass()) {
1319 static bool isLoopJumpPastBody(const Stmt *Term, const BlockEdge *BE) {
1320 if (!isLoop(Term))
1336 static const Stmt *getStmtBeforeCond(ParentMap &PM, const Stmt *Term,
1342 if (!isContainedByStmt(PM, Term, S))
1350 static bool isInLoopBody(ParentMap &PM, const Stmt *S, const Stmt *Term) {
1352 switch (Term->getStmtClass()) {
1354 const CXXForRangeStmt *FR = cast<CXXForRangeStmt>(Term);
1363 const ForStmt *FS = cast<ForStmt>(Term);
1370 const ObjCForCollectionStmt *FC = cast<ObjCForCollectionStmt>(Term);
1375 LoopBody = cast<WhileStmt>(Term)->getBody();
1518 if (const Stmt *Term = BSrc->getTerminator()) {
1521 if (isLoopJumpPastBody(Term, &*BE) &&
1526 Term)) {
1527 PathDiagnosticLocation L(Term, SM, PDB.LC);
1538 EB.addContext(Term);
1810 if (const Stmt *Term = BSrc->getTerminator()) {
1813 if (isLoop(Term)) {
1816 isInLoopBody(PM, getStmtBeforeCond(PM, TermCond, N), Term);
1822 if (isa<ObjCForCollectionStmt>(Term)) {
1824 } else if (isa<CXXForRangeStmt>(Term)) {
1835 PathDiagnosticLocation L(TermCond ? TermCond : Term, SM, PDB.LC);
1843 } else if (isa<BreakStmt>(Term) || isa<ContinueStmt>(Term) ||
1844 isa<GotoStmt>(Term)) {
1845 PathDiagnosticLocation L(Term, SM, PDB.LC);