Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/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.cpp1217 bool VisitIfStmt(const IfStmt *I);
1218 bool EndVisitIfStmt(IfStmt *I);
1219 bool TraverseIfStmt(IfStmt *x);
1321 bool PluralMisuseChecker::MethodCrawler::TraverseIfStmt(IfStmt *I) { in TraverseIfStmt()
1329 bool PluralMisuseChecker::MethodCrawler::EndVisitIfStmt(IfStmt *I) { in EndVisitIfStmt()
1341 bool PluralMisuseChecker::MethodCrawler::VisitIfStmt(const IfStmt *I) { in VisitIfStmt()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DStmt.cpp909 IfStmt::IfStmt(const ASTContext &Ctx, SourceLocation IL, bool IsConstexpr, in IfStmt() function in IfStmt
936 IfStmt::IfStmt(EmptyShell Empty, bool HasElse, bool HasVar, bool HasInit) in IfStmt() function in IfStmt
943 IfStmt *IfStmt::Create(const ASTContext &Ctx, SourceLocation IL, in Create()
953 alignof(IfStmt)); in Create()
955 IfStmt(Ctx, IL, IsConstexpr, Init, Var, Cond, LPL, RPL, Then, EL, Else); in Create()
958 IfStmt *IfStmt::CreateEmpty(const ASTContext &Ctx, bool HasElse, bool HasVar, in CreateEmpty()
963 alignof(IfStmt)); in CreateEmpty()
964 return new (Mem) IfStmt(EmptyShell(), HasElse, HasVar, HasInit); in CreateEmpty()
967 VarDecl *IfStmt::getConditionVariable() { in getConditionVariable()
974 void IfStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
[all …]
H A DParentMap.cpp203 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr()
H A DStmtPrinter.cpp123 void PrintRawIfStmt(IfStmt *If);
237 void StmtPrinter::PrintRawIfStmt(IfStmt *If) { in PrintRawIfStmt()
264 } else if (auto *ElseIf = dyn_cast<IfStmt>(Else)) { in PrintRawIfStmt()
274 void StmtPrinter::VisitIfStmt(IfStmt *If) { in VisitIfStmt()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/
H A DByteCodeStmtGen.cpp122 return visitIfStmt(cast<IfStmt>(S)); in visitStmt()
189 bool ByteCodeStmtGen<Emitter>::visitIfStmt(const IfStmt *IS) { in visitIfStmt()
H A DByteCodeStmtGen.h64 bool visitIfStmt(const IfStmt *IS);
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp128 if (const IfStmt *Node = Result.Nodes.getNodeAs<IfStmt>(Id)) { in run()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp32 if (const auto *If = dyn_cast<IfStmt>(S)) in isSemicolonRequiredAfter()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp318 CharSourceRange getElseRange(const MatchResult &Result, const IfStmt &S) { in getElseRange()
326 return RelativeSelector<IfStmt, getElseRange>(std::move(ID)); in elseBranch()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaAvailability.cpp583 return cast<IfStmt>(Parent)->getThen() == S || in isBodyLikeChildStmt()
584 cast<IfStmt>(Parent)->getElse() == S; in isBodyLikeChildStmt()
687 bool TraverseIfStmt(IfStmt *If);
879 bool DiagnoseUnguardedAvailability::TraverseIfStmt(IfStmt *If) { in TraverseIfStmt()
H A DJumpDiagnostics.cpp379 IfStmt *IS = cast<IfStmt>(S); in BuildScopeInformation()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DEvaluatedExprVisitor.h109 void VisitIfStmt(PTR(IfStmt) If) { in VisitIfStmt()
H A DStmt.h159 friend class IfStmt; variable
1903 class IfStmt final
1905 private llvm::TrailingObjects<IfStmt, Stmt *, SourceLocation> {
1953 IfStmt(const ASTContext &Ctx, SourceLocation IL, bool IsConstexpr, Stmt *Init,
1958 explicit IfStmt(EmptyShell Empty, bool HasElse, bool HasVar, bool HasInit);
1962 static IfStmt *Create(const ASTContext &Ctx, SourceLocation IL,
1970 static IfStmt *CreateEmpty(const ASTContext &Ctx, bool HasElse, bool HasVar,
2029 return const_cast<IfStmt *>(this)->getConditionVariable(); in getConditionVariable()
H A DTextNodeDumper.h240 void VisitIfStmt(const IfStmt *Node);
H A DJSONNodeDumper.h309 void VisitIfStmt(const IfStmt *IS);
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenPGO.cpp101 IfStmt, enumerator
231 bool TraverseIfStmt(IfStmt *If) { in TraverseIfStmt()
294 return PGOHash::IfStmt; in DEFINE_NESTABLE_TRAVERSAL()
650 void VisitIfStmt(const IfStmt *S) { in VisitIfStmt()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DBodyFarm.cpp464 IfStmt::Create(C, SourceLocation(), in create_call_once()
550 auto *If = IfStmt::Create(C, SourceLocation(), in create_dispatch_once()
661 IfStmt::Create(C, SourceLocation(), in create_OSAtomicCompareAndSwap()
H A DCalledOnceCheck.cpp414 if (const auto *If = dyn_cast<IfStmt>(S)) { in getCondition()
519 llvm::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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp43 grandParent.begin()->get<IfStmt>() || in isDeclaredInForOrIf()
/netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp95 bool VisitIfStmt(IfStmt *S) { in VisitIfStmt()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2056 extern const internal::VariadicDynCastAllOfMatcher<Stmt, IfStmt> ifStmt;
5097 IfStmt)) { in AST_POLYMORPHIC_MATCHER() argument
5123 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, SwitchStmt, in AST_POLYMORPHIC_MATCHER_P() argument
5139 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, ForStmt, WhileStmt, DoStmt, in AST_POLYMORPHIC_MATCHER_P() argument
5154 AST_MATCHER_P(IfStmt, hasThen, internal::Matcher<Stmt>, InnerMatcher) { in AST_MATCHER_P() argument
5166 AST_MATCHER_P(IfStmt, hasElse, internal::Matcher<Stmt>, InnerMatcher) { in AST_MATCHER_P() argument
5216 AST_MATCHER_P(IfStmt, hasConditionVariableStatement, in AST_MATCHER_P() argument
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DStmtNodes.td12 def IfStmt : StmtNode<Stmt>;
/netbsd-src/external/apache2/llvm/dist/clang/docs/
H A DHowToSetupToolingForLLVM.rst125 (IfStmt 0x44d97c8 <line:65:5, line:66:45>

123