Home
last modified time | relevance | path

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

123

/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A 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()
381 if (!isIdenticalStmt(Ctx, ForStmt1->getCond(), ForStmt2->getCond(), in isIdenticalStmt()
396 if (!isIdenticalStmt(Ctx, DStmt1->getCond(), DStmt2->getCond(), in isIdenticalStmt()
408 if (!isIdenticalStmt(Ctx, WStmt1->getCond(), WStmt2->getCond(), in isIdenticalStmt()
420 if (!isIdenticalStmt(Ctx, IStmt1->getCond(), IStmt2->getCond(), in isIdenticalStmt()
H A DLocalizationChecker.cpp1342 const Expr *Condition = I->getCond()->IgnoreParenImpCasts(); in VisitIfStmt()
1372 const Expr *Condition = C->getCond()->IgnoreParenImpCasts(); in VisitConditionalOperator()
H A DCheckSecuritySyntaxOnly.cpp235 const Expr *condition = FS->getCond(); in checkLoopConditionForFloat()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DParentMap.cpp63 M[BCO->getCond()] = S; in BuildParentMap()
64 BuildParentMap(M, BCO->getCond(), OV_Opaque); in BuildParentMap()
186 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr()
188 return DirectChild == cast<WhileStmt>(P)->getCond(); in isConsumedExpr()
190 return DirectChild == cast<DoStmt>(P)->getCond(); in isConsumedExpr()
192 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr()
196 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
H A DStmtPrinter.cpp248 PrintExpr(If->getCond()); in PrintRawIfStmt()
290 PrintExpr(Node->getCond()); in VisitSwitchStmt()
300 PrintExpr(Node->getCond()); in VisitWhileStmt()
317 PrintExpr(Node->getCond()); in VisitDoStmt()
326 OS << (Node->getCond() ? "; " : ";"); in VisitForStmt()
327 if (Node->getCond()) in VisitForStmt()
328 PrintExpr(Node->getCond()); in VisitForStmt()
1392 PrintExpr(Node->getCond()); in VisitConditionalOperator()
1420 PrintExpr(Node->getCond()); in VisitChooseExpr()
H A DExprConstant.cpp3973 if (!EvaluateInteger(SS->getCond(), Value, Info)) in EvaluateSwitch()
4175 if (!EvaluateCond(Info, WS->getConditionVariable(), WS->getCond(), in EvaluateStmt()
4198 if (!EvaluateAsBooleanCondition(DS->getCond(), Continue, Info)) in EvaluateStmt()
4215 if (FS->getCond() && !EvaluateCond(Info, FS->getConditionVariable(), in EvaluateStmt()
4216 FS->getCond(), Continue)) in EvaluateStmt()
4263 if (!EvaluateAsBooleanCondition(FS->getCond(), Continue, Info)) in EvaluateStmt()
4709 if (!EvaluateAsBooleanCondition(E->getCond(), BoolResult, Info)) { in HandleConditionalOperator()
4836 dyn_cast<CallExpr>(E->getCond()->IgnoreParenCasts())) in VisitConditionalOperator()
11496 = dyn_cast<CallExpr>(Exp->getCond()->IgnoreParenCasts())) in CheckICE()
11499 ICEDiag CondResult = CheckICE(Exp->getCond(), Ctx); in CheckICE()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp34 return cast<ForStmt>(LoopStmt)->getCond(); in getLoopCondition()
36 return cast<WhileStmt>(LoopStmt)->getCond(); in getLoopCondition()
38 return cast<DoStmt>(LoopStmt)->getCond(); in getLoopCondition()
H A DCoreEngine.cpp300 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit()
308 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
324 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
328 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
332 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
341 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
371 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
379 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
H A DBugReporter.cpp492 if (cast<IfStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation()
500 if (cast<WhileStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation()
1289 return cast<IfStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1291 return cast<ForStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1293 return cast<WhileStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1295 return cast<DoStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1297 return cast<ChooseExpr>(S)->getCond() == Cond; in isConditionForTerminator()
1301 return cast<SwitchStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1303 return cast<BinaryConditionalOperator>(S)->getCond() == Cond; in isConditionForTerminator()
1306 return CO->getCond() == Cond || in isConditionForTerminator()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCodeGenPGO.cpp488 CountMap[S->getCond()] = CondCount; in VisitWhileStmt()
489 Visit(S->getCond()); in VisitWhileStmt()
509 CountMap[S->getCond()] = CondCount; in VisitDoStmt()
510 Visit(S->getCond()); in VisitDoStmt()
542 if (S->getCond()) { in VisitForStmt()
544 Visit(S->getCond()); in VisitForStmt()
578 CountMap[S->getCond()] = CondCount; in VisitCXXForRangeStmt()
579 Visit(S->getCond()); in VisitCXXForRangeStmt()
605 Visit(S->getCond()); in VisitSwitchStmt()
637 Visit(S->getCond()); in VisitIfStmt()
[all …]
H A DCGStmt.cpp603 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt()
614 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant, in EmitIfStmt()
643 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock, in EmitIfStmt()
711 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitWhileStmt()
797 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitDoStmt()
813 createProfileWeightsForLoop(S.getCond(), BackedgeCount)); in EmitDoStmt()
862 if (S.getCond()) { in EmitForStmt()
880 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitForStmt()
961 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitCXXForRangeStmt()
1607 llvm::Value *CondV = EmitScalarExpr(S.getCond()); in EmitSwitchStmt()
[all …]
H A DCoverageMappingGen.cpp966 propagateCounts(CondCount, S->getCond()); in VisitWhileStmt()
970 auto Gap = findGapAreaBetween(S->getCond(), S->getBody()); in VisitWhileStmt()
993 propagateCounts(CondCount, S->getCond()); in VisitDoStmt()
1031 if (const Expr *Cond = S->getCond()) { in VisitForStmt()
1107 Visit(S->getCond()); in VisitSwitchStmt()
1177 extendRegion(S->getCond()); in VisitIfStmt()
1184 propagateCounts(ParentCount, S->getCond()); in VisitIfStmt()
1187 auto Gap = findGapAreaBetween(S->getCond(), S->getThen()); in VisitIfStmt()
1234 Visit(E->getCond()); in VisitAbstractConditionalOperator()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp100 Expr *condE = S->getCond(); in VisitIfStmt()
112 Expr *condE = S->getCond(); in VisitWhileStmt()
122 Expr *condE = S->getCond(); in VisitDoStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DCFG.cpp2534 return addStmt(C->getCond()); in VisitChooseExpr()
2614 Expr *condExpr = C->getCond(); in VisitConditionalOperator()
3204 Expr *C = F->getCond(); in VisitForStmt()
3540 Expr *C = W->getCond(); in VisitWhileStmt()
3685 if (Stmt *C = D->getCond()) { in VisitDoStmt()
4198 if (Expr *C = S->getCond()) { in VisitCXXForRangeStmt()
4215 if (S->getCond()) in VisitCXXForRangeStmt()
4906 if (Stmt *C = I->getCond()) in VisitIfStmt()
4925 if (Stmt *C = F->getCond()) in VisitForStmt()
4935 if (Stmt *C = W->getCond()) in VisitWhileStmt()
[all …]
H A DLiveVariables.cpp335 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<IfStmt>(S)->getCond()); in Visit()
342 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<WhileStmt>(S)->getCond()); in Visit()
349 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<DoStmt>(S)->getCond()); in Visit()
356 AddLiveStmt(val.liveStmts, LV.SSetFact, cast<ForStmt>(S)->getCond()); in Visit()
H A DReachableCode.cpp54 const Expr *Cond = DS->getCond()->IgnoreParenCasts(); in isTrivialDoWhile()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DStmt.h1762 Expr *getCond() { in getCond() function
1766 const Expr *getCond() const { in getCond() function
1946 Expr *getCond() { in getCond() function
1950 const Expr *getCond() const { in getCond() function
2047 : reinterpret_cast<const Stmt *>(getCond())->getEndLoc(); in getEndLoc()
2112 Expr *getCond() { in getCond() function
2116 const Expr *getCond() const { in getCond() function
2203 Expr *getCond() { return reinterpret_cast<Expr *>(SubExprs[COND]); } in getCond() function
2204 const Expr *getCond() const { in getCond() function
2269 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
[all …]
H A DEvaluatedExprVisitor.h57 if (E->getCond()->isValueDependent()) in VisitChooseExpr()
H A DStmtCXX.h159 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond() function
173 const Expr *getCond() const { in getCond() function
H A DExpr.h3565 Expr *getCond() const;
3621 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
3636 return getCond()->getBeginLoc(); in getBeginLoc()
3707 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
3743 inline Expr *AbstractConditionalOperator::getCond() const { in getCond() function
3745 return co->getCond(); in getCond()
3746 return cast<BinaryConditionalOperator>(this)->getCond(); in getCond()
4018 return getCond()->isTypeDependent() || getCond()->isValueDependent(); in isConditionDependent()
4027 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTWriterStmt.cpp144 Record.AddStmt(S->getCond()); in VisitIfStmt()
169 Record.AddStmt(S->getCond()); in VisitSwitchStmt()
190 Record.AddStmt(S->getCond()); in VisitWhileStmt()
201 Record.AddStmt(S->getCond()); in VisitDoStmt()
212 Record.AddStmt(S->getCond()); in VisitForStmt()
750 Record.AddStmt(E->getCond()); in VisitConditionalOperator()
763 Record.AddStmt(E->getCond()); in VisitBinaryConditionalOperator()
930 Record.AddStmt(E->getCond()); in VisitChooseExpr()
1286 Record.AddStmt(S->getCond()); in VisitCXXForRangeStmt()
1899 Record.AddStmt(D->getCond()); in VisitOMPLoopDirective()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp854 Range = IS->getCond()->getSourceRange(); in DiagUninitUse()
864 Range = CO->getCond()->getSourceRange(); in DiagUninitUse()
893 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
900 Range = cast<ForStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
923 Range = cast<DoStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
1318 if (!cast<DoStmt>(S)->getCond()->EvaluateAsInt(Result, Ctx)) in isInLoop()
H A DTreeTransform.h6675 S->getIfLoc(), S->getConditionVariable(), S->getCond(), in TransformIfStmt()
6752 S->getWhileLoc(), S->getConditionVariable(), S->getCond(), in TransformWhileStmt()
6779 ExprResult Cond = getDerived().TransformExpr(S->getCond()); in TransformDoStmt()
6784 Cond.get() == S->getCond() && in TransformDoStmt()
6811 S->getForLoc(), S->getConditionVariable(), S->getCond(), in TransformForStmt()
7463 ExprResult Cond = getDerived().TransformExpr(S->getCond()); in TransformCXXForRangeStmt()
7489 Cond.get() != S->getCond() || in TransformCXXForRangeStmt()
9519 ExprResult Cond = getDerived().TransformExpr(E->getCond()); in TransformConditionalOperator()
9532 Cond.get() == E->getCond() && in TransformConditionalOperator()
9855 ExprResult Cond = getDerived().TransformExpr(E->getCond()); in TransformChooseExpr()
[all …]
H A DSemaStmt.cpp406 getCurFunction()->SwitchStack.back().getPointer()->getCond(); in ActOnCaseExpr()
837 Expr *CondExpr = SS->getCond(); in ActOnFinishSwitchStmt()
1393 Visit(E->getCond()); in VisitConditionalOperator()
1472 Visit(CO->getCond()); in CheckLValueToRValueCast()
1628 if (const Stmt *Cond = S->getCond()) in VisitSwitchStmt()
H A DSemaOverload.cpp1207 NewI->getCond()->Profile(NewID, Context, true); in IsOverload()
1208 OldI->getCond()->Profile(OldID, Context, true); in IsOverload()
6369 if (!EIA->getCond()->EvaluateWithSubstitution( in CheckEnableIf()
6405 << DIA->getParent() << DIA->getCond()->getSourceRange(); in diagnoseDiagnoseIfAttrsWith()
6413 << DIA->getParent() << DIA->getCond()->getSourceRange(); in diagnoseDiagnoseIfAttrsWith()
6430 if (!DIA->getCond()->EvaluateWithSubstitution( in diagnoseArgDependentDiagnoseIfAttrs()
9041 (*Cand1A)->getCond()->Profile(Cand1ID, S.getASTContext(), true); in compareEnableIfAttrs()
9042 (*Cand2A)->getCond()->Profile(Cand2ID, S.getASTContext(), true); in compareEnableIfAttrs()
9545 if (!EnableIf->getCond()->EvaluateAsBooleanCondition(AlwaysTrue, Ctx)) in isFunctionAlwaysEnabled()
10322 << Attr->getCond()->getSourceRange() << Attr->getMessage(); in DiagnoseFailedEnableIfAttr()
[all …]

123