| /freebsd-14.2/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()
|
| /freebsd-14.2/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() 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 | 325 PrintExpr(If->getCond()); in PrintRawIfStmt() 367 PrintExpr(Node->getCond()); in VisitSwitchStmt() 377 PrintExpr(Node->getCond()); in VisitWhileStmt() 394 PrintExpr(Node->getCond()); in VisitDoStmt() 403 OS << (Node->getCond() ? "; " : ";"); in VisitForStmt() 406 else if (Node->getCond()) in VisitForStmt() 407 PrintExpr(Node->getCond()); in VisitForStmt() 1657 PrintExpr(Node->getCond()); in VisitConditionalOperator() 1685 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 | 1003 return isa<ObjCAvailabilityCheckExpr>(getCond()); in isObjCAvailabilityCheck() 1007 if (!isConstexpr() || getCond()->isValueDependent()) in getNondiscardedCase() 1009 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
|
| /freebsd-14.2/contrib/llvm-project/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() 39 return cast<CXXForRangeStmt>(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 | 687 if (cast<IfStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation() 695 if (cast<WhileStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation() 1374 return cast<IfStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1376 return cast<ForStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1378 return cast<WhileStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1380 return cast<DoStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1382 return cast<ChooseExpr>(S)->getCond() == Cond; in isConditionForTerminator() 1386 return cast<SwitchStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1388 return cast<BinaryConditionalOperator>(S)->getCond() == Cond; in isConditionForTerminator() 1391 return CO->getCond() == Cond || in isConditionForTerminator() [all …]
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 634 CountMap[S->getCond()] = CondCount; in VisitWhileStmt() 635 Visit(S->getCond()); in VisitWhileStmt() 655 CountMap[S->getCond()] = CondCount; in VisitDoStmt() 656 Visit(S->getCond()); in VisitDoStmt() 688 if (S->getCond()) { in VisitForStmt() 690 Visit(S->getCond()); in VisitForStmt() 724 CountMap[S->getCond()] = CondCount; in VisitCXXForRangeStmt() 725 Visit(S->getCond()); in VisitCXXForRangeStmt() 751 Visit(S->getCond()); in VisitSwitchStmt() 791 Visit(S->getCond()); in VisitIfStmt() [all …]
|
| H A D | CoverageMappingGen.cpp | 1509 propagateCounts(CondCount, S->getCond()); in VisitWhileStmt() 1527 createBranchRegion(S->getCond(), BodyCount, in VisitWhileStmt() 1547 propagateCounts(CondCount, S->getCond()); in VisitDoStmt() 1557 createBranchRegion(S->getCond(), BodyCount, in VisitDoStmt() 1597 if (const Expr *Cond = S->getCond()) { in VisitForStmt() 1617 createBranchRegion(S->getCond(), BodyCount, in VisitForStmt() 1656 createBranchRegion(S->getCond(), BodyCount, in VisitCXXForRangeStmt() 1691 Visit(S->getCond()); in VisitSwitchStmt() 1821 S->getCond() in coverIfConstexpr() 1881 extendRegion(S->getCond()); in VisitIfStmt() [all …]
|
| H A D | CGStmt.cpp | 795 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant, in EmitIfStmt() 850 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitIfStmt() 914 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitWhileStmt() 1010 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitDoStmt() 1031 createProfileWeightsForLoop(S.getCond(), BackedgeCount)); in EmitDoStmt() 1064 !S.getCond() || S.getCond()->EvaluateAsInt(Result, getContext()); in EmitForStmt() 1089 if (S.getCond()) { in EmitForStmt() 1112 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitForStmt() 1197 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitCXXForRangeStmt() 2001 llvm::Value *CondV = EmitScalarExpr(S.getCond()); in EmitSwitchStmt() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | ByteCodeStmtGen.cpp | 382 if (!this->visitBool(IS->getCond())) in visitIfStmt() 412 const Expr *Cond = S->getCond(); in visitWhileStmt() 441 const Expr *Cond = S->getCond(); in visitDoStmt() 471 const Expr *Cond = S->getCond(); in visitForStmt() 510 const Expr *Cond = S->getCond(); in visitCXXForRangeStmt() 581 const Expr *Cond = S->getCond(); in visitSwitchStmt()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | TypeErasedDataflowAnalysis.cpp | 82 auto *Cond = S->getCond(); in VisitIfStmt() 88 auto *Cond = S->getCond(); in VisitWhileStmt() 94 auto *Cond = S->getCond(); in VisitDoStmt() 100 auto *Cond = S->getCond(); in VisitForStmt() 121 auto *Cond = S->getCond(); in VisitConditionalOperator()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | CFG.cpp | 2808 return addStmt(C->getCond()); in VisitChooseExpr() 2893 Expr *condExpr = C->getCond(); in VisitConditionalOperator() 3599 Expr *C = F->getCond(); in VisitForStmt() 3930 Expr *C = W->getCond(); in VisitWhileStmt() 4199 if (Stmt *C = D->getCond()) { in VisitDoStmt() 4716 if (Expr *C = S->getCond()) { in VisitCXXForRangeStmt() 4733 if (S->getCond()) in VisitCXXForRangeStmt() 5537 if (Stmt *C = I->getCond()) in VisitIfStmt() 5556 if (Stmt *C = F->getCond()) in VisitForStmt() 5566 if (Stmt *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-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | EvaluatedExprVisitor.h | 59 if (E->getCond()->isValueDependent()) in VisitChooseExpr()
|
| H A D | Stmt.h | 2213 Expr *getCond() { in getCond() function 2217 const Expr *getCond() const { in getCond() function 2449 Expr *getCond() { in getCond() function 2453 const Expr *getCond() const { in getCond() function 2559 : reinterpret_cast<const Stmt *>(getCond())->getEndLoc(); in getEndLoc() 2634 Expr *getCond() { in getCond() function 2638 const Expr *getCond() const { in getCond() function 2741 Expr *getCond() { return reinterpret_cast<Expr *>(SubExprs[COND]); } in getCond() function 2742 const Expr *getCond() const { in getCond() function 2821 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function [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 | 4128 Expr *getCond() const; 4173 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function 4188 return getCond()->getBeginLoc(); in getBeginLoc() 4254 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function 4290 inline Expr *AbstractConditionalOperator::getCond() const { in getCond() function 4292 return co->getCond(); in getCond() 4293 return cast<BinaryConditionalOperator>(this)->getCond(); in getCond() 4560 return getCond()->isTypeDependent() || getCond()->isValueDependent(); in isConditionDependent() 4569 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
|
| /freebsd-14.2/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() 1283 Record.AddStmt(E->getCond()); in VisitChooseExpr() 1652 Record.AddStmt(S->getCond()); in VisitCXXForRangeStmt()
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | GenericMachineInstrs.h | 323 CmpInst::Predicate getCond() const { in getCond() function
|