Home
last modified time | relevance | path

Searched refs:getCond (Results 1 – 25 of 34) sorted by relevance

12

/external/clang/lib/AST/
DParentMap.cpp122 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr()
124 return DirectChild == cast<WhileStmt>(P)->getCond(); in isConsumedExpr()
126 return DirectChild == cast<DoStmt>(P)->getCond(); in isConsumedExpr()
128 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr()
132 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
DStmtPrinter.cpp190 PrintExpr(If->getCond()); in PrintRawIfStmt()
227 PrintExpr(Node->getCond()); in VisitSwitchStmt()
243 PrintExpr(Node->getCond()); in VisitWhileStmt()
260 PrintExpr(Node->getCond()); in VisitDoStmt()
273 if (Node->getCond()) { in VisitForStmt()
275 PrintExpr(Node->getCond()); in VisitForStmt()
932 PrintExpr(Node->getCond()); in VisitConditionalOperator()
959 PrintExpr(Node->getCond()); in VisitChooseExpr()
DExprConstant.cpp2334 if (!EvaluateAsBooleanCondition(E->getCond(), BoolResult, Info)) { in HandleConditionalOperator()
2444 dyn_cast<CallExpr>(E->getCond()->IgnoreParenCasts())) in VisitConditionalOperator()
6743 = dyn_cast<CallExpr>(Exp->getCond()->IgnoreParenCasts())) in CheckICE()
6746 ICEDiag CondResult = CheckICE(Exp->getCond(), Ctx); in CheckICE()
6764 if (Exp->getCond()->EvaluateKnownConstInt(Ctx) == 0) { in CheckICE()
/external/clang/lib/StaticAnalyzer/Core/
DCoreEngine.cpp355 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit()
363 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
380 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
384 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
388 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
397 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
428 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
436 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
DBugReporter.cpp322 if (cast<ChooseExpr>(Parent)->getCond() == S) in getEnclosingStmtLocation()
330 if (cast<AbstractConditionalOperator>(Parent)->getCond() == S) in getEnclosingStmtLocation()
341 if (cast<IfStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation()
349 if (cast<WhileStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation()
812 S = cast<AbstractConditionalOperator>(S)->getCond(); in cleanUpLocation()
816 S = cast<ChooseExpr>(S)->getCond(); in cleanUpLocation()
DBugReporterVisitors.cpp688 Cond = cast<IfStmt>(Term)->getCond(); in VisitTerminator()
691 Cond = cast<ConditionalOperator>(Term)->getCond(); in VisitTerminator()
/external/clang/lib/Analysis/
DCFG.cpp1463 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitChooseExpr()
1467 return addStmt(C->getCond()); in VisitChooseExpr()
1528 dyn_cast<BinaryOperator>(C->getCond()->IgnoreParens())) in VisitConditionalOperator()
1536 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitConditionalOperator()
1540 Expr *condExpr = C->getCond(); in VisitConditionalOperator()
1750 dyn_cast<BinaryOperator>(I->getCond()->IgnoreParens())) in VisitIfStmt()
1761 const TryResult &KnownVal = tryEvaluateBool(I->getCond()); in VisitIfStmt()
1770 Block = addStmt(I->getCond()); in VisitIfStmt()
1966 Expr *C = F->getCond(); in VisitForStmt()
2276 Expr *C = W->getCond(); in VisitWhileStmt()
[all …]
DThreadSafety.cpp412 unsigned Sz = buildSExpr(CE->getCond(), CallCtx); in buildSExpr()
419 unsigned Sz = buildSExpr(CE->getCond(), CallCtx); in buildSExpr()
/external/clang/lib/ARCMigrate/
DTransEmptyStatementsAndDealloc.cpp101 Expr *condE = S->getCond(); in VisitIfStmt()
115 Expr *condE = S->getCond(); in VisitWhileStmt()
125 Expr *condE = S->getCond(); in VisitDoStmt()
/external/clang/lib/CodeGen/
DCGStmt.cpp386 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant)) { in EmitIfStmt()
411 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock); in EmitIfStmt()
469 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitWhileStmt()
543 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitDoStmt()
589 if (S.getCond()) { in EmitForStmt()
607 BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitForStmt()
688 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitCXXForRangeStmt()
1173 if (ConstantFoldsToSimpleInteger(S.getCond(), ConstantCondValue)) { in EmitSwitchStmt()
1197 llvm::Value *CondV = EmitScalarExpr(S.getCond()); in EmitSwitchStmt()
DCGExprComplex.cpp706 CGF.EmitBranchOnBoolExpr(E->getCond(), LHSBlock, RHSBlock); in VisitAbstractConditionalOperator()
DCodeGenFunction.cpp729 EmitBranchOnBoolExpr(CondOp->getCond(), LHSBlock, RHSBlock); in EmitBranchOnBoolExpr()
/external/clang/include/clang/AST/
DStmt.h877 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
884 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
950 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
954 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
1037 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
1038 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
1081 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
1082 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
1147 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
1152 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
DStmtCXX.h155 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond() function
166 const Expr *getCond() const { in getCond() function
DExpr.h2984 Expr *getCond() const;
3041 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
3056 return SourceRange(getCond()->getLocStart(), getRHS()->getLocEnd()); in getSourceRange()
3121 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
3151 inline Expr *AbstractConditionalOperator::getCond() const { in getCond() function
3153 return co->getCond(); in getCond()
3154 return cast<BinaryConditionalOperator>(this)->getCond(); in getCond()
3362 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
/external/v8/tools/gcmole/
Dgcmole.cc648 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/Serialization/
DASTWriterStmt.cpp122 Writer.AddStmt(S->getCond()); in VisitIfStmt()
133 Writer.AddStmt(S->getCond()); in VisitSwitchStmt()
146 Writer.AddStmt(S->getCond()); in VisitWhileStmt()
154 Writer.AddStmt(S->getCond()); in VisitDoStmt()
165 Writer.AddStmt(S->getCond()); in VisitForStmt()
551 Writer.AddStmt(E->getCond()); in VisitConditionalOperator()
564 Writer.AddStmt(E->getCond()); in VisitBinaryConditionalOperator()
702 Writer.AddStmt(E->getCond()); in VisitChooseExpr()
1037 Writer.AddStmt(S->getCond()); in VisitCXXForRangeStmt()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp529 Range = IS->getCond()->getSourceRange(); in DiagUninitUse()
539 Range = CO->getCond()->getSourceRange(); in DiagUninitUse()
568 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
575 Range = cast<ForStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
587 Range = cast<DoStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
DTreeTransform.h5220 Cond = getDerived().TransformExpr(S->getCond()); in TransformIfStmt()
5226 if (S->getCond()) { in TransformIfStmt()
5237 if (!S->getConditionVariable() && S->getCond() && !FullCond.get()) in TransformIfStmt()
5251 FullCond.get() == S->getCond() && in TransformIfStmt()
5277 Cond = getDerived().TransformExpr(S->getCond()); in TransformSwitchStmt()
5315 Cond = getDerived().TransformExpr(S->getCond()); in TransformWhileStmt()
5320 if (S->getCond()) { in TransformWhileStmt()
5331 if (!S->getConditionVariable() && S->getCond() && !FullCond.get()) in TransformWhileStmt()
5340 FullCond.get() == S->getCond() && in TransformWhileStmt()
5358 ExprResult Cond = getDerived().TransformExpr(S->getCond()); in TransformDoStmt()
[all …]
DSemaStmt.cpp628 Expr *CondExpr = SS->getCond(); in ActOnFinishSwitchStmt()
1213 Visit(E->getCond()); in VisitConditionalOperator()
1288 Visit(CO->getCond()); in CheckLValueToRValueCast()
DSemaChecking.cpp4007 if (CO->getCond()->EvaluateAsBooleanCondition(CondResult, C)) in GetExprRange()
4815 AnalyzeImplicitConversions(S, E->getCond(), CC); in CheckConditionalOperator()
5631 StmtLoc = WS->getCond()->getSourceRange().getEnd(); in DiagnoseEmptyLoopBody()
5898 if (ACO->getCond()->EvaluateAsBooleanCondition(Result, Ctx)) { in FindTypeTagExpr()
/external/clang/lib/StaticAnalyzer/Checkers/
DIdempotentOperationChecker.cpp698 return CanVary(cast<AbstractConditionalOperator>(Ex)->getCond(), AC); in CanVary()
DCheckSecuritySyntaxOnly.cpp221 const Expr *condition = FS->getCond(); in checkLoopConditionForFloat()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h1825 const Expr *const Condition = Node.getCond(); in AST_POLYMORPHIC_MATCHER_P()
/external/clang/tools/libclang/
DCIndex.cpp1992 AddStmt(FS->getCond()); in VisitForStmt()
2002 AddStmt(If->getCond()); in VisitIfStmt()
2063 AddStmt(S->getCond()); in VisitSwitchStmt()
2069 AddStmt(W->getCond()); in VisitWhileStmt()

12