Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp33 return cast<ForStmt>(LoopStmt)->getCond(); in getLoopCondition()
48 assert((isa<ForStmt, WhileStmt, DoStmt>(LoopStmt))); in getWidenedLoopState()
H A DBugReporter.cpp682 if (cast<ForStmt>(Parent)->getBody() == S) in getEnclosingStmtLocation()
1059 const auto *FS = cast<ForStmt>(Term); in isInLoopBody()
1250 if (const auto *FS = dyn_cast<ForStmt>(Loop)) in generatePathDiagnosticsForNode()
1375 return cast<ForStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1406 if (const auto *FS = dyn_cast<ForStmt>(FL)) in isIncrementOrInitInForLoop()
1551 if (!isa<ForStmt, WhileStmt, IfStmt, ObjCForCollectionStmt, in simplifySimpleBranches()
H A DLoopUnrolling.cpp75 return isa_and_nonnull<ForStmt, WhileStmt, DoStmt>(S); in isLoopStmt()
H A DCoreEngine.cpp378 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
/openbsd-src/gnu/llvm/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.cpp86 CondFound = (S == cast<ForStmt>(ParentS)->getCond()); in isInCondition()
H A DMallocOverflowSecurityChecker.cpp250 void VisitForStmt(ForStmt *S) { in VisitForStmt()
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DByteCodeStmtGen.h62 bool visitForStmt(const ForStmt *S);
H A DByteCodeStmtGen.cpp180 return visitForStmt(cast<ForStmt>(S)); in visitStmt()
346 bool ByteCodeStmtGen<Emitter>::visitForStmt(const ForStmt *S) { in visitForStmt()
/openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp38 if (const auto *For = dyn_cast<ForStmt>(S)) in isSemicolonRequiredAfter()
/openbsd-src/gnu/llvm/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");
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp43 return grandParent.begin()->get<ForStmt>() || in isDeclaredInForOrIf()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenPGO.cpp96 ForStmt, enumerator
265 DEFINE_NESTABLE_TRAVERSAL(ForStmt) in DEFINE_NESTABLE_TRAVERSAL()
283 return PGOHash::ForStmt; in DEFINE_NESTABLE_TRAVERSAL()
534 void VisitForStmt(const ForStmt *S) { in VisitForStmt()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaStmt.cpp2026 void VisitForStmt(const ForStmt *S) { in VisitForStmt()
2185 ForStmt(Context, First, Second.get().second, Second.get().first, Third, in ActOnForStmt()
3074 ObjCForCollectionStmt * ForStmt = cast<ObjCForCollectionStmt>(S); in FinishObjCForCollectionStmt() local
3076 ForStmt->setBody(B); in FinishObjCForCollectionStmt()
3222 const CXXForRangeStmt *ForStmt) { in DiagnoseForRangeVariableCopies() argument
3228 ForStmt->getBeginLoc()) && in DiagnoseForRangeVariableCopies()
3230 ForStmt->getBeginLoc()) && in DiagnoseForRangeVariableCopies()
3232 ForStmt->getBeginLoc())) { in DiagnoseForRangeVariableCopies()
3236 const VarDecl *VD = ForStmt->getLoopVariable(); in DiagnoseForRangeVariableCopies()
3254 ForStmt->getRangeInit()->getType()); in DiagnoseForRangeVariableCopies()
[all …]
H A DSemaStmtAttr.cpp88 if (!isa<DoStmt, ForStmt, CXXForRangeStmt, WhileStmt>(St)) { in handleLoopHintAttr()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DParentMap.cpp198 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr()
H A DStmt.cpp1019 ForStmt::ForStmt(const ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar, in ForStmt() function in ForStmt
1032 VarDecl *ForStmt::getConditionVariable() const { in getConditionVariable()
1040 void ForStmt::setConditionVariable(const ASTContext &C, VarDecl *V) { in setConditionVariable()
/openbsd-src/gnu/llvm/clang/lib/Analysis/
H A DReachableCode.cpp642 if (const ForStmt *FS = dyn_cast<ForStmt>(LoopTarget)) { in reportDeadCode()
H A DLiveVariables.cpp313 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<ForStmt>(S)->getCond()); in Visit()
/openbsd-src/gnu/llvm/clang/lib/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysis.cpp121 TerminatorVisitorRetTy VisitForStmt(const ForStmt *S) { in VisitForStmt()
/openbsd-src/gnu/llvm/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2091 extern const internal::VariadicDynCastAllOfMatcher<Stmt, ForStmt> forStmt;
2101 AST_MATCHER_P(ForStmt, hasIncrement, internal::Matcher<Stmt>, in AST_MATCHER_P() argument
2116 AST_MATCHER_P(ForStmt, hasLoopInit, internal::Matcher<Stmt>, in AST_MATCHER_P() argument
5345 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, ForStmt, WhileStmt, DoStmt, in AST_POLYMORPHIC_MATCHER_P() argument
5487 AST_POLYMORPHIC_SUPPORTED_TYPES(DoStmt, ForStmt, in AST_POLYMORPHIC_MATCHER_P() argument
/openbsd-src/gnu/llvm/clang/lib/ARCMigrate/
H A DTransforms.cpp277 bool VisitForStmt(ForStmt *S) { in VisitForStmt()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DStmtNodes.td16 def ForStmt : StmtNode<Stmt>;
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DStmt.h227 friend class ForStmt; variable
2578 class ForStmt : public Stmt {
2584 ForStmt(const ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar,
2589 explicit ForStmt(EmptyShell Empty) : Stmt(ForStmtClass, Empty) {} in ForStmt() function

123