Lines Matching defs:CondExpr
513 Expr *CondExpr =
515 if (!CondExpr)
517 QualType CondType = CondExpr->getType();
975 Expr *CondExpr = Cond.get().second;
976 assert((CondExpr || ConstevalOrNegatedConsteval) &&
979 if (CondExpr && (getLangOpts().C99 || getLangOpts().CPlusPlus) &&
980 !Diags.isIgnored(diag::warn_comma_operator, CondExpr->getExprLoc()))
981 CommaVisitor(*this).Visit(CondExpr);
1188 Expr *CondExpr = Cond.get().second;
1189 assert((Cond.isInvalid() || CondExpr) && "switch with no condition");
1191 if (CondExpr && !CondExpr->isTypeDependent()) {
1196 if (!CondExpr->getType()->isIntegralOrEnumerationType())
1198 if (CondExpr->isKnownToHaveBooleanValue()) {
1203 << CondExpr->getSourceRange();
1209 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr,
1330 Expr *CondExpr = SS->getCond();
1331 if (!CondExpr) return StmtError();
1333 QualType CondType = CondExpr->getType();
1342 const Expr *CondExprBeforePromotion = CondExpr;
1349 = CondExpr->isTypeDependent() || CondExpr->isValueDependent();
1442 HasConstantCond = CondExpr->EvaluateAsInt(Result, Context,
1595 Diag(CondExpr->getExprLoc(), diag::warn_missing_case_for_condition)
1597 << CondExpr->getSourceRange();
1708 auto DB = Diag(CondExpr->getExprLoc(), TheDefaultStmt
1711 << CondExpr->getSourceRange() << (int)UnhandledNames.size();
1724 DiagnoseEmptyStmtBody(CondExpr->getEndLoc(), BodyStmt,