Home
last modified time | relevance | path

Searched refs:ForLoop (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DUnrollLoopsCheck.cpp123 const auto *ForLoop = cast<ForStmt>(Statement); in hasKnownBounds() local
124 const Stmt *Initializer = ForLoop->getInit(); in hasKnownBounds()
125 const Expr *Conditional = ForLoop->getCond(); in hasKnownBounds()
126 const Expr *Increment = ForLoop->getInc(); in hasKnownBounds()
153 if (const auto *ForLoop = dyn_cast<ForStmt>(Statement)) in getCondExpr() local
154 return ForLoop->getCond(); in getCondExpr()
173 const auto *ForLoop = cast<ForStmt>(Statement); in hasLargeNumIterations() local
174 const Stmt *Initializer = ForLoop->getInit(); in hasLargeNumIterations()
175 const Expr *Conditional = ForLoop->getCond(); in hasLargeNumIterations()
176 const Expr *Increment = ForLoop->getInc(); in hasLargeNumIterations()
H A DIdDependentBackwardBranchCheck.h26 enum LoopType { UnknownLoop = -1, DoLoop = 0, WhileLoop = 1, ForLoop = 2 }; enumerator
H A DIdDependentBackwardBranchCheck.cpp191 return ForLoop; in getLoopType()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DInfiniteLoopCheck.cpp33 if (const auto *ForLoop = dyn_cast<ForStmt>(LoopStmt)) in isChanged() local
34 return (ForLoop->getInc() && in isChanged()
35 ExprMutationAnalyzer(*ForLoop->getInc(), *Context) in isChanged()
37 (ForLoop->getBody() && in isChanged()
38 ExprMutationAnalyzer(*ForLoop->getBody(), *Context) in isChanged()
40 (ForLoop->getCond() && in isChanged()
41 ExprMutationAnalyzer(*ForLoop->getCond(), *Context).isMutated(Var)); in isChanged()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientVectorOperationCheck.cpp191 const auto *ForLoop = Result.Nodes.getNodeAs<ForStmt>(LoopCounterName); in check() local
206 const Stmt *LoopStmt = ForLoop; in check()
257 } else if (ForLoop) { in check()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DTransformerTest.cpp1187 std::string ForLoop = "for (auto i : c)"; in TEST_F() local
1197 CodePrefix + BeginCallBefore + ForLoop + CodeSuffix; in TEST_F()
1199 CodePrefix + BeginCallAfter + ForLoop + CodeSuffix; in TEST_F()