Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtOpenACC.cpp89 assert((Loop == nullptr || isa<ForStmt, CXXForRangeStmt>(Loop)) && in OpenACCLoopConstruct()
100 assert((isa<ForStmt, CXXForRangeStmt>(Loop)) && in setLoop()
H A DParentMap.cpp201 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr()
H A DStmt.cpp1021 ForStmt::ForStmt(const ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar, in ForStmt() function in ForStmt
1034 VarDecl *ForStmt::getConditionVariable() const { in getConditionVariable()
1042 void ForStmt::setConditionVariable(const ASTContext &C, VarDecl *V) { in setConditionVariable()
/freebsd/contrib/llvm-project/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 DErrnoChecker.cpp86 CondFound = (S == cast<ForStmt>(ParentS)->getCond()); in isInCondition()
H A DMallocOverflowSecurityChecker.cpp250 void VisitForStmt(ForStmt *S) { in VisitForStmt()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp38 if (const auto *For = dyn_cast<ForStmt>(S)) in isSemicolonRequiredAfter()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp160 bool TraverseForStmt(ForStmt *FS) { in checkASTDecl()
H A DPtrTypesSemantics.cpp335 bool VisitForStmt(const ForStmt *FS) { in VisitForStmt()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp2059 void VisitForStmt(const ForStmt *S) { in VisitForStmt()
2218 ForStmt(Context, First, Second.get().second, Second.get().first, Third, in ActOnForStmt()
3070 const CXXForRangeStmt *ForStmt) { in DiagnoseForRangeVariableCopies() argument
3076 ForStmt->getBeginLoc()) && in DiagnoseForRangeVariableCopies()
3078 ForStmt->getBeginLoc()) && in DiagnoseForRangeVariableCopies()
3080 ForStmt->getBeginLoc())) { in DiagnoseForRangeVariableCopies()
3084 const VarDecl *VD = ForStmt->getLoopVariable(); in DiagnoseForRangeVariableCopies()
3102 ForStmt->getRangeInit()->getType()); in DiagnoseForRangeVariableCopies()
3115 CXXForRangeStmt *ForStmt = cast<CXXForRangeStmt>(S); in FinishCXXForRangeStmt() local
3116 ForStmt->setBody(B); in FinishCXXForRangeStmt()
[all …]
H A DSemaStmtAttr.cpp94 if (!isa<DoStmt, ForStmt, CXXForRangeStmt, WhileStmt>(St)) { in handleLoopHintAttr()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp100 ForStmt, enumerator
435 bool TraverseForStmt(ForStmt *For) { in TraverseForStmt()
499 return PGOHash::ForStmt; in DEFINE_NESTABLE_TRAVERSAL()
750 void VisitForStmt(const ForStmt *S) { in VisitForStmt()
H A DCGStmt.cpp158 case Stmt::ForStmtClass: EmitForStmt(cast<ForStmt>(*S), Attrs); break; in EmitStmt()
972 if constexpr (std::is_same_v<LoopStmt, ForStmt>) { in hasEmptyLoopBody()
1181 void CodeGenFunction::EmitForStmt(const ForStmt &S, in EmitForStmt()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DReachableCode.cpp690 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()
H A DCFG.cpp591 CFGBlock *VisitForStmt(ForStmt *F);
2308 return VisitForStmt(cast<ForStmt>(S)); in Visit()
3495 CFGBlock *CFGBuilder::VisitForStmt(ForStmt *F) { in VisitForStmt()
5448 const VarDecl *var = cast<ForStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper()
5548 void VisitForStmt(ForStmt *F) { in VisitForStmt()
6279 E = cast<ForStmt>(Terminator)->getCond(); in getTerminatorCondition()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp693 if (cast<ForStmt>(Parent)->getBody() == S) in getEnclosingStmtLocation()
1070 const auto *FS = cast<ForStmt>(Term); in isInLoopBody()
1261 if (const auto *FS = dyn_cast<ForStmt>(Loop)) in generatePathDiagnosticsForNode()
1388 return cast<ForStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1419 if (const auto *FS = dyn_cast<ForStmt>(FL)) in isIncrementOrInitInForLoop()
1564 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.cpp366 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysis.cpp73 const Expr *VisitForStmt(const ForStmt *S) { return S->getCond(); } in VisitForStmt()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2154 extern const internal::VariadicDynCastAllOfMatcher<Stmt, ForStmt> forStmt;
2164 AST_MATCHER_P(ForStmt, hasIncrement, internal::Matcher<Stmt>, in AST_MATCHER_P() argument
2179 AST_MATCHER_P(ForStmt, hasLoopInit, internal::Matcher<Stmt>, in AST_MATCHER_P() argument
5607 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, ForStmt, WhileStmt, DoStmt, in AST_POLYMORPHIC_MATCHER_P() argument
5751 AST_POLYMORPHIC_SUPPORTED_TYPES(DoStmt, ForStmt, WhileStmt, CXXForRangeStmt, in AST_POLYMORPHIC_MATCHER_P() argument
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DStmtNodes.td16 def ForStmt : StmtNode<Stmt>;
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransforms.cpp278 bool VisitForStmt(ForStmt *S) { in VisitForStmt()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DCompiler.h205 bool visitForStmt(const ForStmt *S);
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h258 friend class ForStmt;
2786 class ForStmt : public Stmt {
2794 ForStmt(const ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar,
2799 explicit ForStmt(EmptyShell Empty) : Stmt(ForStmtClass, Empty) {}

123