/external/clang/lib/AST/ |
D | ParentMap.cpp | 60 M[BCO->getCond()] = S; in BuildParentMap() 61 BuildParentMap(M, BCO->getCond(), OV_Opaque); in BuildParentMap() 183 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr() 185 return DirectChild == cast<WhileStmt>(P)->getCond(); in isConsumedExpr() 187 return DirectChild == cast<DoStmt>(P)->getCond(); in isConsumedExpr() 189 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr() 193 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
|
D | StmtPrinter.cpp | 196 PrintExpr(If->getCond()); in PrintRawIfStmt() 236 PrintExpr(Node->getCond()); in VisitSwitchStmt() 255 PrintExpr(Node->getCond()); in VisitWhileStmt() 272 PrintExpr(Node->getCond()); in VisitDoStmt() 285 if (Node->getCond()) { in VisitForStmt() 287 PrintExpr(Node->getCond()); in VisitForStmt() 1035 PrintExpr(Node->getCond()); in VisitConditionalOperator() 1062 PrintExpr(Node->getCond()); in VisitChooseExpr()
|
D | ExprConstant.cpp | 3052 if (!EvaluateInteger(SS->getCond(), Value, Info)) in EvaluateSwitch() 3231 if (!EvaluateCond(Info, IS->getConditionVariable(), IS->getCond(), Cond)) in EvaluateStmt() 3247 if (!EvaluateCond(Info, WS->getConditionVariable(), WS->getCond(), in EvaluateStmt() 3270 if (!EvaluateAsBooleanCondition(DS->getCond(), Continue, Info)) in EvaluateStmt() 3287 if (FS->getCond() && !EvaluateCond(Info, FS->getConditionVariable(), in EvaluateStmt() 3288 FS->getCond(), Continue)) in EvaluateStmt() 3325 if (!EvaluateAsBooleanCondition(FS->getCond(), Continue, Info)) in EvaluateStmt() 3679 if (!EvaluateAsBooleanCondition(E->getCond(), BoolResult, Info)) { in HandleConditionalOperator() 3791 dyn_cast<CallExpr>(E->getCond()->IgnoreParenCasts())) in VisitConditionalOperator() 8388 = dyn_cast<CallExpr>(Exp->getCond()->IgnoreParenCasts())) in CheckICE() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | CoreEngine.cpp | 360 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit() 368 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 385 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 389 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 393 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 402 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 433 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit() 441 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
|
D | BugReporter.cpp | 409 if (allowNestedContexts || cast<ChooseExpr>(Parent)->getCond() == S) in getEnclosingStmtLocation() 418 cast<AbstractConditionalOperator>(Parent)->getCond() == S) in getEnclosingStmtLocation() 433 if (cast<IfStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation() 441 if (cast<WhileStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation() 908 S = cast<AbstractConditionalOperator>(S)->getCond(); in cleanUpLocation() 912 S = cast<ChooseExpr>(S)->getCond(); in cleanUpLocation() 1882 return cast<IfStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1884 return cast<ForStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1886 return cast<WhileStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1888 return cast<DoStmt>(S)->getCond() == Cond; in isConditionForTerminator() [all …]
|
D | BugReporterVisitors.cpp | 1227 Cond = cast<IfStmt>(Term)->getCond(); in VisitTerminator() 1230 Cond = cast<ConditionalOperator>(Term)->getCond(); in VisitTerminator()
|
/external/clang/lib/Analysis/ |
D | CFG.cpp | 1524 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitChooseExpr() 1528 return addStmt(C->getCond()); in VisitChooseExpr() 1589 dyn_cast<BinaryOperator>(C->getCond()->IgnoreParens())) in VisitConditionalOperator() 1597 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitConditionalOperator() 1601 Expr *condExpr = C->getCond(); in VisitConditionalOperator() 1831 dyn_cast<BinaryOperator>(I->getCond()->IgnoreParens())) in VisitIfStmt() 1842 const TryResult &KnownVal = tryEvaluateBool(I->getCond()); in VisitIfStmt() 1851 CFGBlock *LastBlock = addStmt(I->getCond()); in VisitIfStmt() 2047 Expr *C = F->getCond(); in VisitForStmt() 2364 Expr *C = W->getCond(); in VisitWhileStmt() [all …]
|
D | ThreadSafety.cpp | 428 unsigned Sz = buildSExpr(CE->getCond(), CallCtx); in buildSExpr() 435 unsigned Sz = buildSExpr(CE->getCond(), CallCtx); in buildSExpr()
|
/external/clang/lib/ARCMigrate/ |
D | TransEmptyStatementsAndDealloc.cpp | 101 Expr *condE = S->getCond(); in VisitIfStmt() 115 Expr *condE = S->getCond(); in VisitWhileStmt() 125 Expr *condE = S->getCond(); in VisitDoStmt()
|
/external/clang/include/clang/AST/ |
D | EvaluatedExprVisitor.h | 53 if (E->getCond()->isValueDependent()) in VisitChooseExpr()
|
D | StmtCXX.h | 154 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond() function 165 const Expr *getCond() const { in getCond() function
|
D | Stmt.h | 875 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function 882 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function 948 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function 952 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function 1033 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function 1034 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function 1078 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function 1079 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function 1143 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function 1148 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
|
D | Expr.h | 3130 Expr *getCond() const; 3186 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function 3201 return getCond()->getLocStart(); in getLocStart() 3269 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function 3302 inline Expr *AbstractConditionalOperator::getCond() const { in getCond() function 3304 return co->getCond(); in getCond() 3305 return cast<BinaryConditionalOperator>(this)->getCond(); in getCond() 3510 return getCond()->isTypeDependent() || getCond()->isValueDependent(); in isConditionDependent() 3519 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
|
/external/clang/lib/CodeGen/ |
D | CGStmt.cpp | 437 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant)) { in EmitIfStmt() 462 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock); in EmitIfStmt() 520 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitWhileStmt() 594 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitDoStmt() 640 if (S.getCond()) { in EmitForStmt() 658 BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitForStmt() 739 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitCXXForRangeStmt() 1251 if (ConstantFoldsToSimpleInteger(S.getCond(), ConstantCondValue)) { in EmitSwitchStmt() 1275 llvm::Value *CondV = EmitScalarExpr(S.getCond()); in EmitSwitchStmt()
|
D | CGExprComplex.cpp | 751 CGF.EmitBranchOnBoolExpr(E->getCond(), LHSBlock, RHSBlock); in VisitAbstractConditionalOperator()
|
/external/chromium_org/v8/tools/gcmole/ |
D | gcmole.cc | 646 Environment after_cond = env.ApplyEffect(VisitExpr(expr->getCond(), env)); in DECL_VISIT_EXPR() 1026 block.Loop(stmt->getCond(), stmt->getBody()); in DECL_VISIT_STMT() 1034 block.Loop(stmt->getBody(), stmt->getCond()); in DECL_VISIT_STMT() 1042 block.Loop(stmt->getCond(), in DECL_VISIT_STMT() 1050 Environment cond_out = VisitStmt(stmt->getCond(), env); in DECL_VISIT_STMT() 1058 block.Seq(stmt->getCond(), stmt->getBody()); in DECL_VISIT_STMT()
|
/external/v8/tools/gcmole/ |
D | gcmole.cc | 648 Environment after_cond = env.ApplyEffect(VisitExpr(expr->getCond(), env)); in DECL_VISIT_EXPR() 1028 block.Loop(stmt->getCond(), stmt->getBody()); in DECL_VISIT_STMT() 1036 block.Loop(stmt->getBody(), stmt->getCond()); in DECL_VISIT_STMT() 1044 block.Loop(stmt->getCond(), in DECL_VISIT_STMT() 1052 Environment cond_out = VisitStmt(stmt->getCond(), env); in DECL_VISIT_STMT() 1060 block.Seq(stmt->getCond(), stmt->getBody()); in DECL_VISIT_STMT()
|
/external/clang/lib/Sema/ |
D | AnalysisBasedWarnings.cpp | 532 Range = IS->getCond()->getSourceRange(); in DiagUninitUse() 542 Range = CO->getCond()->getSourceRange(); in DiagUninitUse() 571 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 578 Range = cast<ForStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 590 Range = cast<DoStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 979 const Expr *Cond = cast<DoStmt>(S)->getCond(); in isInLoop()
|
D | TreeTransform.h | 5382 Cond = getDerived().TransformExpr(S->getCond()); in TransformIfStmt() 5388 if (S->getCond()) { in TransformIfStmt() 5399 if (!S->getConditionVariable() && S->getCond() && !FullCond.get()) in TransformIfStmt() 5413 FullCond.get() == S->getCond() && in TransformIfStmt() 5439 Cond = getDerived().TransformExpr(S->getCond()); in TransformSwitchStmt() 5477 Cond = getDerived().TransformExpr(S->getCond()); in TransformWhileStmt() 5482 if (S->getCond()) { in TransformWhileStmt() 5493 if (!S->getConditionVariable() && S->getCond() && !FullCond.get()) in TransformWhileStmt() 5502 FullCond.get() == S->getCond() && in TransformWhileStmt() 5520 ExprResult Cond = getDerived().TransformExpr(S->getCond()); in TransformDoStmt() [all …]
|
D | SemaStmt.cpp | 676 Expr *CondExpr = SS->getCond(); in ActOnFinishSwitchStmt() 1261 Visit(E->getCond()); in VisitConditionalOperator() 1337 Visit(CO->getCond()); in CheckLValueToRValueCast()
|
D | SemaChecking.cpp | 4468 if (CO->getCond()->EvaluateAsBooleanCondition(CondResult, C)) in GetExprRange() 5401 AnalyzeImplicitConversions(S, E->getCond(), CC); in CheckConditionalOperator() 5958 Visit(CO->getCond()); in VisitAbstractConditionalOperator() 5962 if (Eval.evaluate(CO->getCond(), Result)) in VisitAbstractConditionalOperator() 6829 StmtLoc = WS->getCond()->getSourceRange().getEnd(); in DiagnoseEmptyLoopBody() 7096 if (ACO->getCond()->EvaluateAsBooleanCondition(Result, Ctx)) { in FindTypeTagExpr()
|
/external/clang/lib/Serialization/ |
D | ASTWriterStmt.cpp | 123 Writer.AddStmt(S->getCond()); in VisitIfStmt() 134 Writer.AddStmt(S->getCond()); in VisitSwitchStmt() 147 Writer.AddStmt(S->getCond()); in VisitWhileStmt() 155 Writer.AddStmt(S->getCond()); in VisitDoStmt() 166 Writer.AddStmt(S->getCond()); in VisitForStmt() 619 Writer.AddStmt(E->getCond()); in VisitConditionalOperator() 632 Writer.AddStmt(E->getCond()); in VisitBinaryConditionalOperator() 771 Writer.AddStmt(E->getCond()); in VisitChooseExpr() 1108 Writer.AddStmt(S->getCond()); in VisitCXXForRangeStmt()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | IdempotentOperationChecker.cpp | 685 return CanVary(cast<AbstractConditionalOperator>(Ex)->getCond(), AC); in CanVary()
|
D | CheckSecuritySyntaxOnly.cpp | 214 const Expr *condition = FS->getCond(); in checkLoopConditionForFloat()
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 2349 const Expr *const Condition = Node.getCond(); in AST_POLYMORPHIC_MATCHER_P()
|