Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp34 return isSemicolonRequiredAfter(If->getElse() ? If->getElse() in isSemicolonRequiredAfter()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp108 const Stmt *Stmt2 = I->getElse(); in VisitIfStmt()
148 Else = I2->getElse(); in VisitIfStmt()
427 if (!isIdenticalStmt(Ctx, IStmt1->getElse(), IStmt2->getElse(), in isIdenticalStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp105 return !S->getElse() || Visit(S->getElse()); in VisitIfStmt()
H A DTransforms.cpp263 mark(S->getElse()); in VisitIfStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeStmtGen.cpp372 return IS->getElse() ? visitStmt(IS->getElse()) : true; in visitIfStmt()
385 if (const Stmt *Else = IS->getElse()) { in visitIfStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp371 else if (CS == If->getElse()) in TraverseIfStmt()
782 const Stmt *Stm = S->isNegatedConsteval() ? S->getThen() : S->getElse(); in VisitIfStmt()
801 if (S->getElse()) { in VisitIfStmt()
803 CountMap[S->getElse()] = ElseCount; in VisitIfStmt()
804 Visit(S->getElse()); in VisitIfStmt()
H A DCGStmt.cpp774 const Stmt *Executed = S.isNegatedConsteval() ? S.getThen() : S.getElse(); in EmitIfStmt()
799 const Stmt *Skipped = S.getElse(); in EmitIfStmt()
821 if (S.getElse()) in EmitIfStmt()
839 LH = Stmt::getLikelihood(S.getThen(), S.getElse()); in EmitIfStmt()
864 if (const Stmt *Else = S.getElse()) { in EmitIfStmt()
H A DCoverageMappingGen.cpp1788 const auto *Else = S->getElse(); in coverIfConsteval()
1848 const auto *Else = S->getElse(); in coverIfConstexpr()
1900 if (const Stmt *Else = S->getElse()) { in VisitIfStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaAvailability.cpp623 cast<IfStmt>(Parent)->getElse() == S; in isBodyLikeChildStmt()
912 return TraverseStmt(If->getThen()) && TraverseStmt(If->getElse()); in TraverseIfStmt()
922 return ShouldContinue && TraverseStmt(If->getElse()); in TraverseIfStmt()
H A DSemaExceptionSpec.cpp1564 CanThrowResult Else = IS->getElse() ? canThrow(IS->getElse()) : CT_Cannot; in canThrow()
H A DJumpDiagnostics.cpp393 if (Stmt *Else = IS->getElse()) { in BuildScopeInformation()
H A DAnalysisBasedWarnings.cpp903 CreateIfFixit(S, IS, IS->getThen(), IS->getElse(), in DiagUninitUse()
H A DTreeTransform.h7759 Else = getDerived().TransformStmt(S->getElse()); in TransformIfStmt()
7762 } else if (S->getElse() && ConstexprConditionValue && in TransformIfStmt()
7768 CompoundStmt(S->getElse()->getBeginLoc(), S->getElse()->getEndLoc()); in TransformIfStmt()
7775 Else.get() == S->getElse()) in TransformIfStmt()
H A DSemaOpenMP.cpp12080 if (S->getElse()) { in checkCondUpdateStmt()
12082 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = S->getElse()->getBeginLoc(); in checkCondUpdateStmt()
12083 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = S->getElse()->getSourceRange(); in checkCondUpdateStmt()
12358 if (!S->getElse()) { in checkForm3()
12365 auto *Else = S->getElse(); in checkForm3()
12486 if (S2->getElse()) { in checkForm45()
12489 auto *Else = S2->getElse(); in checkForm45()
H A DSemaDeclCXX.cpp2163 if (If->getElse() && in CheckConstexprFunctionStmt()
2164 !CheckConstexprFunctionStmt(SemaRef, Dcl, If->getElse(), ReturnStmts, in CheckConstexprFunctionStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp129 const Stmt *Body = PickTrueBranch ? Node->getThen() : Node->getElse(); in run()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DStmtPrinter.cpp310 if (Stmt *Else = If->getElse()) { in PrintRawIfStmt()
331 OS << (If->getElse() ? " " : NL); in PrintRawIfStmt()
335 if (If->getElse()) Indent(); in PrintRawIfStmt()
338 if (Stmt *Else = If->getElse()) { in PrintRawIfStmt()
350 PrintStmt(If->getElse()); in PrintRawIfStmt()
H A DStmt.cpp1009 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
H A DExprConstant.cpp5192 if (!IS->getElse()) in EvaluateStmt()
5195 ESR = EvaluateStmt(Result, Info, IS->getElse(), Case); in EvaluateStmt()
5365 if (const Stmt *SubStmt = Cond ? IS->getThen() : IS->getElse()) { in EvaluateStmt()
H A DASTImporter.cpp6834 auto ToElse = importChecked(Err, S->getElse()); in VisitIfStmt()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DBuildTree.cpp825 if (S->getElse() && !TraverseStmt(S->getElse())) in TraverseIfStmt()
1470 Builder.markStmtChild(S->getElse(), syntax::NodeRole::ElseStatement); in WalkUpFromIfStmt()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h2234 Stmt *getElse() { in getElse() function
2239 const Stmt *getElse() const { in getElse() function
2350 if (getElse()) in getEndLoc()
2351 return getElse()->getEndLoc(); in getEndLoc()
/freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterStmt.cpp203 bool HasElse = S->getElse() != nullptr; in VisitIfStmt()
216 Record.AddStmt(S->getElse()); in VisitIfStmt()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h5611 const Stmt *const Else = Node.getElse(); in AST_MATCHER_P()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp3108 if (Stmt *Else = I->getElse()) { in VisitIfStmt()