Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp34 return cast<ForStmt>(LoopStmt)->getCond(); in getLoopCondition()
49 assert(isa<ForStmt>(LoopStmt) || isa<WhileStmt>(LoopStmt) || in getWidenedLoopState()
H A DLoopUnrolling.cpp73 return S && (isa<ForStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S)); in isLoopStmt()
H A DBugReporter.cpp488 if (cast<ForStmt>(Parent)->getBody() == S) in getEnclosingStmtLocation()
947 const auto *FS = cast<ForStmt>(Term); in isInLoopBody()
1179 if (const auto *FS = dyn_cast<ForStmt>(Loop)) in generatePathDiagnosticsForNode()
1291 return cast<ForStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1322 if (const auto *FS = dyn_cast<ForStmt>(FL)) in isIncrementOrInitInForLoop()
1468 if (!(isa<ForStmt>(s1Start) || isa<WhileStmt>(s1Start) || in simplifySimpleBranches()
H A DCoreEngine.cpp332 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp375 const ForStmt *ForStmt1 = cast<ForStmt>(Stmt1); in isIdenticalStmt()
376 const ForStmt *ForStmt2 = cast<ForStmt>(Stmt2); in isIdenticalStmt()
H A DCheckSecuritySyntaxOnly.cpp85 void VisitForStmt(ForStmt *S);
97 void checkLoopConditionForFloat(const ForStmt *FS);
183 void WalkAST::VisitForStmt(ForStmt *FS) { in VisitForStmt()
230 void WalkAST::checkLoopConditionForFloat(const ForStmt *FS) { in checkLoopConditionForFloat()
H A DMallocOverflowSecurityChecker.cpp249 void VisitForStmt(ForStmt *S) { in VisitForStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp38 if (const auto *For = dyn_cast<ForStmt>(S)) in isSemicolonRequiredAfter()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCodeGenPGO.cpp94 ForStmt, enumerator
246 DEFINE_NESTABLE_TRAVERSAL(ForStmt) in DEFINE_NESTABLE_TRAVERSAL()
264 return PGOHash::ForStmt; in DEFINE_NESTABLE_TRAVERSAL()
515 void VisitForStmt(const ForStmt *S) { in VisitForStmt()
H A DCGStmt.cpp144 case Stmt::ForStmtClass: EmitForStmt(cast<ForStmt>(*S), Attrs); break; in EmitStmt()
827 void CodeGenFunction::EmitForStmt(const ForStmt &S, in EmitForStmt()
H A DCodeGenFunction.cpp1455 isa<ForStmt>(S)) in containsBreak()
1477 isa<DoStmt>(S) || isa<ForStmt>(S) || isa<CompoundStmt>(S) || in mightAddDeclToScope()
H A DCoverageMappingGen.cpp1001 void VisitForStmt(const ForStmt *S) { in VisitForStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaStmt.cpp1638 void VisitForStmt(const ForStmt *S) { in VisitForStmt()
2667 ObjCForCollectionStmt * ForStmt = cast<ObjCForCollectionStmt>(S); in FinishObjCForCollectionStmt() local
2669 ForStmt->setBody(B); in FinishObjCForCollectionStmt()
2798 ForStmt->getBeginLoc()) && in DiagnoseForRangeVariableCopies()
2800 ForStmt->getBeginLoc()) && in DiagnoseForRangeVariableCopies()
2802 ForStmt->getBeginLoc())) { in DiagnoseForRangeVariableCopies()
2806 const VarDecl *VD = ForStmt->getLoopVariable(); in DiagnoseForRangeVariableCopies()
2838 CXXForRangeStmt *ForStmt = cast<CXXForRangeStmt>(S); in FinishCXXForRangeStmt() local
2839 ForStmt->setBody(B); in FinishCXXForRangeStmt()
2841 DiagnoseEmptyStmtBody(ForStmt->getRParenLoc(), B, in FinishCXXForRangeStmt()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DStmt.cpp889 ForStmt::ForStmt(const ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar, in ForStmt() function in ForStmt
902 VarDecl *ForStmt::getConditionVariable() const { in getConditionVariable()
910 void ForStmt::setConditionVariable(const ASTContext &C, VarDecl *V) { in setConditionVariable()
H A DParentMap.cpp186 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DReachableCode.cpp637 if (const ForStmt *FS = dyn_cast<ForStmt>(LoopTarget)) { in reportDeadCode()
H A DCFG.cpp550 CFGBlock *VisitForStmt(ForStmt *F);
2098 return VisitForStmt(cast<ForStmt>(S)); in Visit()
3106 CFGBlock *CFGBuilder::VisitForStmt(ForStmt *F) { in VisitForStmt()
4820 const VarDecl *var = cast<ForStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper()
4920 void VisitForStmt(ForStmt *F) { in VisitForStmt()
5483 E = cast<ForStmt>(Terminator)->getCond(); in getTerminatorCondition()
H A DLiveVariables.cpp356 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<ForStmt>(S)->getCond()); in Visit()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/
H A DASTMatchers.h1835 extern const internal::VariadicDynCastAllOfMatcher<Stmt, ForStmt> forStmt;
1845 AST_MATCHER_P(ForStmt, hasIncrement, internal::Matcher<Stmt>, in AST_MATCHER_P() argument
1860 AST_MATCHER_P(ForStmt, hasLoopInit, internal::Matcher<Stmt>, in AST_MATCHER_P() argument
4090 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, ForStmt, WhileStmt, DoStmt, in AST_POLYMORPHIC_MATCHER_P() argument
4220 AST_POLYMORPHIC_SUPPORTED_TYPES(DoStmt, ForStmt, in AST_POLYMORPHIC_MATCHER_P() argument
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DStmtNodes.td20 def ForStmt : Stmt;
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DStmt.h218 friend class ForStmt; in alignas() local
2237 class ForStmt : public Stmt {
2243 ForStmt(const ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar,
2248 explicit ForStmt(EmptyShell Empty) : Stmt(ForStmtClass, Empty) {} in ForStmt() function
H A DStmtOpenMP.h963 Body = cast<ForStmt>(Body)->getBody(); in getBody()
966 Body = cast<ForStmt>(Body)->getBody(); in getBody()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransforms.cpp279 bool VisitForStmt(ForStmt *S) { in VisitForStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp695 const internal::VariadicDynCastAllOfMatcher<Stmt, ForStmt> forStmt;
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTReaderStmt.cpp293 void ASTStmtReader::VisitForStmt(ForStmt *S) { in VisitForStmt()
2410 S = new (Context) ForStmt(Empty); in ReadStmtFromStream()

12