| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | LoopWidening.cpp | 35 return cast<WhileStmt>(LoopStmt)->getCond(); in getLoopCondition() 48 assert((isa<ForStmt, WhileStmt, DoStmt>(LoopStmt))); in getWidenedLoopState()
|
| H A D | LoopUnrolling.cpp | 72 return isa_and_nonnull<ForStmt, WhileStmt, DoStmt>(S); in isLoopStmt()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | traversal-algorithm.mm | 53 // 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 D | Stmt.cpp | 1118 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 D | ParentMap.cpp | 198 return DirectChild == cast<WhileStmt>(P)->getCond(); in isConsumedExpr()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | UnrollLoopsCheck.cpp | 65 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 D | IdenticalExprChecker.cpp | 406 const WhileStmt *WStmt1 = cast<WhileStmt>(Stmt1); in isIdenticalStmt() 407 const WhileStmt *WStmt2 = cast<WhileStmt>(Stmt2); in isIdenticalStmt()
|
| H A D | ErrnoChecker.cpp | 91 CondFound = (S == cast<WhileStmt>(ParentS)->getCond()); in isInCondition()
|
| H A D | MallocOverflowSecurityChecker.cpp | 246 void VisitWhileStmt(WhileStmt *S) { in VisitWhileStmt()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | attr-likelihood-if-branch-weights.cpp | 64 void WhileStmt() { in WhileStmt() function
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | SourceExtraction.cpp | 35 if (const auto *While = dyn_cast<WhileStmt>(S)) in isSemicolonRequiredAfter()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | MisleadingIndentationCheck.cpp | 71 } else if (const auto *CurrentWhile = dyn_cast<WhileStmt>(CurrentStmt)) { in missingBracesCheck()
|
| H A D | BracesAroundStatementsCheck.cpp | 128 } else if (const auto *S = Result.Nodes.getNodeAs<WhileStmt>("while")) { in check()
|
| H A D | ImplicitBoolConversionCheck.cpp | 233 isa<WhileStmt>(S) || isa<BinaryConditionalOperator>(S)) in isCastAllowedInCondition()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | ExtractVariable.cpp | 167 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 D | ExprSequence.cpp | 169 } else if (const auto *TheWhileStmt = dyn_cast<WhileStmt>(Parent)) { in getSequenceSuccessor()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 93 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 D | InfiniteLoopCheck.cpp | 171 if (const auto *While = dyn_cast<WhileStmt>(LoopStmt)) { in check()
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransEmptyStatementsAndDealloc.cpp | 107 bool VisitWhileStmt(WhileStmt *S) { in VisitWhileStmt()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | Stmt.h | 204 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 D | TextNodeDumper.h | 245 void VisitWhileStmt(const WhileStmt *Node);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | PreferMemberInitializerCheck.cpp | 21 return isa<IfStmt, SwitchStmt, ForStmt, WhileStmt, DoStmt, ReturnStmt, in isControlStatement()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | SourceLocationTest.cpp | 63 class WhileParenLocationVerifier : public MatchVerifier<WhileStmt> { 78 const WhileStmt &Node) override { in verify()
|
| /llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/ |
| H A D | TypeErasedDataflowAnalysis.cpp | 87 void VisitWhileStmt(const WhileStmt *S) { in VisitWhileStmt()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/ |
| H A D | Rename.cpp | 336 CheckConditionVariable(ScopeParent->get<WhileStmt>(), NewName)) in lookupSiblingWithinEnclosingScope() 357 if (const auto *EnclosingWhile = Parent->get<WhileStmt>()) in lookupSiblingWithinEnclosingScope()
|