Home
last modified time | relevance | path

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

123

/external/clang/lib/AST/
DParentMap.cpp60 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()
DStmtPrinter.cpp184 PrintExpr(If->getCond()); in PrintRawIfStmt()
224 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()
1471 PrintExpr(Node->getCond()); in VisitConditionalOperator()
1498 PrintExpr(Node->getCond()); in VisitChooseExpr()
DASTImporter.cpp4697 Expr *ToCondition = Importer.Import(S->getCond()); in VisitIfStmt()
4698 if (!ToCondition && S->getCond()) in VisitIfStmt()
4721 Expr *ToCondition = Importer.Import(S->getCond()); in VisitSwitchStmt()
4722 if (!ToCondition && S->getCond()) in VisitSwitchStmt()
4756 Expr *ToCondition = Importer.Import(S->getCond()); in VisitWhileStmt()
4757 if (!ToCondition && S->getCond()) in VisitWhileStmt()
4773 Expr *ToCondition = Importer.Import(S->getCond()); in VisitDoStmt()
4774 if (!ToCondition && S->getCond()) in VisitDoStmt()
4788 Expr *ToCondition = Importer.Import(S->getCond()); in VisitForStmt()
4789 if (!ToCondition && S->getCond()) in VisitForStmt()
[all …]
DExprConstant.cpp3385 if (!EvaluateInteger(SS->getCond(), Value, Info)) in EvaluateSwitch()
3565 if (!EvaluateCond(Info, IS->getConditionVariable(), IS->getCond(), Cond)) in EvaluateStmt()
3581 if (!EvaluateCond(Info, WS->getConditionVariable(), WS->getCond(), in EvaluateStmt()
3604 if (!EvaluateAsBooleanCondition(DS->getCond(), Continue, Info)) in EvaluateStmt()
3621 if (FS->getCond() && !EvaluateCond(Info, FS->getConditionVariable(), in EvaluateStmt()
3622 FS->getCond(), Continue)) in EvaluateStmt()
3659 if (!EvaluateAsBooleanCondition(FS->getCond(), Continue, Info)) in EvaluateStmt()
4046 if (!EvaluateAsBooleanCondition(E->getCond(), BoolResult, Info)) { in HandleConditionalOperator()
4162 dyn_cast<CallExpr>(E->getCond()->IgnoreParenCasts())) in VisitConditionalOperator()
9363 = dyn_cast<CallExpr>(Exp->getCond()->IgnoreParenCasts())) in CheckICE()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DIdenticalExprChecker.cpp119 …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()
380 if (!isIdenticalStmt(Ctx, ForStmt1->getCond(), ForStmt2->getCond(), in isIdenticalStmt()
395 if (!isIdenticalStmt(Ctx, DStmt1->getCond(), DStmt2->getCond(), in isIdenticalStmt()
407 if (!isIdenticalStmt(Ctx, WStmt1->getCond(), WStmt2->getCond(), in isIdenticalStmt()
419 if (!isIdenticalStmt(Ctx, IStmt1->getCond(), IStmt2->getCond(), in isIdenticalStmt()
DLocalizationChecker.cpp1133 const Expr *Condition = I->getCond()->IgnoreParenImpCasts(); in VisitIfStmt()
1163 const Expr *Condition = C->getCond()->IgnoreParenImpCasts(); in VisitConditionalOperator()
DCheckSecuritySyntaxOnly.cpp224 const Expr *condition = FS->getCond(); in checkLoopConditionForFloat()
/external/clang/lib/StaticAnalyzer/Core/
DLoopWidening.cpp28 return cast<ForStmt>(LoopStmt)->getCond(); in getLoopCondition()
30 return cast<WhileStmt>(LoopStmt)->getCond(); in getLoopCondition()
32 return cast<DoStmt>(LoopStmt)->getCond(); in getLoopCondition()
DCoreEngine.cpp366 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit()
374 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
391 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
395 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
399 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
408 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
439 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
447 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
DBugReporter.cpp445 if (allowNestedContexts || cast<ChooseExpr>(Parent)->getCond() == S) in getEnclosingStmtLocation()
454 cast<AbstractConditionalOperator>(Parent)->getCond() == S) in getEnclosingStmtLocation()
469 if (cast<IfStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation()
477 if (cast<WhileStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation()
938 S = cast<AbstractConditionalOperator>(S)->getCond(); in cleanUpLocation()
942 S = cast<ChooseExpr>(S)->getCond(); in cleanUpLocation()
1913 return cast<IfStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1915 return cast<ForStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1917 return cast<WhileStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1919 return cast<DoStmt>(S)->getCond() == Cond; in isConditionForTerminator()
[all …]
/external/clang/lib/CodeGen/
DCodeGenPGO.cpp343 CountMap[S->getCond()] = CondCount; in VisitWhileStmt()
344 Visit(S->getCond()); in VisitWhileStmt()
364 CountMap[S->getCond()] = CondCount; in VisitDoStmt()
365 Visit(S->getCond()); in VisitDoStmt()
397 if (S->getCond()) { in VisitForStmt()
398 CountMap[S->getCond()] = CondCount; in VisitForStmt()
399 Visit(S->getCond()); in VisitForStmt()
430 CountMap[S->getCond()] = CondCount; in VisitCXXForRangeStmt()
431 Visit(S->getCond()); in VisitCXXForRangeStmt()
455 Visit(S->getCond()); in VisitSwitchStmt()
[all …]
DCGStmt.cpp543 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt()
551 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant)) { in EmitIfStmt()
579 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock, in EmitIfStmt()
644 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitWhileStmt()
661 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody()))); in EmitWhileStmt()
727 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitDoStmt()
743 createProfileWeightsForLoop(S.getCond(), BackedgeCount)); in EmitDoStmt()
789 if (S.getCond()) { in EmitForStmt()
807 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitForStmt()
810 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody()))); in EmitForStmt()
[all …]
DCoverageMappingGen.cpp638 propagateCounts(CondCount, S->getCond()); in VisitWhileStmt()
660 propagateCounts(CondCount, S->getCond()); in VisitDoStmt()
690 if (const Expr *Cond = S->getCond()) { in VisitForStmt()
744 Visit(S->getCond()); in VisitSwitchStmt()
800 extendRegion(S->getCond()); in VisitIfStmt()
807 propagateCounts(ParentCount, S->getCond()); in VisitIfStmt()
843 Visit(E->getCond()); in VisitAbstractConditionalOperator()
DCGStmtOpenMP.cpp1235 CGF.EmitOMPInnerLoop(S, LoopScope.requiresCleanups(), S.getCond(), in EmitOMPSimdDirective()
1350 BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitOMPForOuterLoop()
1390 EmitOMPInnerLoop(S, LoopScope.requiresCleanups(), S.getCond(), S.getInc(), in EmitOMPForOuterLoop()
1558 EmitOMPInnerLoop(S, LoopScope.requiresCleanups(), S.getCond(), in EmitOMPWorksharingLoop()
/external/clang/lib/Analysis/
DCFG.cpp1934 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitChooseExpr()
1938 return addStmt(C->getCond()); in VisitChooseExpr()
2007 dyn_cast<BinaryOperator>(C->getCond()->IgnoreParens())) in VisitConditionalOperator()
2015 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitConditionalOperator()
2019 Expr *condExpr = C->getCond(); in VisitConditionalOperator()
2248 dyn_cast<BinaryOperator>(I->getCond()->IgnoreParens())) in VisitIfStmt()
2259 const TryResult &KnownVal = tryEvaluateBool(I->getCond()); in VisitIfStmt()
2269 CFGBlock *LastBlock = addStmt(I->getCond()); in VisitIfStmt()
2477 Expr *C = F->getCond(); in VisitForStmt()
2795 Expr *C = W->getCond(); in VisitWhileStmt()
[all …]
DReachableCode.cpp54 const Expr *Cond = DS->getCond()->IgnoreParenCasts(); in isTrivialDoWhile()
/external/clang/lib/ARCMigrate/
DTransEmptyStatementsAndDealloc.cpp100 Expr *condE = S->getCond(); in VisitIfStmt()
112 Expr *condE = S->getCond(); in VisitWhileStmt()
122 Expr *condE = S->getCond(); in VisitDoStmt()
/external/clang/include/clang/AST/
DStmt.h901 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
908 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
972 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
976 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
1053 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
1054 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
1098 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
1099 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
1164 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
1169 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
DEvaluatedExprVisitor.h56 if (E->getCond()->isValueDependent()) in VisitChooseExpr()
DStmtCXX.h158 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond() function
169 const Expr *getCond() const { in getCond() function
DExpr.h3214 Expr *getCond() const;
3270 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
3285 return getCond()->getLocStart(); in getLocStart()
3353 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
3386 inline Expr *AbstractConditionalOperator::getCond() const { in getCond() function
3388 return co->getCond(); in getCond()
3389 return cast<BinaryConditionalOperator>(this)->getCond(); in getCond()
3649 return getCond()->isTypeDependent() || getCond()->isValueDependent(); in isConditionDependent()
3658 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
/external/v8/tools/gcmole/
Dgcmole.cc640 Environment after_cond = env.ApplyEffect(VisitExpr(expr->getCond(), env)); in DECL_VISIT_EXPR()
1009 block.Loop(stmt->getCond(), stmt->getBody()); in DECL_VISIT_STMT()
1017 block.Loop(stmt->getBody(), stmt->getCond()); in DECL_VISIT_STMT()
1025 block.Loop(stmt->getCond(), in DECL_VISIT_STMT()
1033 Environment cond_out = VisitStmt(stmt->getCond(), env); in DECL_VISIT_STMT()
1041 block.Seq(stmt->getCond(), stmt->getBody()); in DECL_VISIT_STMT()
/external/clang/lib/Serialization/
DASTWriterStmt.cpp123 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()
647 Writer.AddStmt(E->getCond()); in VisitConditionalOperator()
660 Writer.AddStmt(E->getCond()); in VisitBinaryConditionalOperator()
816 Writer.AddStmt(E->getCond()); in VisitChooseExpr()
1163 Writer.AddStmt(S->getCond()); in VisitCXXForRangeStmt()
2059 Writer.AddStmt(D->getCond()); in VisitOMPLoopDirective()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp738 Range = IS->getCond()->getSourceRange(); in DiagUninitUse()
748 Range = CO->getCond()->getSourceRange(); in DiagUninitUse()
777 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
784 Range = cast<ForStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
807 Range = cast<DoStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
1169 const Expr *Cond = cast<DoStmt>(S)->getCond(); in isInLoop()
DTreeTransform.h6117 Cond = getDerived().TransformExpr(S->getCond()); in TransformIfStmt()
6123 if (S->getCond()) { in TransformIfStmt()
6134 if (!S->getConditionVariable() && S->getCond() && !FullCond.get()) in TransformIfStmt()
6148 FullCond.get() == S->getCond() && in TransformIfStmt()
6174 Cond = getDerived().TransformExpr(S->getCond()); in TransformSwitchStmt()
6212 Cond = getDerived().TransformExpr(S->getCond()); in TransformWhileStmt()
6217 if (S->getCond()) { in TransformWhileStmt()
6229 if (!S->getConditionVariable() && S->getCond() && !FullCond.get()) in TransformWhileStmt()
6238 FullCond.get() == S->getCond() && in TransformWhileStmt()
6256 ExprResult Cond = getDerived().TransformExpr(S->getCond()); in TransformDoStmt()
[all …]

123