Home
last modified time | relevance | path

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

123

/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()
378 if (!isIdenticalStmt(Ctx, ForStmt1->getCond(), ForStmt2->getCond(), in isIdenticalStmt()
393 if (!isIdenticalStmt(Ctx, DStmt1->getCond(), DStmt2->getCond(), in isIdenticalStmt()
405 if (!isIdenticalStmt(Ctx, WStmt1->getCond(), WStmt2->getCond(), in isIdenticalStmt()
417 if (!isIdenticalStmt(Ctx, IStmt1->getCond(), IStmt2->getCond(), in isIdenticalStmt()
DLocalizationChecker.cpp1232 const Expr *Condition = I->getCond()->IgnoreParenImpCasts(); in VisitIfStmt()
1262 const Expr *Condition = C->getCond()->IgnoreParenImpCasts(); in VisitConditionalOperator()
DCheckSecuritySyntaxOnly.cpp224 const Expr *condition = FS->getCond(); in checkLoopConditionForFloat()
/external/clang/lib/AST/
DParentMap.cpp62 M[BCO->getCond()] = S; in BuildParentMap()
63 BuildParentMap(M, BCO->getCond(), OV_Opaque); in BuildParentMap()
185 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr()
187 return DirectChild == cast<WhileStmt>(P)->getCond(); in isConsumedExpr()
189 return DirectChild == cast<DoStmt>(P)->getCond(); in isConsumedExpr()
191 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr()
195 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
DStmtPrinter.cpp185 PrintExpr(If->getCond()); in PrintRawIfStmt()
225 PrintExpr(Node->getCond()); in VisitSwitchStmt()
244 PrintExpr(Node->getCond()); in VisitWhileStmt()
261 PrintExpr(Node->getCond()); in VisitDoStmt()
274 if (Node->getCond()) { in VisitForStmt()
276 PrintExpr(Node->getCond()); in VisitForStmt()
1601 PrintExpr(Node->getCond()); in VisitConditionalOperator()
1628 PrintExpr(Node->getCond()); in VisitChooseExpr()
DASTImporter.cpp4990 Expr *ToCondition = Importer.Import(S->getCond()); in VisitIfStmt()
4991 if (!ToCondition && S->getCond()) in VisitIfStmt()
5019 Expr *ToCondition = Importer.Import(S->getCond()); in VisitSwitchStmt()
5020 if (!ToCondition && S->getCond()) in VisitSwitchStmt()
5054 Expr *ToCondition = Importer.Import(S->getCond()); in VisitWhileStmt()
5055 if (!ToCondition && S->getCond()) in VisitWhileStmt()
5071 Expr *ToCondition = Importer.Import(S->getCond()); in VisitDoStmt()
5072 if (!ToCondition && S->getCond()) in VisitDoStmt()
5086 Expr *ToCondition = Importer.Import(S->getCond()); in VisitForStmt()
5087 if (!ToCondition && S->getCond()) in VisitForStmt()
[all …]
DExprConstant.cpp3496 if (!EvaluateInteger(SS->getCond(), Value, Info)) in EvaluateSwitch()
3681 if (!EvaluateCond(Info, IS->getConditionVariable(), IS->getCond(), Cond)) in EvaluateStmt()
3697 if (!EvaluateCond(Info, WS->getConditionVariable(), WS->getCond(), in EvaluateStmt()
3720 if (!EvaluateAsBooleanCondition(DS->getCond(), Continue, Info)) in EvaluateStmt()
3737 if (FS->getCond() && !EvaluateCond(Info, FS->getConditionVariable(), in EvaluateStmt()
3738 FS->getCond(), Continue)) in EvaluateStmt()
3778 if (!EvaluateAsBooleanCondition(FS->getCond(), Continue, Info)) in EvaluateStmt()
4193 if (!EvaluateAsBooleanCondition(E->getCond(), BoolResult, Info)) { in HandleConditionalOperator()
4309 dyn_cast<CallExpr>(E->getCond()->IgnoreParenCasts())) in VisitConditionalOperator()
9681 = dyn_cast<CallExpr>(Exp->getCond()->IgnoreParenCasts())) in CheckICE()
[all …]
/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.cpp378 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit()
386 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
403 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
407 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
411 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
420 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
451 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
459 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.cpp348 CountMap[S->getCond()] = CondCount; in VisitWhileStmt()
349 Visit(S->getCond()); in VisitWhileStmt()
369 CountMap[S->getCond()] = CondCount; in VisitDoStmt()
370 Visit(S->getCond()); in VisitDoStmt()
402 if (S->getCond()) { in VisitForStmt()
403 CountMap[S->getCond()] = CondCount; in VisitForStmt()
404 Visit(S->getCond()); in VisitForStmt()
436 CountMap[S->getCond()] = CondCount; in VisitCXXForRangeStmt()
437 Visit(S->getCond()); in VisitCXXForRangeStmt()
461 Visit(S->getCond()); in VisitSwitchStmt()
[all …]
DCGStmt.cpp573 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt()
584 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant, in EmitIfStmt()
613 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock, in EmitIfStmt()
691 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitWhileStmt()
708 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody()))); in EmitWhileStmt()
775 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitDoStmt()
791 createProfileWeightsForLoop(S.getCond(), BackedgeCount)); in EmitDoStmt()
839 if (S.getCond()) { in EmitForStmt()
857 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitForStmt()
860 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody()))); in EmitForStmt()
[all …]
DCoverageMappingGen.cpp679 propagateCounts(CondCount, S->getCond()); in VisitWhileStmt()
701 propagateCounts(CondCount, S->getCond()); in VisitDoStmt()
731 if (const Expr *Cond = S->getCond()) { in VisitForStmt()
785 Visit(S->getCond()); in VisitSwitchStmt()
843 extendRegion(S->getCond()); in VisitIfStmt()
850 propagateCounts(ParentCount, S->getCond()); in VisitIfStmt()
891 Visit(E->getCond()); in VisitAbstractConditionalOperator()
DCGStmtOpenMP.cpp1643 CGF.EmitOMPInnerLoop(S, LoopScope.requiresCleanups(), S.getCond(), in EmitOMPSimdDirective()
1694 BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitOMPOuterLoop()
1731 EmitOMPInnerLoop(S, LoopScope.requiresCleanups(), S.getCond(), S.getInc(), in EmitOMPOuterLoop()
2054 EmitOMPInnerLoop(S, LoopScope.requiresCleanups(), S.getCond(), in EmitOMPWorksharingLoop()
2709 EmitOMPInnerLoop(S, LoopScope.requiresCleanups(), S.getCond(), in EmitOMPDistributeLoop()
3567 CGF.EmitOMPInnerLoop(S, LoopScope.requiresCleanups(), S.getCond(), in EmitOMPTaskLoopBasedDirective()
/external/clang/lib/Analysis/
DCFG.cpp1934 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitChooseExpr()
1938 return addStmt(C->getCond()); in VisitChooseExpr()
2008 dyn_cast<BinaryOperator>(C->getCond()->IgnoreParens())) in VisitConditionalOperator()
2016 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitConditionalOperator()
2020 Expr *condExpr = C->getCond(); in VisitConditionalOperator()
2256 dyn_cast<BinaryOperator>(I->getCond()->IgnoreParens())) in VisitIfStmt()
2267 const TryResult &KnownVal = tryEvaluateBool(I->getCond()); in VisitIfStmt()
2277 CFGBlock *LastBlock = addStmt(I->getCond()); in VisitIfStmt()
2491 Expr *C = F->getCond(); in VisitForStmt()
2809 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.h917 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
924 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
994 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
998 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
1075 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
1076 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
1120 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
1121 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
1186 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
1191 const Expr *getCond() const { return reinterpret_cast<Expr*>(SubExprs[COND]);} in getCond() function
DEvaluatedExprVisitor.h56 if (E->getCond()->isValueDependent()) in VisitChooseExpr()
DStmtCXX.h159 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond() function
173 const Expr *getCond() const { in getCond() function
DExpr.h3148 Expr *getCond() const;
3204 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
3219 return getCond()->getLocStart(); in getLocStart()
3287 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
3320 inline Expr *AbstractConditionalOperator::getCond() const { in getCond() function
3322 return co->getCond(); in getCond()
3323 return cast<BinaryConditionalOperator>(this)->getCond(); in getCond()
3583 return getCond()->isTypeDependent() || getCond()->isValueDependent(); in isConditionDependent()
3592 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
/external/v8/tools/gcmole/
Dgcmole.cc672 Environment after_cond = env.ApplyEffect(VisitExpr(expr->getCond(), env)); in DECL_VISIT_EXPR()
1041 block.Loop(stmt->getCond(), stmt->getBody()); in DECL_VISIT_STMT()
1049 block.Loop(stmt->getBody(), stmt->getCond()); in DECL_VISIT_STMT()
1057 block.Loop(stmt->getCond(), in DECL_VISIT_STMT()
1065 Environment cond_out = VisitStmt(stmt->getCond(), env); in DECL_VISIT_STMT()
1073 block.Seq(stmt->getCond(), stmt->getBody()); in DECL_VISIT_STMT()
/external/clang/lib/Serialization/
DASTWriterStmt.cpp134 Record.AddStmt(S->getCond()); in VisitIfStmt()
146 Record.AddStmt(S->getCond()); in VisitSwitchStmt()
159 Record.AddStmt(S->getCond()); in VisitWhileStmt()
167 Record.AddStmt(S->getCond()); in VisitDoStmt()
178 Record.AddStmt(S->getCond()); in VisitForStmt()
661 Record.AddStmt(E->getCond()); in VisitConditionalOperator()
674 Record.AddStmt(E->getCond()); in VisitBinaryConditionalOperator()
828 Record.AddStmt(E->getCond()); in VisitChooseExpr()
1176 Record.AddStmt(S->getCond()); in VisitCXXForRangeStmt()
2184 Record.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()
1189 const Expr *Cond = cast<DoStmt>(S)->getCond(); in isInLoop()
DTreeTransform.h6276 S->getIfLoc(), S->getConditionVariable(), S->getCond(), in TransformIfStmt()
6307 Cond.get() == std::make_pair(S->getConditionVariable(), S->getCond()) && in TransformIfStmt()
6327 S->getSwitchLoc(), S->getConditionVariable(), S->getCond(), in TransformSwitchStmt()
6354 S->getWhileLoc(), S->getConditionVariable(), S->getCond(), in TransformWhileStmt()
6365 Cond.get() == std::make_pair(S->getConditionVariable(), S->getCond()) && in TransformWhileStmt()
6381 ExprResult Cond = getDerived().TransformExpr(S->getCond()); in TransformDoStmt()
6386 Cond.get() == S->getCond() && in TransformDoStmt()
6410 S->getForLoc(), S->getConditionVariable(), S->getCond(), in TransformForStmt()
6431 Cond.get() == std::make_pair(S->getConditionVariable(), S->getCond()) && in TransformForStmt()
6928 ExprResult Cond = getDerived().TransformExpr(S->getCond()); in TransformCXXForRangeStmt()
[all …]

123