| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | IdenticalExprChecker.cpp | 119 …if (InnerIf && isIdenticalStmt(AC->getASTContext(), I->getCond(), InnerIf->getCond(), /*ignoreSide… in VisitIfStmt() 120 PathDiagnosticLocation ELoc(InnerIf->getCond(), BR.getSourceManager(), AC); in VisitIfStmt() 137 const Expr *Cond1 = I->getCond(); in VisitIfStmt() 140 const Expr *Cond2 = I2->getCond(); in VisitIfStmt() 381 if (!isIdenticalStmt(Ctx, ForStmt1->getCond(), ForStmt2->getCond(), in isIdenticalStmt() 396 if (!isIdenticalStmt(Ctx, DStmt1->getCond(), DStmt2->getCond(), in isIdenticalStmt() 408 if (!isIdenticalStmt(Ctx, WStmt1->getCond(), WStmt2->getCond(), in isIdenticalStmt() 420 if (!isIdenticalStmt(Ctx, IStmt1->getCond(), IStmt2->getCond(), in isIdenticalStmt()
|
| H A D | LocalizationChecker.cpp | 1342 const Expr *Condition = I->getCond()->IgnoreParenImpCasts(); in VisitIfStmt() 1372 const Expr *Condition = C->getCond()->IgnoreParenImpCasts(); in VisitConditionalOperator()
|
| H A D | CheckSecuritySyntaxOnly.cpp | 235 const Expr *condition = FS->getCond(); in checkLoopConditionForFloat()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | ParentMap.cpp | 63 M[BCO->getCond()] = S; in BuildParentMap() 64 BuildParentMap(M, BCO->getCond(), OV_Opaque); in BuildParentMap() 186 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr() 188 return DirectChild == cast<WhileStmt>(P)->getCond(); in isConsumedExpr() 190 return DirectChild == cast<DoStmt>(P)->getCond(); in isConsumedExpr() 192 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr() 196 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
|
| H A D | StmtPrinter.cpp | 248 PrintExpr(If->getCond()); in PrintRawIfStmt() 290 PrintExpr(Node->getCond()); in VisitSwitchStmt() 300 PrintExpr(Node->getCond()); in VisitWhileStmt() 317 PrintExpr(Node->getCond()); in VisitDoStmt() 326 OS << (Node->getCond() ? "; " : ";"); in VisitForStmt() 327 if (Node->getCond()) in VisitForStmt() 328 PrintExpr(Node->getCond()); in VisitForStmt() 1392 PrintExpr(Node->getCond()); in VisitConditionalOperator() 1420 PrintExpr(Node->getCond()); in VisitChooseExpr()
|
| H A D | ExprConstant.cpp | 3973 if (!EvaluateInteger(SS->getCond(), Value, Info)) in EvaluateSwitch() 4175 if (!EvaluateCond(Info, WS->getConditionVariable(), WS->getCond(), in EvaluateStmt() 4198 if (!EvaluateAsBooleanCondition(DS->getCond(), Continue, Info)) in EvaluateStmt() 4215 if (FS->getCond() && !EvaluateCond(Info, FS->getConditionVariable(), in EvaluateStmt() 4216 FS->getCond(), Continue)) in EvaluateStmt() 4263 if (!EvaluateAsBooleanCondition(FS->getCond(), Continue, Info)) in EvaluateStmt() 4709 if (!EvaluateAsBooleanCondition(E->getCond(), BoolResult, Info)) { in HandleConditionalOperator() 4836 dyn_cast<CallExpr>(E->getCond()->IgnoreParenCasts())) in VisitConditionalOperator() 11496 = dyn_cast<CallExpr>(Exp->getCond()->IgnoreParenCasts())) in CheckICE() 11499 ICEDiag CondResult = CheckICE(Exp->getCond(), Ctx); in CheckICE() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
| H A D | LoopWidening.cpp | 34 return cast<ForStmt>(LoopStmt)->getCond(); in getLoopCondition() 36 return cast<WhileStmt>(LoopStmt)->getCond(); in getLoopCondition() 38 return cast<DoStmt>(LoopStmt)->getCond(); in getLoopCondition()
|
| H A D | CoreEngine.cpp | 300 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit() 308 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 324 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 328 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 332 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 341 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 371 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit() 379 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
|
| H A D | BugReporter.cpp | 492 if (cast<IfStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation() 500 if (cast<WhileStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation() 1289 return cast<IfStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1291 return cast<ForStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1293 return cast<WhileStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1295 return cast<DoStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1297 return cast<ChooseExpr>(S)->getCond() == Cond; in isConditionForTerminator() 1301 return cast<SwitchStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1303 return cast<BinaryConditionalOperator>(S)->getCond() == Cond; in isConditionForTerminator() 1306 return CO->getCond() == Cond || in isConditionForTerminator() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 488 CountMap[S->getCond()] = CondCount; in VisitWhileStmt() 489 Visit(S->getCond()); in VisitWhileStmt() 509 CountMap[S->getCond()] = CondCount; in VisitDoStmt() 510 Visit(S->getCond()); in VisitDoStmt() 542 if (S->getCond()) { in VisitForStmt() 544 Visit(S->getCond()); in VisitForStmt() 578 CountMap[S->getCond()] = CondCount; in VisitCXXForRangeStmt() 579 Visit(S->getCond()); in VisitCXXForRangeStmt() 605 Visit(S->getCond()); in VisitSwitchStmt() 637 Visit(S->getCond()); in VisitIfStmt() [all …]
|
| H A D | CGStmt.cpp | 603 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt() 614 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant, in EmitIfStmt() 643 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock, in EmitIfStmt() 711 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitWhileStmt() 797 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitDoStmt() 813 createProfileWeightsForLoop(S.getCond(), BackedgeCount)); in EmitDoStmt() 862 if (S.getCond()) { in EmitForStmt() 880 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitForStmt() 961 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitCXXForRangeStmt() 1607 llvm::Value *CondV = EmitScalarExpr(S.getCond()); in EmitSwitchStmt() [all …]
|
| H A D | CoverageMappingGen.cpp | 966 propagateCounts(CondCount, S->getCond()); in VisitWhileStmt() 970 auto Gap = findGapAreaBetween(S->getCond(), S->getBody()); in VisitWhileStmt() 993 propagateCounts(CondCount, S->getCond()); in VisitDoStmt() 1031 if (const Expr *Cond = S->getCond()) { in VisitForStmt() 1107 Visit(S->getCond()); in VisitSwitchStmt() 1177 extendRegion(S->getCond()); in VisitIfStmt() 1184 propagateCounts(ParentCount, S->getCond()); in VisitIfStmt() 1187 auto Gap = findGapAreaBetween(S->getCond(), S->getThen()); in VisitIfStmt() 1234 Visit(E->getCond()); in VisitAbstractConditionalOperator()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/ |
| H A D | TransEmptyStatementsAndDealloc.cpp | 100 Expr *condE = S->getCond(); in VisitIfStmt() 112 Expr *condE = S->getCond(); in VisitWhileStmt() 122 Expr *condE = S->getCond(); in VisitDoStmt()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/ |
| H A D | CFG.cpp | 2534 return addStmt(C->getCond()); in VisitChooseExpr() 2614 Expr *condExpr = C->getCond(); in VisitConditionalOperator() 3204 Expr *C = F->getCond(); in VisitForStmt() 3540 Expr *C = W->getCond(); in VisitWhileStmt() 3685 if (Stmt *C = D->getCond()) { in VisitDoStmt() 4198 if (Expr *C = S->getCond()) { in VisitCXXForRangeStmt() 4215 if (S->getCond()) in VisitCXXForRangeStmt() 4906 if (Stmt *C = I->getCond()) in VisitIfStmt() 4925 if (Stmt *C = F->getCond()) in VisitForStmt() 4935 if (Stmt *C = W->getCond()) in VisitWhileStmt() [all …]
|
| H A D | LiveVariables.cpp | 335 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<IfStmt>(S)->getCond()); in Visit() 342 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<WhileStmt>(S)->getCond()); in Visit() 349 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<DoStmt>(S)->getCond()); in Visit() 356 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<ForStmt>(S)->getCond()); in Visit()
|
| H A D | ReachableCode.cpp | 54 const Expr *Cond = DS->getCond()->IgnoreParenCasts(); in isTrivialDoWhile()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/ |
| H A D | Stmt.h | 1762 Expr *getCond() { in getCond() function 1766 const Expr *getCond() const { in getCond() function 1946 Expr *getCond() { in getCond() function 1950 const Expr *getCond() const { in getCond() function 2047 : reinterpret_cast<const Stmt *>(getCond())->getEndLoc(); in getEndLoc() 2112 Expr *getCond() { in getCond() function 2116 const Expr *getCond() const { in getCond() function 2203 Expr *getCond() { return reinterpret_cast<Expr *>(SubExprs[COND]); } in getCond() function 2204 const Expr *getCond() const { in getCond() function 2269 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function [all …]
|
| H A D | EvaluatedExprVisitor.h | 57 if (E->getCond()->isValueDependent()) in VisitChooseExpr()
|
| H A D | StmtCXX.h | 159 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond() function 173 const Expr *getCond() const { in getCond() function
|
| H A D | Expr.h | 3565 Expr *getCond() const; 3621 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function 3636 return getCond()->getBeginLoc(); in getBeginLoc() 3707 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function 3743 inline Expr *AbstractConditionalOperator::getCond() const { in getCond() function 3745 return co->getCond(); in getCond() 3746 return cast<BinaryConditionalOperator>(this)->getCond(); in getCond() 4018 return getCond()->isTypeDependent() || getCond()->isValueDependent(); in isConditionDependent() 4027 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/ |
| H A D | ASTWriterStmt.cpp | 144 Record.AddStmt(S->getCond()); in VisitIfStmt() 169 Record.AddStmt(S->getCond()); in VisitSwitchStmt() 190 Record.AddStmt(S->getCond()); in VisitWhileStmt() 201 Record.AddStmt(S->getCond()); in VisitDoStmt() 212 Record.AddStmt(S->getCond()); in VisitForStmt() 750 Record.AddStmt(E->getCond()); in VisitConditionalOperator() 763 Record.AddStmt(E->getCond()); in VisitBinaryConditionalOperator() 930 Record.AddStmt(E->getCond()); in VisitChooseExpr() 1286 Record.AddStmt(S->getCond()); in VisitCXXForRangeStmt() 1899 Record.AddStmt(D->getCond()); in VisitOMPLoopDirective()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/ |
| H A D | AnalysisBasedWarnings.cpp | 854 Range = IS->getCond()->getSourceRange(); in DiagUninitUse() 864 Range = CO->getCond()->getSourceRange(); in DiagUninitUse() 893 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 900 Range = cast<ForStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 923 Range = cast<DoStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 1318 if (!cast<DoStmt>(S)->getCond()->EvaluateAsInt(Result, Ctx)) in isInLoop()
|
| H A D | TreeTransform.h | 6675 S->getIfLoc(), S->getConditionVariable(), S->getCond(), in TransformIfStmt() 6752 S->getWhileLoc(), S->getConditionVariable(), S->getCond(), in TransformWhileStmt() 6779 ExprResult Cond = getDerived().TransformExpr(S->getCond()); in TransformDoStmt() 6784 Cond.get() == S->getCond() && in TransformDoStmt() 6811 S->getForLoc(), S->getConditionVariable(), S->getCond(), in TransformForStmt() 7463 ExprResult Cond = getDerived().TransformExpr(S->getCond()); in TransformCXXForRangeStmt() 7489 Cond.get() != S->getCond() || in TransformCXXForRangeStmt() 9519 ExprResult Cond = getDerived().TransformExpr(E->getCond()); in TransformConditionalOperator() 9532 Cond.get() == E->getCond() && in TransformConditionalOperator() 9855 ExprResult Cond = getDerived().TransformExpr(E->getCond()); in TransformChooseExpr() [all …]
|
| H A D | SemaStmt.cpp | 406 getCurFunction()->SwitchStack.back().getPointer()->getCond(); in ActOnCaseExpr() 837 Expr *CondExpr = SS->getCond(); in ActOnFinishSwitchStmt() 1393 Visit(E->getCond()); in VisitConditionalOperator() 1472 Visit(CO->getCond()); in CheckLValueToRValueCast() 1628 if (const Stmt *Cond = S->getCond()) in VisitSwitchStmt()
|
| H A D | SemaOverload.cpp | 1207 NewI->getCond()->Profile(NewID, Context, true); in IsOverload() 1208 OldI->getCond()->Profile(OldID, Context, true); in IsOverload() 6369 if (!EIA->getCond()->EvaluateWithSubstitution( in CheckEnableIf() 6405 << DIA->getParent() << DIA->getCond()->getSourceRange(); in diagnoseDiagnoseIfAttrsWith() 6413 << DIA->getParent() << DIA->getCond()->getSourceRange(); in diagnoseDiagnoseIfAttrsWith() 6430 if (!DIA->getCond()->EvaluateWithSubstitution( in diagnoseArgDependentDiagnoseIfAttrs() 9041 (*Cand1A)->getCond()->Profile(Cand1ID, S.getASTContext(), true); in compareEnableIfAttrs() 9042 (*Cand2A)->getCond()->Profile(Cand2ID, S.getASTContext(), true); in compareEnableIfAttrs() 9545 if (!EnableIf->getCond()->EvaluateAsBooleanCondition(AlwaysTrue, Ctx)) in isFunctionAlwaysEnabled() 10322 << Attr->getCond()->getSourceRange() << Attr->getMessage(); in DiagnoseFailedEnableIfAttr() [all …]
|