Home
last modified time | relevance | path

Searched refs:CXXForRangeStmt (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DStmtCXX.cpp48 CXXForRangeStmt::CXXForRangeStmt(Stmt *Init, DeclStmt *Range, in CXXForRangeStmt() function in CXXForRangeStmt
66 Expr *CXXForRangeStmt::getRangeInit() { in getRangeInit()
73 const Expr *CXXForRangeStmt::getRangeInit() const { in getRangeInit()
74 return const_cast<CXXForRangeStmt *>(this)->getRangeInit(); in getRangeInit()
77 VarDecl *CXXForRangeStmt::getLoopVariable() { in getLoopVariable()
83 const VarDecl *CXXForRangeStmt::getLoopVariable() const { in getLoopVariable()
84 return const_cast<CXXForRangeStmt *>(this)->getLoopVariable(); in getLoopVariable()
H A DParentMapContext.cpp166 matchParents<DeclStmt, CXXForRangeStmt>(ParentList, this); in getParents()
168 std::get<const CXXForRangeStmt *>(AncestorNodes) in getParents()
174 auto AncestorNodes = matchParents<VarDecl, DeclStmt, CXXForRangeStmt>( in getParents()
177 std::get<const CXXForRangeStmt *>(AncestorNodes) in getParents()
H A DStmtOpenMP.cpp97 if (isa<ForStmt>(S) || isa<CXXForRangeStmt>(S) || in tryToFindNextInnerLoop()
169 assert(isa<CXXForRangeStmt>(CurStmt) && in doForAllLoops()
171 CurStmt = cast<CXXForRangeStmt>(CurStmt)->getBody(); in doForAllLoops()
189 assert(isa<CXXForRangeStmt>(Loop) && in doForAllLoopsBodies()
191 Body = cast<CXXForRangeStmt>(Loop)->getBody(); in doForAllLoopsBodies()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp39 return cast<CXXForRangeStmt>(LoopStmt)->getCond(); in getLoopCondition()
50 assert((isa<ForStmt, WhileStmt, DoStmt, CXXForRangeStmt>(LoopStmt))); in getWidenedLoopState()
H A DBugReporter.cpp677 if (cast<CXXForRangeStmt>(Parent)->getBody() == S) in getEnclosingStmtLocation()
1051 const auto *FR = cast<CXXForRangeStmt>(Term); in isInLoopBody()
1257 } else if (const auto *FRS = dyn_cast<CXXForRangeStmt>(Loop)) { in generatePathDiagnosticsForNode()
1295 } else if (isa<CXXForRangeStmt>(Term)) { in generatePathDiagnosticsForNode()
1398 const auto *FRS = cast<CXXForRangeStmt>(S); in isConditionForTerminator()
1409 if (const auto *FRS = dyn_cast<CXXForRangeStmt>(FL)) in isIncrementOrInitInForLoop()
1553 CXXForRangeStmt>(s1Start)) in simplifySimpleBranches()
H A DCoreEngine.cpp374 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DStmtCXX.h135 class CXXForRangeStmt : public Stmt {
147 CXXForRangeStmt(Stmt *InitStmt, DeclStmt *Range, DeclStmt *Begin,
151 CXXForRangeStmt(EmptyShell Empty) : Stmt(CXXForRangeStmtClass, Empty) { } in CXXForRangeStmt() function
H A DASTNodeTraverser.h150 isa<LambdaExpr, CXXForRangeStmt, CallExpr,
798 void VisitCXXForRangeStmt(const CXXForRangeStmt *Node) { in VisitCXXForRangeStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp40 if (const auto *CXXFor = dyn_cast<CXXForRangeStmt>(S)) in isSemicolonRequiredAfter()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeStmtGen.h60 bool visitCXXForRangeStmt(const CXXForRangeStmt *S);
H A DByteCodeStmtGen.cpp262 return visitCXXForRangeStmt(cast<CXXForRangeStmt>(S)); in visitStmt()
508 bool ByteCodeStmtGen<Emitter>::visitCXXForRangeStmt(const CXXForRangeStmt *S) { in visitCXXForRangeStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp44 grandParent.begin()->get<CXXForRangeStmt>(); in isDeclaredInForOrIf()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp99 CXXForRangeStmt, enumerator
393 DEFINE_NESTABLE_TRAVERSAL(CXXForRangeStmt) in DEFINE_NESTABLE_TRAVERSAL()
412 return PGOHash::CXXForRangeStmt; in DEFINE_NESTABLE_TRAVERSAL()
696 void VisitCXXForRangeStmt(const CXXForRangeStmt *S) { in VisitCXXForRangeStmt()
H A DCGStmt.cpp198 EmitCXXForRangeStmt(cast<CXXForRangeStmt>(*S), Attrs); in EmitStmt()
1162 CodeGenFunction::EmitCXXForRangeStmt(const CXXForRangeStmt &S, in EmitCXXForRangeStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysis.cpp106 TerminatorVisitorRetTy VisitCXXForRangeStmt(const CXXForRangeStmt *) { in VisitCXXForRangeStmt() argument
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2191 extern const internal::VariadicDynCastAllOfMatcher<Stmt, CXXForRangeStmt>
2202 AST_MATCHER_P(CXXForRangeStmt, hasLoopVariable, internal::Matcher<VarDecl>, in AST_MATCHER_P() argument
2216 AST_MATCHER_P(CXXForRangeStmt, hasRangeInit, internal::Matcher<Expr>, in AST_MATCHER_P() argument
5568 CXXForRangeStmt), in AST_POLYMORPHIC_MATCHER_P() argument
5727 AST_POLYMORPHIC_SUPPORTED_TYPES(DoStmt, ForStmt, WhileStmt, CXXForRangeStmt, in AST_POLYMORPHIC_MATCHER_P() argument
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DStmtNodes.td51 def CXXForRangeStmt : StmtNode<Stmt>;
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp99 AST_MATCHER_P(CXXForRangeStmt, hasRangeStmt, in AST_MATCHER_P() argument
H A DCFG.cpp577 CFGBlock *VisitCXXForRangeStmt(CXXForRangeStmt *S);
2299 return VisitCXXForRangeStmt(cast<CXXForRangeStmt>(S)); in Visit()
4668 CFGBlock *CFGBuilder::VisitCXXForRangeStmt(CXXForRangeStmt *S) { in VisitCXXForRangeStmt()
6278 E = cast<CXXForRangeStmt>(Terminator)->getCond(); in getTerminatorCondition()
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp244 bool TraverseCXXForRangeStmt(CXXForRangeStmt *Node) { in TraverseCXXForRangeStmt()
512 if (auto *RF = dyn_cast<CXXForRangeStmt>(S)) { in dataTraverseNode()
H A DASTMatchersInternal.cpp903 const internal::VariadicDynCastAllOfMatcher<Stmt, CXXForRangeStmt>
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAttr.cpp93 if (!isa<DoStmt, ForStmt, CXXForRangeStmt, WhileStmt>(St)) { in handleLoopHintAttr()
H A DSemaStmt.cpp2053 void VisitCXXForRangeStmt(const CXXForRangeStmt *S) { in VisitCXXForRangeStmt()
3072 return new (Context) CXXForRangeStmt( in BuildCXXForRangeStmt()
3232 const CXXForRangeStmt *ForStmt) { in DiagnoseForRangeVariableCopies()
3281 CXXForRangeStmt *ForStmt = cast<CXXForRangeStmt>(S); in FinishCXXForRangeStmt()
H A DSemaAvailability.cpp631 return cast<CXXForRangeStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DBuildTree.cpp833 bool TraverseCXXForRangeStmt(CXXForRangeStmt *S) { in TraverseCXXForRangeStmt()
1518 bool WalkUpFromCXXForRangeStmt(CXXForRangeStmt *S) { in WalkUpFromCXXForRangeStmt()

12