Lines Matching refs:CondExpr

477   Expr *CondExpr =  in ActOnCaseExpr()  local
479 if (!CondExpr) in ActOnCaseExpr()
481 QualType CondType = CondExpr->getType(); in ActOnCaseExpr()
921 Expr *CondExpr = Cond.get().second; in ActOnIfStmt() local
922 assert((CondExpr || ConstevalOrNegatedConsteval) && in ActOnIfStmt()
925 if (CondExpr && (getLangOpts().C99 || getLangOpts().CPlusPlus) && in ActOnIfStmt()
926 !Diags.isIgnored(diag::warn_comma_operator, CondExpr->getExprLoc())) in ActOnIfStmt()
927 CommaVisitor(*this).Visit(CondExpr); in ActOnIfStmt()
1125 Expr *CondExpr = Cond.get().second; in ActOnStartOfSwitchStmt() local
1126 assert((Cond.isInvalid() || CondExpr) && "switch with no condition"); in ActOnStartOfSwitchStmt()
1128 if (CondExpr && !CondExpr->isTypeDependent()) { in ActOnStartOfSwitchStmt()
1133 if (!CondExpr->getType()->isIntegralOrEnumerationType()) in ActOnStartOfSwitchStmt()
1135 if (CondExpr->isKnownToHaveBooleanValue()) { in ActOnStartOfSwitchStmt()
1140 << CondExpr->getSourceRange(); in ActOnStartOfSwitchStmt()
1146 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr, in ActOnStartOfSwitchStmt()
1257 Expr *CondExpr = SS->getCond(); in ActOnFinishSwitchStmt() local
1258 if (!CondExpr) return StmtError(); in ActOnFinishSwitchStmt()
1260 QualType CondType = CondExpr->getType(); in ActOnFinishSwitchStmt()
1269 const Expr *CondExprBeforePromotion = CondExpr; in ActOnFinishSwitchStmt()
1276 = CondExpr->isTypeDependent() || CondExpr->isValueDependent(); in ActOnFinishSwitchStmt()
1369 HasConstantCond = CondExpr->EvaluateAsInt(Result, Context, in ActOnFinishSwitchStmt()
1522 Diag(CondExpr->getExprLoc(), diag::warn_missing_case_for_condition) in ActOnFinishSwitchStmt()
1524 << CondExpr->getSourceRange(); in ActOnFinishSwitchStmt()
1635 auto DB = Diag(CondExpr->getExprLoc(), TheDefaultStmt in ActOnFinishSwitchStmt()
1638 << CondExpr->getSourceRange() << (int)UnhandledNames.size(); in ActOnFinishSwitchStmt()
1651 DiagnoseEmptyStmtBody(CondExpr->getEndLoc(), BodyStmt, in ActOnFinishSwitchStmt()