Home
last modified time | relevance | path

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

123

/external/llvm-project/clang/lib/Tooling/Refactoring/Extract/
DSourceExtraction.cpp33 return isSemicolonRequiredAfter(If->getElse() ? If->getElse() in isSemicolonRequiredAfter()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DSwapIfBranches.cpp64 dyn_cast_or_null<CompoundStmt>(If->getElse()); in REGISTER_TWEAK()
76 If->getElse()->getSourceRange()); in apply()
DExtractVariable.cpp357 return Inner == IS->getThen() || Inner == IS->getElse(); in childExprIsStmt()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DMisleadingIndentationCheck.cpp67 CurrentIf->getElse() ? CurrentIf->getElse() : CurrentIf->getThen(); in missingBracesCheck()
DFunctionCognitiveComplexityCheck.cpp286 if (!Node->getElse()) in TraverseIfStmt()
289 if (auto *E = dyn_cast<IfStmt>(Node->getElse())) in TraverseIfStmt()
308 return TraverseStmtWithIncreasedNestingLevel(Node->getElse()); in TraverseIfStmt()
DElseAfterReturnCheck.cpp91 return findUsage(If->getElse(), InitDecl->getID()); in checkInitDeclUsageInElse()
98 return findUsageRange(If->getElse(), DeclIdentifiers); in checkInitDeclUsageInElse()
103 return findUsage(If->getElse(), CondVar->getID()); in checkConditionVarUsageInElse()
DDeleteNullPointerCheck.cpp61 if (IfWithDelete->getElse()) in check()
DSimplifyBooleanExprCheck.cpp303 if (IfRet->getElse() != nullptr) in stmtReturnsBool()
608 const Stmt *ElseStatement = IfStatement->getElse(); in replaceWithElseStatement()
626 StringRef Terminator = isa<CompoundStmt>(If->getElse()) ? ";" : ""; in replaceWithReturnCondition()
681 StringRef Terminator = isa<CompoundStmt>(IfAssign->getElse()) ? ";" : ""; in replaceWithAssignment()
DBracesAroundStatementsCheck.cpp160 const Stmt *Else = S->getElse(); in check()
/external/clang/lib/StaticAnalyzer/Checkers/
DIdenticalExprChecker.cpp109 const Stmt *Stmt2 = I->getElse(); in VisitIfStmt()
149 Else = I2->getElse(); in VisitIfStmt()
423 if (!isIdenticalStmt(Ctx, IStmt1->getElse(), IStmt2->getElse(), in isIdenticalStmt()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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()
/external/llvm-project/clang/lib/ARCMigrate/
DTransEmptyStatementsAndDealloc.cpp105 return !S->getElse() || Visit(S->getElse()); in VisitIfStmt()
DTransforms.cpp265 mark(S->getElse()); in VisitIfStmt()
/external/clang/lib/ARCMigrate/
DTransEmptyStatementsAndDealloc.cpp107 return !S->getElse() || Visit(S->getElse()); in VisitIfStmt()
/external/clang/lib/Tooling/
DRefactoringCallbacks.cpp69 const Stmt *Body = PickTrueBranch ? Node->getThen() : Node->getElse(); in run()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DBranchCloneCheck.cpp100 Else = Cur->getElse(); in check()
/external/llvm-project/clang/lib/CodeGen/
DCodeGenPGO.cpp228 else if (CS == If->getElse()) in TraverseIfStmt()
650 if (S->getElse()) { in VisitIfStmt()
652 CountMap[S->getElse()] = ElseCount; in VisitIfStmt()
653 Visit(S->getElse()); in VisitIfStmt()
DCGStmt.cpp696 const Stmt *Skipped = S.getElse(); in EmitIfStmt()
718 if (S.getElse()) in EmitIfStmt()
727 LH = Stmt::getLikelihood(S.getThen(), S.getElse()); in EmitIfStmt()
740 if (const Stmt *Else = S.getElse()) { in EmitIfStmt()
/external/llvm-project/clang/lib/AST/Interp/
DByteCodeStmtGen.cpp202 if (const Stmt *Else = IS->getElse()) { in visitIfStmt()
/external/llvm-project/clang/lib/Sema/
DSemaAvailability.cpp584 cast<IfStmt>(Parent)->getElse() == S; in isBodyLikeChildStmt()
887 return TraverseStmt(If->getThen()) && TraverseStmt(If->getElse()); in TraverseIfStmt()
897 return ShouldContinue && TraverseStmt(If->getElse()); in TraverseIfStmt()
/external/clang/lib/CodeGen/
DCodeGenPGO.cpp501 if (S->getElse()) { in VisitIfStmt()
503 CountMap[S->getElse()] = ElseCount; in VisitIfStmt()
504 Visit(S->getElse()); in VisitIfStmt()
DCoverageMappingGen.cpp856 if (const Stmt *Else = S->getElse()) { in VisitIfStmt()
857 extendRegion(S->getElse()); in VisitIfStmt()
/external/llvm-project/clang/lib/Tooling/
DRefactoringCallbacks.cpp129 const Stmt *Body = PickTrueBranch ? Node->getThen() : Node->getElse(); in run()
/external/clang/lib/AST/
DStmtPrinter.cpp191 OS << (If->getElse() ? ' ' : '\n'); in PrintRawIfStmt()
195 if (If->getElse()) Indent(); in PrintRawIfStmt()
198 if (Stmt *Else = If->getElse()) { in PrintRawIfStmt()
210 PrintStmt(If->getElse()); in PrintRawIfStmt()
/external/llvm-project/clang/lib/AST/
DStmtPrinter.cpp251 OS << (If->getElse() ? " " : NL); in PrintRawIfStmt()
255 if (If->getElse()) Indent(); in PrintRawIfStmt()
258 if (Stmt *Else = If->getElse()) { in PrintRawIfStmt()
270 PrintStmt(If->getElse()); in PrintRawIfStmt()

123