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

12

/external/clang/lib/AST/
H A DParentMap.cpp122 return DirectChild == cast<ForStmt>(P)->getCond();
124 return DirectChild == cast<WhileStmt>(P)->getCond();
126 return DirectChild == cast<DoStmt>(P)->getCond();
128 return DirectChild == cast<IfStmt>(P)->getCond();
132 return DirectChild == cast<SwitchStmt>(P)->getCond();
H A DStmtPrinter.cpp190 PrintExpr(If->getCond());
227 PrintExpr(Node->getCond());
243 PrintExpr(Node->getCond());
260 PrintExpr(Node->getCond());
273 if (Node->getCond()) {
275 PrintExpr(Node->getCond());
932 PrintExpr(Node->getCond());
959 PrintExpr(Node->getCond());
H A DExprConstant.cpp2334 if (!EvaluateAsBooleanCondition(E->getCond(), BoolResult, Info)) {
2444 dyn_cast<CallExpr>(E->getCond()->IgnoreParenCasts()))
6743 = dyn_cast<CallExpr>(Exp->getCond()->IgnoreParenCasts()))
6746 ICEDiag CondResult = CheckICE(Exp->getCond(), Ctx);
6764 if (Exp->getCond()->EvaluateKnownConstInt(Ctx) == 0) {
/external/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp355 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(),
363 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred);
380 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred);
384 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred);
388 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred);
397 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred);
428 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(),
436 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred);
H A DBugReporter.cpp322 if (cast<ChooseExpr>(Parent)->getCond() == S)
330 if (cast<AbstractConditionalOperator>(Parent)->getCond() == S)
341 if (cast<IfStmt>(Parent)->getCond() != S)
349 if (cast<WhileStmt>(Parent)->getCond() != S)
812 S = cast<AbstractConditionalOperator>(S)->getCond();
816 S = cast<ChooseExpr>(S)->getCond();
H A DBugReporterVisitors.cpp688 Cond = cast<IfStmt>(Term)->getCond();
691 Cond = cast<ConditionalOperator>(Term)->getCond();
/external/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp101 Expr *condE = S->getCond();
115 Expr *condE = S->getCond();
125 Expr *condE = S->getCond();
/external/clang/lib/Analysis/
H A DCFG.cpp1463 const TryResult& KnownVal = tryEvaluateBool(C->getCond());
1467 return addStmt(C->getCond());
1528 dyn_cast<BinaryOperator>(C->getCond()->IgnoreParens()))
1536 const TryResult& KnownVal = tryEvaluateBool(C->getCond());
1540 Expr *condExpr = C->getCond();
1750 dyn_cast<BinaryOperator>(I->getCond()->IgnoreParens()))
1761 const TryResult &KnownVal = tryEvaluateBool(I->getCond());
1770 Block = addStmt(I->getCond());
1966 Expr *C = F->getCond();
2276 Expr *C = W->getCond();
[all...]
H A DThreadSafety.cpp412 unsigned Sz = buildSExpr(CE->getCond(), CallCtx);
419 unsigned Sz = buildSExpr(CE->getCond(), CallCtx);
/external/clang/include/clang/AST/
H A DStmtCXX.h155 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } function in class:clang::CXXForRangeStmt
166 const Expr *getCond() const { function in class:clang::CXXForRangeStmt
H A DStmt.h877 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} function in class:clang::IfStmt
884 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } function in class:clang::IfStmt
950 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} function in class:clang::SwitchStmt
954 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]);} function in class:clang::SwitchStmt
1037 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } function in class:clang::WhileStmt
1038 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} function in class:clang::WhileStmt
1081 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } function in class:clang::DoStmt
1082 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} function in class:clang::DoStmt
1147 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } function in class:clang::ForStmt
1152 const Expr *getCond() cons function in class:clang::ForStmt
[all...]
H A DExpr.h2982 // getCond - Return the expression representing the condition for
2984 Expr *getCond() const;
3039 // getCond - Return the expression representing the condition for
3041 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } function in class:clang::StringLiteral::OffsetOfExpr::ConditionalOperator
3056 return SourceRange(getCond()->getLocStart(), getRHS()->getLocEnd());
3119 /// \brief getCond - Return the condition expression; this is defined
3121 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } function in class:clang::StringLiteral::OffsetOfExpr::BinaryConditionalOperator
3151 inline Expr *AbstractConditionalOperator::getCond() const { function in class:clang::StringLiteral::OffsetOfExpr::AbstractConditionalOperator
3153 return co->getCond();
3154 return cast<BinaryConditionalOperator>(this)->getCond();
3362 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } function in class:clang::StringLiteral::OffsetOfExpr::ChooseExpr
[all...]
/external/clang/lib/CodeGen/
H A DCGStmt.cpp386 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant)) {
411 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock);
469 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond());
543 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond());
589 if (S.getCond()) {
607 BoolCondVal = EvaluateExprAsBool(S.getCond());
688 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond());
1173 if (ConstantFoldsToSimpleInteger(S.getCond(), ConstantCondValue)) {
1197 llvm::Value *CondV = EmitScalarExpr(S.getCond());
H A DCGExprComplex.cpp706 CGF.EmitBranchOnBoolExpr(E->getCond(), LHSBlock, RHSBlock);
H A DCGExprAgg.cpp810 CGF.EmitBranchOnBoolExpr(E->getCond(), LHSBlock, RHSBlock);
H A DCodeGenFunction.cpp729 EmitBranchOnBoolExpr(CondOp->getCond(), LHSBlock, RHSBlock);
/external/v8/tools/gcmole/
H A Dgcmole.cc648 Environment after_cond = env.ApplyEffect(VisitExpr(expr->getCond(), env));
1028 block.Loop(stmt->getCond(), stmt->getBody());
1036 block.Loop(stmt->getBody(), stmt->getCond());
1044 block.Loop(stmt->getCond(),
1052 Environment cond_out = VisitStmt(stmt->getCond(), env);
1060 block.Seq(stmt->getCond(), stmt->getBody());
/external/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp529 Range = IS->getCond()->getSourceRange();
539 Range = CO->getCond()->getSourceRange();
568 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange();
575 Range = cast<ForStmt>(Term)->getCond()->getSourceRange();
587 Range = cast<DoStmt>(Term)->getCond()->getSourceRange();
H A DTreeTransform.h5220 Cond = getDerived().TransformExpr(S->getCond());
5226 if (S->getCond()) {
5237 if (!S->getConditionVariable() && S->getCond() && !FullCond.get())
5251 FullCond.get() == S->getCond() &&
5277 Cond = getDerived().TransformExpr(S->getCond());
5315 Cond = getDerived().TransformExpr(S->getCond());
5320 if (S->getCond()) {
5331 if (!S->getConditionVariable() && S->getCond() && !FullCond.get())
5340 FullCond.get() == S->getCond() &&
5358 ExprResult Cond = getDerived().TransformExpr(S->getCond());
[all...]
H A DSemaStmt.cpp628 Expr *CondExpr = SS->getCond();
1213 Visit(E->getCond());
1288 Visit(CO->getCond());
/external/clang/lib/Serialization/
H A DASTWriterStmt.cpp122 Writer.AddStmt(S->getCond());
133 Writer.AddStmt(S->getCond());
146 Writer.AddStmt(S->getCond());
154 Writer.AddStmt(S->getCond());
165 Writer.AddStmt(S->getCond());
551 Writer.AddStmt(E->getCond());
564 Writer.AddStmt(E->getCond());
702 Writer.AddStmt(E->getCond());
1037 Writer.AddStmt(S->getCond());
/external/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSecuritySyntaxOnly.cpp221 const Expr *condition = FS->getCond();
H A DIdempotentOperationChecker.cpp698 return CanVary(cast<AbstractConditionalOperator>(Ex)->getCond(), AC);
/external/clang/include/clang/ASTMatchers/
H A DASTMatchers.h1825 const Expr *const Condition = Node.getCond();
/external/clang/tools/libclang/
H A DCIndex.cpp1992 AddStmt(FS->getCond());
2002 AddStmt(If->getCond());
2063 AddStmt(S->getCond());
2069 AddStmt(W->getCond());

Completed in 403 milliseconds

12