Home
last modified time | relevance | path

Searched refs:IfStmt (Results 1 – 25 of 59) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp968 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 DParentMap.cpp213 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr()
H A DStmtPrinter.cpp124 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 DRefactoringCallbacks.cpp128 if (const IfStmt *Node = Result.Nodes.getNodeAs<IfStmt>(Id)) { in run()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp33 if (const auto *If = dyn_cast<IfStmt>(S)) in isSemicolonRequiredAfter()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DEvaluatedExprVisitor.h109 void VisitIfStmt(PTR(IfStmt) If) { in VisitIfStmt()
H A DStmt.h185 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 DTextNodeDumper.h258 void VisitIfStmt(const IfStmt *Node);
H A DJSONNodeDumper.h337 void VisitIfStmt(const IfStmt *IS);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DLocalizationChecker.cpp1206 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 DErrnoChecker.cpp82 CondFound = (S == cast<IfStmt>(ParentS)->getCond()); in isInCondition()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp363 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 DSemaAvailability.cpp742 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 DJumpDiagnostics.cpp369 IfStmt *IS = cast<IfStmt>(S); in BuildScopeInformation()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp496 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 DCalledOnceCheck.cpp412 if (const auto *If = dyn_cast<IfStmt>(S)) { in getCondition()
517 std::optional<Clarification> VisitIfStmt(const IfStmt *If) { in VisitIfStmt()
H A DConsumed.cpp928 static void splitVarStateForIf(const IfStmt *IfNode, const VarTestResult &Test, in splitVarStateForIf()
1228 dyn_cast_or_null<IfStmt>(CurrBlock->getTerminator().getStmt())) { in splitState()
H A DReachableCode.cpp307 if (const auto *IS = dyn_cast<IfStmt>(Term); in shouldTreatSuccessorsAsReachable()
/freebsd/sys/contrib/openzfs/.github/codeql/custom-queries/cpp/
H A DAssignmentOfComparisonAsCondition.ql46 result = any(IfStmt s).getCondition()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2194 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 DCodeGenPGO.cpp106 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 DRawPtrRefLocalVarsChecker.cpp235 bool TraverseIfStmt(IfStmt *IS) override { in checkASTDecl()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenStmt.cpp93 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 DTypeErasedDataflowAnalysis.cpp84 const Expr *VisitIfStmt(const IfStmt *S) { return S->getCond(); } in VisitIfStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DStmtNodes.td12 def IfStmt : StmtNode<Stmt>;

123