| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | traversal-algorithm.mm | 56 // DFS-next:44 CXXForRangeStmt 57 // DFS-next:44 CXXForRangeStmt 58 // DFS-next:44 CXXForRangeStmt 59 // DFS-next:44 CXXForRangeStmt 63 // DFS-next:44 CXXForRangeStmt 64 // DFS-next:44 CXXForRangeStmt 65 // DFS-next:44 CXXForRangeStmt 66 // DFS-next:44 CXXForRangeStmt 70 // DFS-next:44 CXXForRangeStmt 73 // DFS-next:44 CXXForRangeStmt [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | StmtCXX.cpp | 47 CXXForRangeStmt::CXXForRangeStmt(Stmt *Init, DeclStmt *Range, in CXXForRangeStmt() function in CXXForRangeStmt 65 Expr *CXXForRangeStmt::getRangeInit() { in getRangeInit() 72 const Expr *CXXForRangeStmt::getRangeInit() const { in getRangeInit() 73 return const_cast<CXXForRangeStmt *>(this)->getRangeInit(); in getRangeInit() 76 VarDecl *CXXForRangeStmt::getLoopVariable() { in getLoopVariable() 82 const VarDecl *CXXForRangeStmt::getLoopVariable() const { in getLoopVariable() 83 return const_cast<CXXForRangeStmt *>(this)->getLoopVariable(); in getLoopVariable()
|
| H A D | ParentMapContext.cpp | 166 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 D | StmtOpenMP.cpp | 97 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()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | UseAnyOfAllOfCheck.cpp | 74 static bool isViableLoop(const CXXForRangeStmt &S, ASTContext &Context) { in isViableLoop() 91 if (const auto *S = Result.Nodes.getNodeAs<CXXForRangeStmt>("any_of_loop")) { in check() 98 Result.Nodes.getNodeAs<CXXForRangeStmt>("all_of_loop")) { in check()
|
| H A D | BracesAroundStatementsCheck.cpp | 124 Result.Nodes.getNodeAs<CXXForRangeStmt>("for-range")) { in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | UnrollLoopsCheck.cpp | 116 if (isa<CXXForRangeStmt>(Statement)) in hasKnownBounds() 159 if (const auto *CXXRangeLoop = dyn_cast<CXXForRangeStmt>(Statement)) in getCondExpr() 169 if (isa<CXXForRangeStmt>(Statement)) { in hasLargeNumIterations()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | ForRangeCopyCheck.cpp | 71 const auto *ForRange = Result.Nodes.getNodeAs<CXXForRangeStmt>("forRange"); in check() 102 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced()
|
| H A D | ForRangeCopyCheck.h | 41 const CXXForRangeStmt &ForRange,
|
| H A D | InefficientVectorOperationCheck.cpp | 193 Result.Nodes.getNodeAs<CXXForRangeStmt>(RangeLoopName); in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | ProBoundsArrayToPointerDecayCheck.cpp | 21 AST_MATCHER_P(CXXForRangeStmt, hasRangeBeginEndStmt, in AST_MATCHER_P() argument
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | StmtCXX.h | 134 class CXXForRangeStmt : public Stmt { 146 CXXForRangeStmt(Stmt *InitStmt, DeclStmt *Range, DeclStmt *Begin, 150 CXXForRangeStmt(EmptyShell Empty) : Stmt(CXXForRangeStmtClass, Empty) { } in CXXForRangeStmt() function
|
| H A D | ASTNodeTraverser.h | 150 isa<LambdaExpr, CXXForRangeStmt, CallExpr, 770 void VisitCXXForRangeStmt(const CXXForRangeStmt *Node) { in VisitCXXForRangeStmt()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | SourceExtraction.cpp | 39 if (const auto *CXXFor = dyn_cast<CXXForRangeStmt>(S)) in isSemicolonRequiredAfter()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | UncountedLocalVarsChecker.cpp | 44 grandParent.begin()->get<CXXForRangeStmt>(); in isDeclaredInForOrIf()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | ExtractVariable.cpp | 165 isa<CXXForRangeStmt>(Stmt) || isa<DeclStmt>(Stmt) || in computeInsertionPoint() 385 if (const auto* FS = llvm::dyn_cast<CXXForRangeStmt>(Outer)) in childExprIsStmt()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | ExprSequence.cpp | 141 } else if (const auto *ForRange = dyn_cast<CXXForRangeStmt>(Parent)) { in getSequenceSuccessor()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 96 CXXForRangeStmt, enumerator 265 DEFINE_NESTABLE_TRAVERSAL(CXXForRangeStmt) in DEFINE_NESTABLE_TRAVERSAL() 284 return PGOHash::CXXForRangeStmt; in DEFINE_NESTABLE_TRAVERSAL() 568 void VisitCXXForRangeStmt(const CXXForRangeStmt *S) { in VisitCXXForRangeStmt()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugReporter.cpp | 677 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 D | CoreEngine.cpp | 375 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 2128 extern const internal::VariadicDynCastAllOfMatcher<Stmt, CXXForRangeStmt> 2139 AST_MATCHER_P(CXXForRangeStmt, hasLoopVariable, internal::Matcher<VarDecl>, in AST_MATCHER_P() argument 2153 AST_MATCHER_P(CXXForRangeStmt, hasRangeInit, internal::Matcher<Expr>, in AST_MATCHER_P() argument 5329 CXXForRangeStmt), in AST_POLYMORPHIC_MATCHER_P() argument 5490 CXXForRangeStmt, in AST_POLYMORPHIC_MATCHER_P() argument
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | StmtNodes.td | 51 def CXXForRangeStmt : StmtNode<Stmt>;
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaStmtAttr.cpp | 87 if (!isa<DoStmt, ForStmt, CXXForRangeStmt, WhileStmt>(St)) { in handleLoopHintAttr()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/ |
| H A D | ASTMatchFinder.cpp | 242 bool TraverseCXXForRangeStmt(CXXForRangeStmt *Node) { in TraverseCXXForRangeStmt() 510 if (auto *RF = dyn_cast<CXXForRangeStmt>(S)) { in dataTraverseNode()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | ExprMutationAnalyzer.cpp | 24 AST_MATCHER_P(CXXForRangeStmt, hasRangeStmt, in AST_MATCHER_P() argument
|