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