Home
last modified time | relevance | path

Searched refs:WhileStmt (Results 1 – 25 of 69) sorted by relevance

123

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp35 return cast<WhileStmt>(LoopStmt)->getCond(); in getLoopCondition()
48 assert((isa<ForStmt, WhileStmt, DoStmt>(LoopStmt))); in getWidenedLoopState()
H A DLoopUnrolling.cpp72 return isa_and_nonnull<ForStmt, WhileStmt, DoStmt>(S); in isLoopStmt()
/llvm-project-15.0.7/clang/test/Analysis/
H A Dtraversal-algorithm.mm53 // DFS:27 WhileStmt
99 // DFS-next:27 WhileStmt
132 // DFS-next:27 WhileStmt
165 // DFS-next:27 WhileStmt
/llvm-project-15.0.7/clang/lib/AST/
H A DStmt.cpp1118 WhileStmt::WhileStmt(const ASTContext &Ctx, VarDecl *Var, Expr *Cond, in WhileStmt() function in WhileStmt
1135 WhileStmt::WhileStmt(EmptyShell Empty, bool HasVar) in WhileStmt() function in WhileStmt
1140 WhileStmt *WhileStmt::Create(const ASTContext &Ctx, VarDecl *Var, Expr *Cond, in Create()
1147 alignof(WhileStmt)); in Create()
1148 return new (Mem) WhileStmt(Ctx, Var, Cond, Body, WL, LParenLoc, RParenLoc); in Create()
1151 WhileStmt *WhileStmt::CreateEmpty(const ASTContext &Ctx, bool HasVar) { in CreateEmpty()
1154 alignof(WhileStmt)); in CreateEmpty()
1155 return new (Mem) WhileStmt(EmptyShell(), HasVar); in CreateEmpty()
1158 VarDecl *WhileStmt::getConditionVariable() { in getConditionVariable()
1165 void WhileStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
H A DParentMap.cpp198 return DirectChild == cast<WhileStmt>(P)->getCond(); in isConsumedExpr()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DUnrollLoopsCheck.cpp65 if (isa<WhileStmt, DoStmt>(Loop)) { in check()
120 if (isa<WhileStmt, DoStmt>(Statement)) in hasKnownBounds()
155 if (const auto *WhileLoop = dyn_cast<WhileStmt>(Statement)) in getCondExpr()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp406 const WhileStmt *WStmt1 = cast<WhileStmt>(Stmt1); in isIdenticalStmt()
407 const WhileStmt *WStmt2 = cast<WhileStmt>(Stmt2); in isIdenticalStmt()
H A DErrnoChecker.cpp91 CondFound = (S == cast<WhileStmt>(ParentS)->getCond()); in isInCondition()
H A DMallocOverflowSecurityChecker.cpp246 void VisitWhileStmt(WhileStmt *S) { in VisitWhileStmt()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dattr-likelihood-if-branch-weights.cpp64 void WhileStmt() { in WhileStmt() function
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp35 if (const auto *While = dyn_cast<WhileStmt>(S)) in isSemicolonRequiredAfter()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMisleadingIndentationCheck.cpp71 } else if (const auto *CurrentWhile = dyn_cast<WhileStmt>(CurrentStmt)) { in missingBracesCheck()
H A DBracesAroundStatementsCheck.cpp128 } else if (const auto *S = Result.Nodes.getNodeAs<WhileStmt>("while")) { in check()
H A DImplicitBoolConversionCheck.cpp233 isa<WhileStmt>(S) || isa<BinaryConditionalOperator>(S)) in isCastAllowedInCondition()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DExtractVariable.cpp167 isa<ReturnStmt>(Stmt) || isa<WhileStmt>(Stmt); in computeInsertionPoint()
379 if (const auto* WS = llvm::dyn_cast<WhileStmt>(Outer)) in childExprIsStmt()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DExprSequence.cpp169 } else if (const auto *TheWhileStmt = dyn_cast<WhileStmt>(Parent)) { in getSequenceSuccessor()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenPGO.cpp93 WhileStmt, enumerator
262 DEFINE_NESTABLE_TRAVERSAL(WhileStmt)
278 return PGOHash::WhileStmt; in DEFINE_NESTABLE_TRAVERSAL()
487 void VisitWhileStmt(const WhileStmt *S) { in VisitWhileStmt()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DInfiniteLoopCheck.cpp171 if (const auto *While = dyn_cast<WhileStmt>(LoopStmt)) { in check()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp107 bool VisitWhileStmt(WhileStmt *S) { in VisitWhileStmt()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmt.h204 friend class WhileStmt; in alignas() local
2373 class WhileStmt final : public Stmt,
2374 private llvm::TrailingObjects<WhileStmt, Stmt *> {
2406 WhileStmt(const ASTContext &Ctx, VarDecl *Var, Expr *Cond, Stmt *Body,
2411 explicit WhileStmt(EmptyShell Empty, bool HasVar);
2415 static WhileStmt *Create(const ASTContext &Ctx, VarDecl *Var, Expr *Cond,
2421 static WhileStmt *CreateEmpty(const ASTContext &Ctx, bool HasVar);
2457 return const_cast<WhileStmt *>(this)->getConditionVariable(); in getConditionVariable()
H A DTextNodeDumper.h245 void VisitWhileStmt(const WhileStmt *Node);
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DPreferMemberInitializerCheck.cpp21 return isa<IfStmt, SwitchStmt, ForStmt, WhileStmt, DoStmt, ReturnStmt, in isControlStatement()
/llvm-project-15.0.7/clang/unittests/AST/
H A DSourceLocationTest.cpp63 class WhileParenLocationVerifier : public MatchVerifier<WhileStmt> {
78 const WhileStmt &Node) override { in verify()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysis.cpp87 void VisitWhileStmt(const WhileStmt *S) { in VisitWhileStmt()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DRename.cpp336 CheckConditionVariable(ScopeParent->get<WhileStmt>(), NewName)) in lookupSiblingWithinEnclosingScope()
357 if (const auto *EnclosingWhile = Parent->get<WhileStmt>()) in lookupSiblingWithinEnclosingScope()

123