Lines Matching refs:CondExpr

453   Expr *CondExpr =  in ActOnCaseExpr()  local
455 if (!CondExpr) in ActOnCaseExpr()
457 QualType CondType = CondExpr->getType(); in ActOnCaseExpr()
593 Expr *CondExpr = Cond.get().second; in ActOnIfStmt() local
596 !Diags.isIgnored(diag::warn_comma_operator, CondExpr->getExprLoc())) in ActOnIfStmt()
597 CommaVisitor(*this).Visit(CondExpr); in ActOnIfStmt()
600 DiagnoseEmptyStmtBody(CondExpr->getEndLoc(), thenStmt, in ActOnIfStmt()
777 Expr *CondExpr = Cond.get().second; in ActOnStartOfSwitchStmt() local
778 assert((Cond.isInvalid() || CondExpr) && "switch with no condition"); in ActOnStartOfSwitchStmt()
780 if (CondExpr && !CondExpr->isTypeDependent()) { in ActOnStartOfSwitchStmt()
785 if (!CondExpr->getType()->isIntegralOrEnumerationType()) in ActOnStartOfSwitchStmt()
787 if (CondExpr->isKnownToHaveBooleanValue()) { in ActOnStartOfSwitchStmt()
792 << CondExpr->getSourceRange(); in ActOnStartOfSwitchStmt()
798 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr, in ActOnStartOfSwitchStmt()
909 Expr *CondExpr = SS->getCond(); in ActOnFinishSwitchStmt() local
910 if (!CondExpr) return StmtError(); in ActOnFinishSwitchStmt()
912 QualType CondType = CondExpr->getType(); in ActOnFinishSwitchStmt()
921 const Expr *CondExprBeforePromotion = CondExpr; in ActOnFinishSwitchStmt()
928 = CondExpr->isTypeDependent() || CondExpr->isValueDependent(); in ActOnFinishSwitchStmt()
1018 HasConstantCond = CondExpr->EvaluateAsInt(Result, Context, in ActOnFinishSwitchStmt()
1170 Diag(CondExpr->getExprLoc(), diag::warn_missing_case_for_condition) in ActOnFinishSwitchStmt()
1172 << CondExpr->getSourceRange(); in ActOnFinishSwitchStmt()
1282 auto DB = Diag(CondExpr->getExprLoc(), TheDefaultStmt in ActOnFinishSwitchStmt()
1298 DiagnoseEmptyStmtBody(CondExpr->getEndLoc(), BodyStmt, in ActOnFinishSwitchStmt()