| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | IdenticalExprChecker.cpp | 49 bool VisitIfStmt(const IfStmt *I); 106 bool FindIdenticalExprVisitor::VisitIfStmt(const IfStmt *I) { in VisitIfStmt() 117 const IfStmt *InnerIf = dyn_cast<IfStmt>(*CS->body_begin()); in VisitIfStmt() 138 while (const IfStmt *I2 = dyn_cast_or_null<IfStmt>(Else)) { in VisitIfStmt() 418 const IfStmt *IStmt1 = cast<IfStmt>(Stmt1); in isIdenticalStmt() 419 const IfStmt *IStmt2 = cast<IfStmt>(Stmt2); in isIdenticalStmt()
|
| H A D | LocalizationChecker.cpp | 1212 bool VisitIfStmt(const IfStmt *I); 1213 bool EndVisitIfStmt(IfStmt *I); 1214 bool TraverseIfStmt(IfStmt *x); 1316 bool PluralMisuseChecker::MethodCrawler::TraverseIfStmt(IfStmt *I) { in TraverseIfStmt() 1324 bool PluralMisuseChecker::MethodCrawler::EndVisitIfStmt(IfStmt *I) { in EndVisitIfStmt() 1336 bool PluralMisuseChecker::MethodCrawler::VisitIfStmt(const IfStmt *I) { in VisitIfStmt()
|
| H A D | ErrnoChecker.cpp | 83 CondFound = (S == cast<IfStmt>(ParentS)->getCond()); in isInCondition()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | Stmt.cpp | 923 IfStmt::IfStmt(const ASTContext &Ctx, SourceLocation IL, IfStatementKind Kind, in IfStmt() function in IfStmt 950 IfStmt::IfStmt(EmptyShell Empty, bool HasElse, bool HasVar, bool HasInit) in IfStmt() function in IfStmt 957 IfStmt *IfStmt::Create(const ASTContext &Ctx, SourceLocation IL, in Create() 967 alignof(IfStmt)); in Create() 972 IfStmt *IfStmt::CreateEmpty(const ASTContext &Ctx, bool HasElse, bool HasVar, in CreateEmpty() 977 alignof(IfStmt)); in CreateEmpty() 978 return new (Mem) IfStmt(EmptyShell(), HasElse, HasVar, HasInit); in CreateEmpty() 981 VarDecl *IfStmt::getConditionVariable() { in getConditionVariable() 1002 bool IfStmt::isObjCAvailabilityCheck() const { in isObjCAvailabilityCheck() 1013 IfStmt::getNondiscardedCase(const ASTContext &Ctx) const { in getNondiscardedCase() [all …]
|
| H A D | ParentMap.cpp | 204 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr()
|
| H A D | StmtPrinter.cpp | 125 void PrintRawIfStmt(IfStmt *If); 302 void StmtPrinter::PrintRawIfStmt(IfStmt *If) { in PrintRawIfStmt() 345 } else if (auto *ElseIf = dyn_cast<IfStmt>(Else)) { in PrintRawIfStmt() 355 void StmtPrinter::VisitIfStmt(IfStmt *If) { in VisitIfStmt()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/ |
| H A D | RefactoringCallbacks.cpp | 128 if (const IfStmt *Node = Result.Nodes.getNodeAs<IfStmt>(Id)) { in run()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | SourceExtraction.cpp | 33 if (const auto *If = dyn_cast<IfStmt>(S)) in isSemicolonRequiredAfter()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | ByteCodeStmtGen.h | 56 bool visitIfStmt(const IfStmt *IS);
|
| H A D | ByteCodeStmtGen.cpp | 254 return visitIfStmt(cast<IfStmt>(S)); in visitStmt() 366 bool ByteCodeStmtGen<Emitter>::visitIfStmt(const IfStmt *IS) { in visitIfStmt()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | EvaluatedExprVisitor.h | 109 void VisitIfStmt(PTR(IfStmt) If) { in VisitIfStmt()
|
| H A D | Stmt.h | 183 friend class IfStmt; in alignas() local 2134 class IfStmt final 2136 private llvm::TrailingObjects<IfStmt, Stmt *, SourceLocation> { 2184 IfStmt(const ASTContext &Ctx, SourceLocation IL, IfStatementKind Kind, 2189 explicit IfStmt(EmptyShell Empty, bool HasElse, bool HasVar, bool HasInit); 2193 static IfStmt *Create(const ASTContext &Ctx, SourceLocation IL, 2201 static IfStmt *CreateEmpty(const ASTContext &Ctx, bool HasElse, bool HasVar, 2260 return const_cast<IfStmt *>(this)->getConditionVariable(); in getConditionVariable()
|
| H A D | TextNodeDumper.h | 248 void VisitIfStmt(const IfStmt *Node);
|
| H A D | JSONNodeDumper.h | 328 void VisitIfStmt(const IfStmt *IS);
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| H A D | RangeSelector.cpp | 320 CharSourceRange getElseRange(const MatchResult &Result, const IfStmt &S) { in getElseRange() 328 return RelativeSelector<IfStmt, getElseRange>(std::move(ID)); in elseBranch()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaAvailability.cpp | 622 return cast<IfStmt>(Parent)->getThen() == S || in isBodyLikeChildStmt() 623 cast<IfStmt>(Parent)->getElse() == S; in isBodyLikeChildStmt() 718 bool TraverseIfStmt(IfStmt *If); 904 bool DiagnoseUnguardedAvailability::TraverseIfStmt(IfStmt *If) { in TraverseIfStmt()
|
| H A D | JumpDiagnostics.cpp | 368 IfStmt *IS = cast<IfStmt>(S); in BuildScopeInformation()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | UncountedLocalVarsChecker.cpp | 43 grandParent.begin()->get<IfStmt>() || in isDeclaredInForOrIf()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | BodyFarm.cpp | 496 IfStmt::Create(C, SourceLocation(), IfStatementKind::Ordinary, in create_call_once() 581 auto *If = IfStmt::Create(C, SourceLocation(), IfStatementKind::Ordinary, in create_dispatch_once() 691 IfStmt::Create(C, SourceLocation(), IfStatementKind::Ordinary, in create_OSAtomicCompareAndSwap()
|
| H A D | CalledOnceCheck.cpp | 414 if (const auto *If = dyn_cast<IfStmt>(S)) { in getCondition() 519 std::optional<Clarification> VisitIfStmt(const IfStmt *If) { in VisitIfStmt()
|
| H A D | Consumed.cpp | 935 static void splitVarStateForIf(const IfStmt *IfNode, const VarTestResult &Test, in splitVarStateForIf() 1235 dyn_cast_or_null<IfStmt>(CurrBlock->getTerminator().getStmt())) { in splitState()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | TransEmptyStatementsAndDealloc.cpp | 95 bool VisitIfStmt(IfStmt *S) { in VisitIfStmt()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 104 IfStmt, enumerator 359 bool TraverseIfStmt(IfStmt *If) { in TraverseIfStmt() 422 return PGOHash::IfStmt; in DEFINE_NESTABLE_TRAVERSAL() 778 void VisitIfStmt(const IfStmt *S) { in VisitIfStmt()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 2144 extern const internal::VariadicDynCastAllOfMatcher<Stmt, IfStmt> ifStmt; 5502 AST_POLYMORPHIC_SUPPORTED_TYPES(FunctionDecl, IfStmt)) { in AST_POLYMORPHIC_MATCHER() argument 5524 IfStmt)) { in AST_POLYMORPHIC_MATCHER() argument 5567 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, SwitchStmt, in AST_POLYMORPHIC_MATCHER_P() argument 5583 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, ForStmt, WhileStmt, DoStmt, in AST_POLYMORPHIC_MATCHER_P() argument 5598 AST_MATCHER_P(IfStmt, hasThen, internal::Matcher<Stmt>, InnerMatcher) { in AST_MATCHER_P() argument 5610 AST_MATCHER_P(IfStmt, hasElse, internal::Matcher<Stmt>, InnerMatcher) { in AST_MATCHER_P() argument 5660 AST_MATCHER_P(IfStmt, hasConditionVariableStatement, in AST_MATCHER_P() argument
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | TypeErasedDataflowAnalysis.cpp | 81 TerminatorVisitorRetTy VisitIfStmt(const IfStmt *S) { in VisitIfStmt()
|