Lines Matching refs:CondExpr
472 Expr *CondExpr = in ActOnCaseExpr() local
474 if (!CondExpr) in ActOnCaseExpr()
476 QualType CondType = CondExpr->getType(); in ActOnCaseExpr()
898 Expr *CondExpr = Cond.get().second; in ActOnIfStmt() local
899 assert((CondExpr || ConstevalOrNegatedConsteval) && in ActOnIfStmt()
902 if (CondExpr && (getLangOpts().C99 || getLangOpts().CPlusPlus) && in ActOnIfStmt()
903 !Diags.isIgnored(diag::warn_comma_operator, CondExpr->getExprLoc())) in ActOnIfStmt()
904 CommaVisitor(*this).Visit(CondExpr); in ActOnIfStmt()
1102 Expr *CondExpr = Cond.get().second; in ActOnStartOfSwitchStmt() local
1103 assert((Cond.isInvalid() || CondExpr) && "switch with no condition"); in ActOnStartOfSwitchStmt()
1105 if (CondExpr && !CondExpr->isTypeDependent()) { in ActOnStartOfSwitchStmt()
1110 if (!CondExpr->getType()->isIntegralOrEnumerationType()) in ActOnStartOfSwitchStmt()
1112 if (CondExpr->isKnownToHaveBooleanValue()) { in ActOnStartOfSwitchStmt()
1117 << CondExpr->getSourceRange(); in ActOnStartOfSwitchStmt()
1123 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr, in ActOnStartOfSwitchStmt()
1234 Expr *CondExpr = SS->getCond(); in ActOnFinishSwitchStmt() local
1235 if (!CondExpr) return StmtError(); in ActOnFinishSwitchStmt()
1237 QualType CondType = CondExpr->getType(); in ActOnFinishSwitchStmt()
1246 const Expr *CondExprBeforePromotion = CondExpr; in ActOnFinishSwitchStmt()
1253 = CondExpr->isTypeDependent() || CondExpr->isValueDependent(); in ActOnFinishSwitchStmt()
1346 HasConstantCond = CondExpr->EvaluateAsInt(Result, Context, in ActOnFinishSwitchStmt()
1499 Diag(CondExpr->getExprLoc(), diag::warn_missing_case_for_condition) in ActOnFinishSwitchStmt()
1501 << CondExpr->getSourceRange(); in ActOnFinishSwitchStmt()
1612 auto DB = Diag(CondExpr->getExprLoc(), TheDefaultStmt in ActOnFinishSwitchStmt()
1615 << CondExpr->getSourceRange() << (int)UnhandledNames.size(); in ActOnFinishSwitchStmt()
1628 DiagnoseEmptyStmtBody(CondExpr->getEndLoc(), BodyStmt, in ActOnFinishSwitchStmt()