| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | Stmt.cpp | 968 IfStmt::IfStmt(const ASTContext &Ctx, SourceLocation IL, IfStatementKind Kind, in IfStmt() function in IfStmt 995 IfStmt::IfStmt(EmptyShell Empty, bool HasElse, bool HasVar, bool HasInit) in IfStmt() function in IfStmt 1002 IfStmt *IfStmt::Create(const ASTContext &Ctx, SourceLocation IL, in Create() 1012 alignof(IfStmt)); in Create() 1014 IfStmt(Ctx, IL, Kind, Init, Var, Cond, LPL, RPL, Then, EL, Else); in Create() 1017 IfStmt *IfStmt::CreateEmpty(const ASTContext &Ctx, bool HasElse, bool HasVar, in CreateEmpty() 1022 alignof(IfStmt)); in CreateEmpty() 1023 return new (Mem) IfStmt(EmptyShell(), HasElse, HasVar, HasInit); in CreateEmpty() 1026 VarDecl *IfStmt::getConditionVariable() { in getConditionVariable() 1033 void IfStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable() [all …]
|
| H A D | ParentMap.cpp | 213 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr()
|
| H A D | StmtPrinter.cpp | 124 void PrintRawIfStmt(IfStmt *If); 310 void StmtPrinter::PrintRawIfStmt(IfStmt *If) { in PrintRawIfStmt() 353 } else if (auto *ElseIf = dyn_cast<IfStmt>(Else)) { in PrintRawIfStmt() 363 void StmtPrinter::VisitIfStmt(IfStmt *If) { in VisitIfStmt()
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/ |
| H A D | RefactoringCallbacks.cpp | 128 if (const IfStmt *Node = Result.Nodes.getNodeAs<IfStmt>(Id)) { in run()
|
| /freebsd/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/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 | 185 friend class IfStmt; 2260 class IfStmt final 2262 private llvm::TrailingObjects<IfStmt, Stmt *, SourceLocation> { 2310 IfStmt(const ASTContext &Ctx, SourceLocation IL, IfStatementKind Kind, 2315 explicit IfStmt(EmptyShell Empty, bool HasElse, bool HasVar, bool HasInit); 2319 static IfStmt *Create(const ASTContext &Ctx, SourceLocation IL, 2327 static IfStmt *CreateEmpty(const ASTContext &Ctx, bool HasElse, bool HasVar, 2386 return const_cast<IfStmt *>(this)->getConditionVariable();
|
| H A D | TextNodeDumper.h | 258 void VisitIfStmt(const IfStmt *Node);
|
| H A D | JSONNodeDumper.h | 337 void VisitIfStmt(const IfStmt *IS);
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | LocalizationChecker.cpp | 1206 bool VisitIfStmt(IfStmt *I) override; 1207 bool EndVisitIfStmt(IfStmt *I); 1208 bool TraverseIfStmt(IfStmt *x) override; 1310 bool PluralMisuseChecker::MethodCrawler::TraverseIfStmt(IfStmt *I) { in TraverseIfStmt() 1318 bool PluralMisuseChecker::MethodCrawler::EndVisitIfStmt(IfStmt *I) { in EndVisitIfStmt() 1330 bool PluralMisuseChecker::MethodCrawler::VisitIfStmt(IfStmt *I) { in VisitIfStmt()
|
| H A D | ErrnoChecker.cpp | 82 CondFound = (S == cast<IfStmt>(ParentS)->getCond()); in isInCondition()
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| H A D | RangeSelector.cpp | 363 CharSourceRange getElseRange(const MatchResult &Result, const IfStmt &S) { in getElseRange() 371 return RelativeSelector<IfStmt, getElseRange>(std::move(ID)); in elseBranch()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaAvailability.cpp | 742 return cast<IfStmt>(Parent)->getThen() == S || in isBodyLikeChildStmt() 743 cast<IfStmt>(Parent)->getElse() == S; in isBodyLikeChildStmt() 835 bool TraverseIfStmt(IfStmt *If) override; 1052 bool DiagnoseUnguardedAvailability::TraverseIfStmt(IfStmt *If) { in TraverseIfStmt()
|
| H A D | JumpDiagnostics.cpp | 369 IfStmt *IS = cast<IfStmt>(S); in BuildScopeInformation()
|
| /freebsd/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 | 412 if (const auto *If = dyn_cast<IfStmt>(S)) { in getCondition() 517 std::optional<Clarification> VisitIfStmt(const IfStmt *If) { in VisitIfStmt()
|
| H A D | Consumed.cpp | 928 static void splitVarStateForIf(const IfStmt *IfNode, const VarTestResult &Test, in splitVarStateForIf() 1228 dyn_cast_or_null<IfStmt>(CurrBlock->getTerminator().getStmt())) { in splitState()
|
| H A D | ReachableCode.cpp | 307 if (const auto *IS = dyn_cast<IfStmt>(Term); in shouldTreatSuccessorsAsReachable()
|
| /freebsd/sys/contrib/openzfs/.github/codeql/custom-queries/cpp/ |
| H A D | AssignmentOfComparisonAsCondition.ql | 46 result = any(IfStmt s).getCondition()
|
| /freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 2194 extern const internal::VariadicDynCastAllOfMatcher<Stmt, IfStmt> ifStmt; 5572 AST_POLYMORPHIC_SUPPORTED_TYPES(FunctionDecl, IfStmt)) { in AST_POLYMORPHIC_MATCHER() argument 5594 IfStmt)) { in AST_POLYMORPHIC_MATCHER() argument 5637 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, SwitchStmt, in AST_POLYMORPHIC_MATCHER_P() argument 5653 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, ForStmt, WhileStmt, DoStmt, in AST_POLYMORPHIC_MATCHER_P() argument 5668 AST_MATCHER_P(IfStmt, hasThen, internal::Matcher<Stmt>, InnerMatcher) { in AST_MATCHER_P() argument 5680 AST_MATCHER_P(IfStmt, hasElse, internal::Matcher<Stmt>, InnerMatcher) { in AST_MATCHER_P() argument 5730 AST_MATCHER_P(IfStmt, hasConditionVariableStatement, in AST_MATCHER_P() argument
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 106 IfStmt, enumerator 364 bool TraverseIfStmt(IfStmt *If) { in TraverseIfStmt() 511 return PGOHash::IfStmt; in DEFINE_NESTABLE_TRAVERSAL() 867 void VisitIfStmt(const IfStmt *S) { in VisitIfStmt()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | RawPtrRefLocalVarsChecker.cpp | 235 bool TraverseIfStmt(IfStmt *IS) override { in checkASTDecl()
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenStmt.cpp | 93 return emitIfStmt(cast<IfStmt>(*s)); in emitStmt() 301 mlir::LogicalResult CIRGenFunction::emitIfStmt(const IfStmt &s) { in emitIfStmt()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | TypeErasedDataflowAnalysis.cpp | 84 const Expr *VisitIfStmt(const IfStmt *S) { return S->getCond(); } in VisitIfStmt()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | StmtNodes.td | 12 def IfStmt : StmtNode<Stmt>;
|