| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | ParentMap.cpp | 64 M[BCO->getCond()] = S; in BuildParentMap() 65 BuildParentMap(M, BCO->getCond(), OV_Opaque); in BuildParentMap() 198 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr() 200 return DirectChild == cast<WhileStmt>(P)->getCond(); in isConsumedExpr() 202 return DirectChild == cast<DoStmt>(P)->getCond(); in isConsumedExpr() 204 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr() 208 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
|
| H A D | StmtPrinter.cpp | 324 PrintExpr(If->getCond()); in PrintRawIfStmt() 366 PrintExpr(Node->getCond()); in VisitSwitchStmt() 376 PrintExpr(Node->getCond()); in VisitWhileStmt() 393 PrintExpr(Node->getCond()); in VisitDoStmt() 402 OS << (Node->getCond() ? "; " : ";"); in VisitForStmt() 403 if (Node->getCond()) in VisitForStmt() 404 PrintExpr(Node->getCond()); in VisitForStmt() 1643 PrintExpr(Node->getCond()); in VisitConditionalOperator() 1671 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 | 1002 return isa<ObjCAvailabilityCheckExpr>(getCond()); in isObjCAvailabilityCheck() 1006 if (!isConstexpr() || getCond()->isValueDependent()) in getNondiscardedCase() 1008 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
| H A D | LoopWidening.cpp | 33 return cast<ForStmt>(LoopStmt)->getCond(); in getLoopCondition() 35 return cast<WhileStmt>(LoopStmt)->getCond(); in getLoopCondition() 37 return cast<DoStmt>(LoopStmt)->getCond(); in getLoopCondition()
|
| H A D | CoreEngine.cpp | 346 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit() 354 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 370 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 374 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 378 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 388 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 418 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit() 426 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
|
| H A D | BugReporter.cpp | 662 if (allowNestedContexts || cast<ChooseExpr>(Parent)->getCond() == S) in getEnclosingStmtLocation() 671 cast<AbstractConditionalOperator>(Parent)->getCond() == S) in getEnclosingStmtLocation() 686 if (cast<IfStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation() 694 if (cast<WhileStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation() 1373 return cast<IfStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1375 return cast<ForStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1377 return cast<WhileStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1379 return cast<DoStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1381 return cast<ChooseExpr>(S)->getCond() == Cond; in isConditionForTerminator() 1385 return cast<SwitchStmt>(S)->getCond() == Cond; in isConditionForTerminator() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 507 CountMap[S->getCond()] = CondCount; in VisitWhileStmt() 508 Visit(S->getCond()); in VisitWhileStmt() 528 CountMap[S->getCond()] = CondCount; in VisitDoStmt() 529 Visit(S->getCond()); in VisitDoStmt() 561 if (S->getCond()) { in VisitForStmt() 562 CountMap[S->getCond()] = CondCount; in VisitForStmt() 563 Visit(S->getCond()); in VisitForStmt() 597 CountMap[S->getCond()] = CondCount; in VisitCXXForRangeStmt() 598 Visit(S->getCond()); in VisitCXXForRangeStmt() 624 Visit(S->getCond()); in VisitSwitchStmt() [all …]
|
| H A D | CoverageMappingGen.cpp | 1101 propagateCounts(CondCount, S->getCond()); in VisitWhileStmt() 1119 createBranchRegion(S->getCond(), BodyCount, in VisitWhileStmt() 1139 propagateCounts(CondCount, S->getCond()); in VisitDoStmt() 1149 createBranchRegion(S->getCond(), BodyCount, in VisitDoStmt() 1189 if (const Expr *Cond = S->getCond()) { in VisitForStmt() 1209 createBranchRegion(S->getCond(), BodyCount, in VisitForStmt() 1248 createBranchRegion(S->getCond(), BodyCount, in VisitCXXForRangeStmt() 1283 Visit(S->getCond()); in VisitSwitchStmt() 1349 createBranchRegion(S->getCond(), DefaultTrue, DefaultFalse); in VisitSwitchStmt() 1384 extendRegion(S->getCond()); in VisitIfStmt() [all …]
|
| H A D | CGStmt.cpp | 777 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt() 788 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant, in EmitIfStmt() 833 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock, ThenCount, LH); in EmitIfStmt() 895 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitWhileStmt() 915 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody())); in EmitWhileStmt() 991 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitDoStmt() 1012 createProfileWeightsForLoop(S.getCond(), BackedgeCount)); in EmitDoStmt() 1045 !S.getCond() || S.getCond()->EvaluateAsInt(Result, getContext()); in EmitForStmt() 1070 if (S.getCond()) { in EmitForStmt() 1093 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitForStmt() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/FlowSensitive/ |
| H A D | TypeErasedDataflowAnalysis.cpp | 104 auto *Cond = S->getCond(); in VisitIfStmt() 110 auto *Cond = S->getCond(); in VisitWhileStmt() 116 auto *Cond = S->getCond(); in VisitDoStmt() 122 auto *Cond = S->getCond(); in VisitForStmt() 137 auto *Cond = S->getCond(); in VisitConditionalOperator()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/Interp/ |
| H A D | ByteCodeStmtGen.cpp | 270 if (!this->visitBool(IS->getCond())) in visitIfStmt() 300 const Expr *Cond = S->getCond(); in visitWhileStmt() 325 const Expr *Cond = S->getCond(); in visitDoStmt() 349 const Expr *Cond = S->getCond(); in visitForStmt()
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/ |
| H A D | CFG.cpp | 2797 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitChooseExpr() 2801 return addStmt(C->getCond()); in VisitChooseExpr() 2874 dyn_cast<BinaryOperator>(C->getCond()->IgnoreParens())) in VisitConditionalOperator() 2882 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitConditionalOperator() 2886 Expr *condExpr = C->getCond(); in VisitConditionalOperator() 3160 : dyn_cast<BinaryOperator>(I->getCond()->IgnoreParens()); in VisitIfStmt() 3174 KnownVal = tryEvaluateBool(I->getCond()); in VisitIfStmt() 3184 LastBlock = addStmt(I->getCond()); in VisitIfStmt() 3590 Expr *C = F->getCond(); in VisitForStmt() 3921 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()
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | EvaluatedExprVisitor.h | 59 if (E->getCond()->isValueDependent()) in VisitChooseExpr()
|
| H A D | Stmt.h | 2027 Expr *getCond() { in getCond() function 2031 const Expr *getCond() const { in getCond() function 2258 Expr *getCond() { in getCond() function 2262 const Expr *getCond() const { in getCond() function 2363 : reinterpret_cast<const Stmt *>(getCond())->getEndLoc(); in getEndLoc() 2438 Expr *getCond() { in getCond() function 2442 const Expr *getCond() const { in getCond() function 2540 Expr *getCond() { return reinterpret_cast<Expr *>(SubExprs[COND]); } in getCond() function 2541 const Expr *getCond() const { in getCond() function 2610 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function [all …]
|
| H A D | StmtCXX.h | 166 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond() function 180 const Expr *getCond() const { in getCond() function
|
| H A D | Expr.h | 4130 Expr *getCond() const; 4175 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function 4190 return getCond()->getBeginLoc(); in getBeginLoc() 4256 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function 4292 inline Expr *AbstractConditionalOperator::getCond() const { in getCond() function 4294 return co->getCond(); in getCond() 4295 return cast<BinaryConditionalOperator>(this)->getCond(); in getCond() 4562 return getCond()->isTypeDependent() || getCond()->isValueDependent(); in isConditionDependent() 4571 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | GenericMachineInstrs.h | 233 CmpInst::Predicate getCond() const { in getCond() function
|
| /openbsd-src/gnu/llvm/clang/lib/Serialization/ |
| H A D | ASTWriterStmt.cpp | 148 Record.AddStmt(S->getCond()); in VisitIfStmt() 175 Record.AddStmt(S->getCond()); in VisitSwitchStmt() 198 Record.AddStmt(S->getCond()); in VisitWhileStmt() 211 Record.AddStmt(S->getCond()); in VisitDoStmt() 222 Record.AddStmt(S->getCond()); in VisitForStmt() 993 Record.AddStmt(E->getCond()); in VisitConditionalOperator() 1006 Record.AddStmt(E->getCond()); in VisitBinaryConditionalOperator() 1183 Record.AddStmt(E->getCond()); in VisitChooseExpr() 1551 Record.AddStmt(S->getCond()); in VisitCXXForRangeStmt()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | AnalysisBasedWarnings.cpp | 877 Range = IS->getCond()->getSourceRange(); in DiagUninitUse() 887 Range = CO->getCond()->getSourceRange(); in DiagUninitUse() 916 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 923 Range = cast<ForStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 946 Range = cast<DoStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 1337 if (!cast<DoStmt>(S)->getCond()->EvaluateAsInt(Result, Ctx)) in isInLoop()
|