Lines Matching refs:CondExpr
471 Expr *CondExpr = in ActOnCaseExpr() local
473 if (!CondExpr) in ActOnCaseExpr()
475 QualType CondType = CondExpr->getType(); in ActOnCaseExpr()
891 Expr *CondExpr = Cond.get().second; in ActOnIfStmt() local
892 assert((CondExpr || ConstevalOrNegatedConsteval) && in ActOnIfStmt()
895 if (CondExpr && (getLangOpts().C99 || getLangOpts().CPlusPlus) && in ActOnIfStmt()
896 !Diags.isIgnored(diag::warn_comma_operator, CondExpr->getExprLoc())) in ActOnIfStmt()
897 CommaVisitor(*this).Visit(CondExpr); in ActOnIfStmt()
1094 Expr *CondExpr = Cond.get().second; in ActOnStartOfSwitchStmt() local
1095 assert((Cond.isInvalid() || CondExpr) && "switch with no condition"); in ActOnStartOfSwitchStmt()
1097 if (CondExpr && !CondExpr->isTypeDependent()) { in ActOnStartOfSwitchStmt()
1102 if (!CondExpr->getType()->isIntegralOrEnumerationType()) in ActOnStartOfSwitchStmt()
1104 if (CondExpr->isKnownToHaveBooleanValue()) { in ActOnStartOfSwitchStmt()
1109 << CondExpr->getSourceRange(); in ActOnStartOfSwitchStmt()
1115 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr, in ActOnStartOfSwitchStmt()
1226 Expr *CondExpr = SS->getCond(); in ActOnFinishSwitchStmt() local
1227 if (!CondExpr) return StmtError(); in ActOnFinishSwitchStmt()
1229 QualType CondType = CondExpr->getType(); in ActOnFinishSwitchStmt()
1238 const Expr *CondExprBeforePromotion = CondExpr; in ActOnFinishSwitchStmt()
1245 = CondExpr->isTypeDependent() || CondExpr->isValueDependent(); in ActOnFinishSwitchStmt()
1335 HasConstantCond = CondExpr->EvaluateAsInt(Result, Context, in ActOnFinishSwitchStmt()
1487 Diag(CondExpr->getExprLoc(), diag::warn_missing_case_for_condition) in ActOnFinishSwitchStmt()
1489 << CondExpr->getSourceRange(); in ActOnFinishSwitchStmt()
1600 auto DB = Diag(CondExpr->getExprLoc(), TheDefaultStmt in ActOnFinishSwitchStmt()
1603 << CondExpr->getSourceRange() << (int)UnhandledNames.size(); in ActOnFinishSwitchStmt()
1616 DiagnoseEmptyStmtBody(CondExpr->getEndLoc(), BodyStmt, in ActOnFinishSwitchStmt()