Home
last modified time | relevance | path

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

123

/freebsd/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/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp924 IfStmt::IfStmt(const ASTContext &Ctx, SourceLocation IL, IfStatementKind Kind, in IfStmt() function in IfStmt
951 IfStmt::IfStmt(EmptyShell Empty, bool HasElse, bool HasVar, bool HasInit) in IfStmt() function in IfStmt
958 IfStmt *IfStmt::Create(const ASTContext &Ctx, SourceLocation IL, in Create()
968 alignof(IfStmt)); in Create()
970 IfStmt(Ctx, IL, Kind, Init, Var, Cond, LPL, RPL, Then, EL, Else); in Create()
973 IfStmt *IfStmt::CreateEmpty(const ASTContext &Ctx, bool HasElse, bool HasVar, in CreateEmpty()
978 alignof(IfStmt)); in CreateEmpty()
979 return new (Mem) IfStmt(EmptyShell(), HasElse, HasVar, HasInit); in CreateEmpty()
982 VarDecl *IfStmt::getConditionVariable() { in getConditionVariable()
989 void IfStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
[all …]
H A DParentMap.cpp207 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr()
H A DStmtPrinter.cpp125 void PrintRawIfStmt(IfStmt *If);
305 void StmtPrinter::PrintRawIfStmt(IfStmt *If) { in PrintRawIfStmt()
348 } else if (auto *ElseIf = dyn_cast<IfStmt>(Else)) { in PrintRawIfStmt()
358 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.h183 friend class IfStmt;
2141 class IfStmt final
2143 private llvm::TrailingObjects<IfStmt, Stmt *, SourceLocation> {
2191 IfStmt(const ASTContext &Ctx, SourceLocation IL, IfStatementKind Kind,
2196 explicit IfStmt(EmptyShell Empty, bool HasElse, bool HasVar, bool HasInit);
2200 static IfStmt *Create(const ASTContext &Ctx, SourceLocation IL,
2208 static IfStmt *CreateEmpty(const ASTContext &Ctx, bool HasElse, bool HasVar,
2267 return const_cast<IfStmt *>(this)->getConditionVariable();
H A DTextNodeDumper.h257 void VisitIfStmt(const IfStmt *Node);
H A DJSONNodeDumper.h333 void VisitIfStmt(const IfStmt *IS);
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp345 CharSourceRange getElseRange(const MatchResult &Result, const IfStmt &S) { in getElseRange()
353 return RelativeSelector<IfStmt, getElseRange>(std::move(ID)); in elseBranch()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaAvailability.cpp699 return cast<IfStmt>(Parent)->getThen() == S || in isBodyLikeChildStmt()
700 cast<IfStmt>(Parent)->getElse() == S; in isBodyLikeChildStmt()
795 bool TraverseIfStmt(IfStmt *If);
989 bool DiagnoseUnguardedAvailability::TraverseIfStmt(IfStmt *If) { in TraverseIfStmt()
H A DJumpDiagnostics.cpp370 IfStmt *IS = cast<IfStmt>(S); in BuildScopeInformation()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp95 bool VisitIfStmt(IfStmt *S) { in VisitIfStmt()
H A DTransforms.cpp262 bool VisitIfStmt(IfStmt *S) { in VisitIfStmt()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp154 bool TraverseIfStmt(IfStmt *IS) { in checkASTDecl()
H A DPtrTypesSemantics.cpp332 bool VisitIfStmt(const IfStmt *IS) { in VisitIfStmt()
/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/include/clang/ASTMatchers/
H A DASTMatchers.h2145 extern const internal::VariadicDynCastAllOfMatcher<Stmt, IfStmt> ifStmt;
5526 AST_POLYMORPHIC_SUPPORTED_TYPES(FunctionDecl, IfStmt)) { in AST_POLYMORPHIC_MATCHER() argument
5548 IfStmt)) { in AST_POLYMORPHIC_MATCHER() argument
5591 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, SwitchStmt, in AST_POLYMORPHIC_MATCHER_P() argument
5607 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, ForStmt, WhileStmt, DoStmt, in AST_POLYMORPHIC_MATCHER_P() argument
5622 AST_MATCHER_P(IfStmt, hasThen, internal::Matcher<Stmt>, InnerMatcher) { in AST_MATCHER_P() argument
5634 AST_MATCHER_P(IfStmt, hasElse, internal::Matcher<Stmt>, InnerMatcher) { in AST_MATCHER_P() argument
5684 AST_MATCHER_P(IfStmt, hasConditionVariableStatement, in AST_MATCHER_P() argument
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCalledOnceCheck.cpp414 if (const auto *If = dyn_cast<IfStmt>(S)) { in getCondition()
519 std::optional<Clarification> VisitIfStmt(const IfStmt *If) { in VisitIfStmt()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysis.cpp70 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>;
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp376 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()

123