/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | IdenticalExprChecker.cpp | 118 …if (InnerIf && isIdenticalStmt(AC->getASTContext(), I->getCond(), InnerIf->getCond(), /*IgnoreSide… in VisitIfStmt() 119 PathDiagnosticLocation ELoc(InnerIf->getCond(), BR.getSourceManager(), AC); in VisitIfStmt() 136 const Expr *Cond1 = I->getCond(); in VisitIfStmt() 139 const Expr *Cond2 = I2->getCond(); in VisitIfStmt() 382 if (!isIdenticalStmt(Ctx, ForStmt1->getCond(), ForStmt2->getCond(), in isIdenticalStmt() 397 if (!isIdenticalStmt(Ctx, DStmt1->getCond(), DStmt2->getCond(), in isIdenticalStmt() 409 if (!isIdenticalStmt(Ctx, WStmt1->getCond(), WStmt2->getCond(), in isIdenticalStmt() 421 if (!isIdenticalStmt(Ctx, IStmt1->getCond(), IStmt2->getCond(), in isIdenticalStmt()
|
H A D | ErrnoChecker.cpp | 83 CondFound = (S == cast<IfStmt>(ParentS)->getCond()); in isInCondition() 86 CondFound = (S == cast<ForStmt>(ParentS)->getCond()); in isInCondition() 89 CondFound = (S == cast<DoStmt>(ParentS)->getCond()); in isInCondition() 92 CondFound = (S == cast<WhileStmt>(ParentS)->getCond()); in isInCondition() 95 CondFound = (S == cast<SwitchStmt>(ParentS)->getCond()); in isInCondition() 98 CondFound = (S == cast<ConditionalOperator>(ParentS)->getCond()); in isInCondition()
|
H A D | LocalizationChecker.cpp | 1337 const Expr *Condition = I->getCond(); in VisitIfStmt() 1370 const Expr *Condition = C->getCond()->IgnoreParenImpCasts(); in VisitConditionalOperator()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ParentMap.cpp | 64 M[BCO->getCond()] = S; in BuildParentMap() 65 BuildParentMap(M, BCO->getCond(), OV_Opaque); in BuildParentMap() 201 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr() 203 return DirectChild == cast<WhileStmt>(P)->getCond(); in isConsumedExpr() 205 return DirectChild == cast<DoStmt>(P)->getCond(); in isConsumedExpr() 207 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr() 211 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
|
H A D | StmtPrinter.cpp | 328 PrintExpr(If->getCond()); in PrintRawIfStmt() 370 PrintExpr(Node->getCond()); in VisitSwitchStmt() 380 PrintExpr(Node->getCond()); in VisitWhileStmt() 397 PrintExpr(Node->getCond()); in VisitDoStmt() 406 OS << (Node->getCond() ? "; " : ";"); in VisitForStmt() 409 else if (Node->getCond()) in VisitForStmt() 410 PrintExpr(Node->getCond()); in VisitForStmt() 1703 PrintExpr(Node->getCond()); in VisitConditionalOperator() 1731 PrintExpr(Node->getCond()); in VisitChooseExpr()
|
H A D | ComputeDependence.cpp | 169 return E->getCond()->getDependence() | E->getLHS()->getDependence() | in computeDependence() 205 E->getCond()->getDependence() | E->getLHS()->getDependence() | in computeDependence() 208 auto Cond = E->getCond()->getDependence(); in computeDependence()
|
H A D | Stmt.cpp | 1004 return isa<ObjCAvailabilityCheckExpr>(getCond()); in isObjCAvailabilityCheck() 1008 if (!isConstexpr() || getCond()->isValueDependent()) in getNondiscardedCase() 1010 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenPGO.cpp | 404 if (CS == While->getCond()) in TraverseWhileStmt() 405 CounterMap[While->getCond()] = NextCounter++; in TraverseWhileStmt() 423 if (CS == Do->getCond()) in TraverseDoStmt() 424 CounterMap[Do->getCond()] = NextCounter++; in TraverseDoStmt() 442 if (CS == For->getCond()) in TraverseForStmt() 443 CounterMap[For->getCond()] = NextCounter++; in TraverseForStmt() 723 CountMap[S->getCond()] = CondCount; in VisitWhileStmt() 724 Visit(S->getCond()); in VisitWhileStmt() 744 CountMap[S->getCond()] = CondCount; in VisitDoStmt() 745 Visit(S->getCond()); in VisitDoStmt() [all …]
|
H A D | CGStmt.cpp | 809 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt() 820 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant, in EmitIfStmt() 873 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock, ThenCount, LH); in EmitIfStmt() 875 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitIfStmt() 1017 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitWhileStmt() 1027 checkIfLoopMustProgress(S.getCond(), hasEmptyLoopBody(S))); in EmitWhileStmt() 1031 incrementProfileCounter(S.getCond()); in EmitWhileStmt() 1040 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody())); in EmitWhileStmt() 1131 incrementProfileCounter(S.getCond()); in EmitDoStmt() 1139 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitDoStmt() [all …]
|
H A D | CoverageMappingGen.cpp | 1593 ? getRegionCounter(S->getCond()) in VisitWhileStmt() 1595 propagateCounts(CondCount, S->getCond()); in VisitWhileStmt() 1618 createBranchRegion(S->getCond(), BodyCount, in VisitWhileStmt() 1646 ? getRegionCounter(S->getCond()) in VisitDoStmt() 1648 propagateCounts(CondCount, S->getCond()); in VisitDoStmt() 1662 createBranchRegion(S->getCond(), BodyCount, in VisitDoStmt() 1708 ? getRegionCounter(S->getCond()) in VisitForStmt() 1713 if (const Expr *Cond = S->getCond()) { in VisitForStmt() 1737 createBranchRegion(S->getCond(), BodyCount, in VisitForStmt() 1784 createBranchRegion(S->getCond(), BodyCount, in VisitCXXForRangeStmt() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | CoreEngine.cpp | 334 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit() 342 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 358 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 362 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 366 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 376 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 406 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit() 414 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
|
H A D | BugReporter.cpp | 673 if (allowNestedContexts || cast<ChooseExpr>(Parent)->getCond() == S) in getEnclosingStmtLocation() 682 cast<AbstractConditionalOperator>(Parent)->getCond() == S) in getEnclosingStmtLocation() 697 if (cast<IfStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation() 705 if (cast<WhileStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation() 1386 return cast<IfStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1388 return cast<ForStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1390 return cast<WhileStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1392 return cast<DoStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1394 return cast<ChooseExpr>(S)->getCond() == Cond; in isConditionForTerminator() 1398 return cast<SwitchStmt>(S)->getCond() == Cond; in isConditionForTerminator() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | TransEmptyStatementsAndDealloc.cpp | 98 Expr *condE = S->getCond(); in VisitIfStmt() 110 Expr *condE = S->getCond(); in VisitWhileStmt() 120 Expr *condE = S->getCond(); in VisitDoStmt()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | TypeErasedDataflowAnalysis.cpp | 70 const Expr *VisitIfStmt(const IfStmt *S) { return S->getCond(); } in VisitIfStmt() 71 const Expr *VisitWhileStmt(const WhileStmt *S) { return S->getCond(); } in VisitWhileStmt() 72 const Expr *VisitDoStmt(const DoStmt *S) { return S->getCond(); } in VisitDoStmt() 73 const Expr *VisitForStmt(const ForStmt *S) { return S->getCond(); } in VisitForStmt() 84 return S->getCond(); in VisitConditionalOperator()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | CFG.cpp | 2801 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitChooseExpr() 2805 return addStmt(C->getCond()); in VisitChooseExpr() 2878 dyn_cast<BinaryOperator>(C->getCond()->IgnoreParens())) in VisitConditionalOperator() 2886 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitConditionalOperator() 2890 Expr *condExpr = C->getCond(); in VisitConditionalOperator() 3164 : dyn_cast<BinaryOperator>(I->getCond()->IgnoreParens()); in VisitIfStmt() 3178 KnownVal = tryEvaluateBool(I->getCond()); in VisitIfStmt() 3188 LastBlock = addStmt(I->getCond()); in VisitIfStmt() 3596 Expr *C = F->getCond(); in VisitForStmt() 3927 Expr *C = W->getCond(); in VisitWhileStmt() [all …]
|
H A D | LiveVariables.cpp | 292 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<IfStmt>(S)->getCond()); in Visit() 299 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<WhileStmt>(S)->getCond()); in Visit() 306 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<DoStmt>(S)->getCond()); in Visit() 313 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<ForStmt>(S)->getCond()); in Visit()
|
H A D | CalledOnceCheck.cpp | 415 return If->getCond(); in getCondition() 418 return Ternary->getCond(); in getCondition()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | EvaluatedExprVisitor.h | 59 if (E->getCond()->isValueDependent()) in VisitChooseExpr()
|
H A D | Stmt.h | 2220 Expr *getCond() { 2224 const Expr *getCond() const { 2456 Expr *getCond() { 2460 const Expr *getCond() const { 2566 : reinterpret_cast<const Stmt *>(getCond())->getEndLoc(); 2641 Expr *getCond() { 2645 const Expr *getCond() const { 2748 Expr *getCond() { return reinterpret_cast<Expr *>(SubExprs[COND]); } 2749 const Expr *getCond() const { 2828 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } [all …]
|
H A D | StmtCXX.h | 167 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond() function 181 const Expr *getCond() const { in getCond() function
|
H A D | Expr.h | 4181 Expr *getCond() const; 4226 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function 4241 return getCond()->getBeginLoc(); in getBeginLoc() 4307 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function 4343 inline Expr *AbstractConditionalOperator::getCond() const { in getCond() function 4345 return co->getCond(); in getCond() 4346 return cast<BinaryConditionalOperator>(this)->getCond(); in getCond() 4613 return getCond()->isTypeDependent() || getCond()->isValueDependent(); in isConditionDependent() 4622 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTWriterStmt.cpp | 213 Record.AddStmt(S->getCond()); in VisitIfStmt() 240 Record.AddStmt(S->getCond()); in VisitSwitchStmt() 263 Record.AddStmt(S->getCond()); in VisitWhileStmt() 276 Record.AddStmt(S->getCond()); in VisitDoStmt() 287 Record.AddStmt(S->getCond()); in VisitForStmt() 1093 Record.AddStmt(E->getCond()); in VisitConditionalOperator() 1106 Record.AddStmt(E->getCond()); in VisitBinaryConditionalOperator() 1293 Record.AddStmt(E->getCond()); in VisitChooseExpr() 1662 Record.AddStmt(S->getCond()); in VisitCXXForRangeStmt()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | AnalysisBasedWarnings.cpp | 901 Range = IS->getCond()->getSourceRange(); in DiagUninitUse() 911 Range = CO->getCond()->getSourceRange(); in DiagUninitUse() 940 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 947 Range = cast<ForStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 970 Range = cast<DoStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 1361 if (!cast<DoStmt>(S)->getCond()->EvaluateAsInt(Result, Ctx)) in isInLoop()
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
H A D | BuildTree.cpp | 821 } else if (S->getCond() && !TraverseStmt(S->getCond())) in TraverseIfStmt() 1465 Stmt *ConditionStatement = S->getCond(); in WalkUpFromIfStmt()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Compiler.cpp | 1852 const Expr *Condition = E->getCond(); in VisitAbstractConditionalOperator() 4310 if (!this->visitBool(IS->getCond())) in visitIfStmt() 4340 const Expr *Cond = S->getCond(); in visitWhileStmt() 4374 const Expr *Cond = S->getCond(); in visitDoStmt() 4407 const Expr *Cond = S->getCond(); in visitForStmt() 4454 const Expr *Cond = S->getCond(); in visitCXXForRangeStmt() 4529 const Expr *Cond = S->getCond(); in visitSwitchStmt()
|