Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/clang/test/Analysis/
H A Dtraversal-algorithm.mm56 // 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 DStmtCXX.cpp47 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 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()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DUseAnyOfAllOfCheck.cpp74 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 DBracesAroundStatementsCheck.cpp124 Result.Nodes.getNodeAs<CXXForRangeStmt>("for-range")) { in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DUnrollLoopsCheck.cpp116 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 DForRangeCopyCheck.cpp71 const auto *ForRange = Result.Nodes.getNodeAs<CXXForRangeStmt>("forRange"); in check()
102 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced()
H A DForRangeCopyCheck.h41 const CXXForRangeStmt &ForRange,
H A DInefficientVectorOperationCheck.cpp193 Result.Nodes.getNodeAs<CXXForRangeStmt>(RangeLoopName); in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProBoundsArrayToPointerDecayCheck.cpp21 AST_MATCHER_P(CXXForRangeStmt, hasRangeBeginEndStmt, in AST_MATCHER_P() argument
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmtCXX.h134 class CXXForRangeStmt : public Stmt {
146 CXXForRangeStmt(Stmt *InitStmt, DeclStmt *Range, DeclStmt *Begin,
150 CXXForRangeStmt(EmptyShell Empty) : Stmt(CXXForRangeStmtClass, Empty) { } in CXXForRangeStmt() function
H A DASTNodeTraverser.h150 isa<LambdaExpr, CXXForRangeStmt, CallExpr,
770 void VisitCXXForRangeStmt(const CXXForRangeStmt *Node) { in VisitCXXForRangeStmt()
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp39 if (const auto *CXXFor = dyn_cast<CXXForRangeStmt>(S)) in isSemicolonRequiredAfter()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp44 grandParent.begin()->get<CXXForRangeStmt>(); in isDeclaredInForOrIf()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DExtractVariable.cpp165 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 DExprSequence.cpp141 } else if (const auto *ForRange = dyn_cast<CXXForRangeStmt>(Parent)) { in getSequenceSuccessor()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenPGO.cpp96 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 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.cpp375 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2128 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 DStmtNodes.td51 def CXXForRangeStmt : StmtNode<Stmt>;
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmtAttr.cpp87 if (!isa<DoStmt, ForStmt, CXXForRangeStmt, WhileStmt>(St)) { in handleLoopHintAttr()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp242 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 DExprMutationAnalyzer.cpp24 AST_MATCHER_P(CXXForRangeStmt, hasRangeStmt, in AST_MATCHER_P() argument

123