Home
last modified time | relevance | path

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

12

/freebsd/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 DStmtOpenACC.cpp89 assert((Loop == nullptr || isa<ForStmt, CXXForRangeStmt>(Loop)) && in OpenACCLoopConstruct()
100 assert((isa<ForStmt, CXXForRangeStmt>(Loop)) && in setLoop()
H A DParentMapContext.cpp185 matchParents<DeclStmt, CXXForRangeStmt>(ParentList, this); in getParents()
187 std::get<const CXXForRangeStmt *>(AncestorNodes) in getParents()
193 auto AncestorNodes = matchParents<VarDecl, DeclStmt, CXXForRangeStmt>( in getParents()
196 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/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.h166 isa<LambdaExpr, CXXForRangeStmt, CallExpr,
906 void VisitCXXForRangeStmt(const CXXForRangeStmt *Node) { in VisitCXXForRangeStmt()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp40 if (const auto *CXXFor = dyn_cast<CXXForRangeStmt>(S)) in isSemicolonRequiredAfter()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp166 bool TraverseCXXForRangeStmt(CXXForRangeStmt *FRS) { in checkASTDecl()
H A DPtrTypesSemantics.cpp338 bool VisitCXXForRangeStmt(const CXXForRangeStmt *FS) { in VisitCXXForRangeStmt()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp101 CXXForRangeStmt, enumerator
456 bool TraverseCXXForRangeStmt(CXXForRangeStmt *ForRange) { in TraverseCXXForRangeStmt()
501 return PGOHash::CXXForRangeStmt; in DEFINE_NESTABLE_TRAVERSAL()
785 void VisitCXXForRangeStmt(const CXXForRangeStmt *S) { in VisitCXXForRangeStmt()
H A DCGStmt.cpp202 EmitCXXForRangeStmt(cast<CXXForRangeStmt>(*S), Attrs); in EmitStmt()
1317 CodeGenFunction::EmitCXXForRangeStmt(const CXXForRangeStmt &S, in EmitCXXForRangeStmt()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp687 if (cast<CXXForRangeStmt>(Parent)->getBody() == S) in getEnclosingStmtLocation()
1061 const auto *FR = cast<CXXForRangeStmt>(Term); in isInLoopBody()
1267 } else if (const auto *FRS = dyn_cast<CXXForRangeStmt>(Loop)) { in generatePathDiagnosticsForNode()
1305 } else if (isa<CXXForRangeStmt>(Term)) { in generatePathDiagnosticsForNode()
1410 const auto *FRS = cast<CXXForRangeStmt>(S); in isConditionForTerminator()
1421 if (const auto *FRS = dyn_cast<CXXForRangeStmt>(FL)) in isIncrementOrInitInForLoop()
1565 CXXForRangeStmt>(s1Start)) in simplifySimpleBranches()
H A DCoreEngine.cpp362 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysis.cpp74 const Expr *VisitCXXForRangeStmt(const CXXForRangeStmt *) { in VisitCXXForRangeStmt() argument
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2192 extern const internal::VariadicDynCastAllOfMatcher<Stmt, CXXForRangeStmt>
2203 AST_MATCHER_P(CXXForRangeStmt, hasLoopVariable, internal::Matcher<VarDecl>, in AST_MATCHER_P() argument
2217 AST_MATCHER_P(CXXForRangeStmt, hasRangeInit, internal::Matcher<Expr>, in AST_MATCHER_P() argument
5592 CXXForRangeStmt), 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.td51 def CXXForRangeStmt : StmtNode<Stmt>;
/freebsd/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);
2296 return VisitCXXForRangeStmt(cast<CXXForRangeStmt>(S)); in Visit()
4665 CFGBlock *CFGBuilder::VisitCXXForRangeStmt(CXXForRangeStmt *S) { in VisitCXXForRangeStmt()
6275 E = cast<CXXForRangeStmt>(Terminator)->getCond(); in getTerminatorCondition()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DCompiler.h206 bool visitCXXForRangeStmt(const CXXForRangeStmt *S);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp2076 void VisitCXXForRangeStmt(const CXXForRangeStmt *S) { in VisitCXXForRangeStmt()
2921 return new (Context) CXXForRangeStmt( in BuildCXXForRangeStmt()
3070 const CXXForRangeStmt *ForStmt) { in DiagnoseForRangeVariableCopies()
3115 CXXForRangeStmt *ForStmt = cast<CXXForRangeStmt>(S); in FinishCXXForRangeStmt()
H A DSemaStmtAttr.cpp94 if (!isa<DoStmt, ForStmt, CXXForRangeStmt, WhileStmt>(St)) { in handleLoopHintAttr()
H A DSemaAvailability.cpp708 return cast<CXXForRangeStmt>(Parent)->getBody() == S; in isBodyLikeChildStmt()
H A DSemaOpenACC.cpp1692 !isa<CXXForRangeStmt, ForStmt>(AssocStmt.get())) { in ActOnAssociatedStmt()
H A DSemaOpenMP.cpp5633 } else if (auto *RangeFor = dyn_cast<CXXForRangeStmt>(AStmt)) { in ActOnOpenMPCanonicalLoop()
5750 SemaRef, LVTy, LogicalTy, CounterRef, Step, isa<CXXForRangeStmt>(AStmt)); in ActOnOpenMPCanonicalLoop()
5760 if (isa<ForStmt>(AStmt) || isa<CXXForRangeStmt>(AStmt)) in ActOnOpenMPLoopnest()
9170 auto *CXXFor = dyn_cast_or_null<CXXForRangeStmt>(S); in checkOpenMPIterationSpace()
14040 assert(isa<CXXForRangeStmt>(CurStmt) && in checkTransformableLoopNest()
14042 auto *CXXFor = cast<CXXForRangeStmt>(CurStmt); in checkTransformableLoopNest()
14077 if (auto *CXXRangeFor = dyn_cast<CXXForRangeStmt>(LoopStmt)) { in addLoopPreInits()
14333 if (auto *SourceCXXFor = dyn_cast<CXXForRangeStmt>(LoopStmt)) in ActOnOpenMPTileDirective()
14613 if (auto *CXXRangeFor = dyn_cast<CXXForRangeStmt>(LoopStmt)) in ActOnOpenMPUnrollDirective()
14844 (isa<CXXForRangeStmt>(LoopStmt) ? 1 : 0)); in ActOnOpenMPReverseDirective()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DBuildTree.cpp834 bool TraverseCXXForRangeStmt(CXXForRangeStmt *S) { in TraverseCXXForRangeStmt()
1519 bool WalkUpFromCXXForRangeStmt(CXXForRangeStmt *S) { in WalkUpFromCXXForRangeStmt()

12