Home
last modified time | relevance | path

Searched refs:ForStmt (Results 1 – 25 of 76) sorted by relevance

1234

/llvm-project-15.0.7/clang/test/Analysis/
H A Dtraversal-algorithm.mm54 // DFS-next:33 ForStmt
75 // DFS-next:33 ForStmt
83 // DFS-next:33 ForStmt
91 // DFS-next:33 ForStmt
100 // DFS-next:33 ForStmt
108 // DFS-next:33 ForStmt
116 // DFS-next:33 ForStmt
124 // DFS-next:33 ForStmt
133 // DFS-next:33 ForStmt
141 // DFS-next:33 ForStmt
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertCheck.h48 bool AliasFromForInit, const ForStmt *Loop,
51 StringRef getContainerString(ASTContext *Context, const ForStmt *Loop,
66 const ForStmt *Loop, LoopFixerKind FixerKind,
72 const ForStmt *Loop, LoopFixerKind FixerKind);
H A DLoopConvertCheck.cpp539 const ForStmt *Loop, RangeDescriptor Descriptor) { in doConversion()
686 const ForStmt *Loop, in getContainerString()
785 ASTContext *Context, const BoundNodes &Nodes, const ForStmt *Loop, in determineRangeDescriptor()
802 const ForStmt *Loop, in isConvertible()
847 const ForStmt *Loop; in check()
851 if ((Loop = Nodes.getNodeAs<ForStmt>(LoopNameArray))) { in check()
853 } else if ((Loop = Nodes.getNodeAs<ForStmt>(LoopNameIterator))) { in check()
855 } else if ((Loop = Nodes.getNodeAs<ForStmt>(LoopNameReverseIterator))) { in check()
858 Loop = Nodes.getNodeAs<ForStmt>(LoopNamePseudoArray); in check()
H A DLoopConvertUtils.h46 typedef llvm::DenseMap<const clang::ForStmt *, const clang::VarDecl *>
202 bool VisitForStmt(clang::ForStmt *F);
H A DLoopConvertUtils.cpp105 bool DeclFinderASTVisitor::VisitForStmt(ForStmt *TheLoop) { in VisitForStmt()
814 else if (isa<ForStmt>(CurrStmtParent)) { in VisitDeclStmt()
815 if (cast<ForStmt>(CurrStmtParent)->getConditionVariableDeclStmt() == S) in VisitDeclStmt()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp33 return cast<ForStmt>(LoopStmt)->getCond(); in getLoopCondition()
48 assert((isa<ForStmt, WhileStmt, DoStmt>(LoopStmt))); in getWidenedLoopState()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DUnrollLoopsCheck.cpp123 const auto *ForLoop = cast<ForStmt>(Statement); in hasKnownBounds()
153 if (const auto *ForLoop = dyn_cast<ForStmt>(Statement)) in getCondExpr()
173 const auto *ForLoop = cast<ForStmt>(Statement); in hasLargeNumIterations()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DFloatLoopCounter.cpp26 const auto *FS = Result.Nodes.getNodeAs<ForStmt>("for"); in check()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp376 const ForStmt *ForStmt1 = cast<ForStmt>(Stmt1); in isIdenticalStmt()
377 const ForStmt *ForStmt2 = cast<ForStmt>(Stmt2); in isIdenticalStmt()
H A DCheckSecuritySyntaxOnly.cpp89 void VisitForStmt(ForStmt *S);
102 void checkLoopConditionForFloat(const ForStmt *FS);
213 void WalkAST::VisitForStmt(ForStmt *FS) { in VisitForStmt()
262 void WalkAST::checkLoopConditionForFloat(const ForStmt *FS) { in checkLoopConditionForFloat()
H A DErrnoChecker.cpp85 CondFound = (S == cast<ForStmt>(ParentS)->getCond()); in isInCondition()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dattr-likelihood-if-branch-weights.cpp92 void ForStmt() { in ForStmt() function
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp37 if (const auto *For = dyn_cast<ForStmt>(S)) in isSemicolonRequiredAfter()
/llvm-project-15.0.7/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
H A Dp3.cpp167 constexpr int ForStmt() { in ForStmt() function
/llvm-project-15.0.7/clang/docs/
H A DLibASTMatchersTutorial.rst253 The last step is giving the matcher a name and binding the ``ForStmt``
284 if (const ForStmt *FS = Result.Nodes.getNodeAs<clang::ForStmt>("forLoop"))
421 (ForStmt 0x173b240
506 const ForStmt *FS = Result.Nodes.getNodeAs<ForStmt>("forLoop");
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMisleadingIndentationCheck.cpp68 } else if (const auto *CurrentFor = dyn_cast<ForStmt>(CurrentStmt)) { in missingBracesCheck()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp42 return grandParent.begin()->get<ForStmt>() || in isDeclaredInForOrIf()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DExtractVariable.cpp166 isa<DoStmt>(Stmt) || isa<ForStmt>(Stmt) || isa<IfStmt>(Stmt) || in computeInsertionPoint()
383 if (const auto* FS = llvm::dyn_cast<ForStmt>(Outer)) in childExprIsStmt()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenPGO.cpp95 ForStmt, enumerator
264 DEFINE_NESTABLE_TRAVERSAL(ForStmt) in DEFINE_NESTABLE_TRAVERSAL()
282 return PGOHash::ForStmt; in DEFINE_NESTABLE_TRAVERSAL()
533 void VisitForStmt(const ForStmt *S) { in VisitForStmt()
/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()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp2026 void VisitForStmt(const ForStmt *S) { in VisitForStmt()
3065 ObjCForCollectionStmt * ForStmt = cast<ObjCForCollectionStmt>(S); in FinishObjCForCollectionStmt() local
3067 ForStmt->setBody(B); in FinishObjCForCollectionStmt()
3219 ForStmt->getBeginLoc()) && in DiagnoseForRangeVariableCopies()
3221 ForStmt->getBeginLoc()) && in DiagnoseForRangeVariableCopies()
3223 ForStmt->getBeginLoc())) { in DiagnoseForRangeVariableCopies()
3227 const VarDecl *VD = ForStmt->getLoopVariable(); in DiagnoseForRangeVariableCopies()
3262 CXXForRangeStmt *ForStmt = cast<CXXForRangeStmt>(S); in FinishCXXForRangeStmt() local
3263 ForStmt->setBody(B); in FinishCXXForRangeStmt()
3265 DiagnoseEmptyStmtBody(ForStmt->getRParenLoc(), B, in FinishCXXForRangeStmt()
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DParentMap.cpp196 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr()
/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()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DReachableCode.cpp635 if (const ForStmt *FS = dyn_cast<ForStmt>(LoopTarget)) { in reportDeadCode()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/Dynamic/
H A DRegistryTest.cpp533 …Args(ASTNodeKind::getFromNodeKind<WhileStmt>(), ASTNodeKind::getFromNodeKind<ForStmt>()), nullptr); in TEST_F()
540 …s(ASTNodeKind::getFromNodeKind<FunctionDecl>(), ASTNodeKind::getFromNodeKind<ForStmt>()), nullptr); in TEST_F()

1234