Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp49 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 DLocalizationChecker.cpp1212 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 DErrnoChecker.cpp83 CondFound = (S == cast<IfStmt>(ParentS)->getCond()); in isInCondition()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp923 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 DParentMap.cpp204 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr()
H A DStmtPrinter.cpp125 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 DRefactoringCallbacks.cpp128 if (const IfStmt *Node = Result.Nodes.getNodeAs<IfStmt>(Id)) { in run()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp33 if (const auto *If = dyn_cast<IfStmt>(S)) in isSemicolonRequiredAfter()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeStmtGen.h56 bool visitIfStmt(const IfStmt *IS);
H A DByteCodeStmtGen.cpp254 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 DEvaluatedExprVisitor.h109 void VisitIfStmt(PTR(IfStmt) If) { in VisitIfStmt()
H A DStmt.h183 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 DTextNodeDumper.h248 void VisitIfStmt(const IfStmt *Node);
H A DJSONNodeDumper.h328 void VisitIfStmt(const IfStmt *IS);
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp320 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 DSemaAvailability.cpp622 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 DJumpDiagnostics.cpp368 IfStmt *IS = cast<IfStmt>(S); in BuildScopeInformation()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp43 grandParent.begin()->get<IfStmt>() || in isDeclaredInForOrIf()
/freebsd-14.2/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.cpp414 if (const auto *If = dyn_cast<IfStmt>(S)) { in getCondition()
519 std::optional<Clarification> VisitIfStmt(const IfStmt *If) { in VisitIfStmt()
H A DConsumed.cpp935 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 DTransEmptyStatementsAndDealloc.cpp95 bool VisitIfStmt(IfStmt *S) { in VisitIfStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp104 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 DASTMatchers.h2144 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 DTypeErasedDataflowAnalysis.cpp81 TerminatorVisitorRetTy VisitIfStmt(const IfStmt *S) { in VisitIfStmt()

123