• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching defs:Cond

579                   ConditionResult Cond,
582 if (Cond.isInvalid())
583 Cond = ConditionResult(
590 Expr *CondExpr = Cond.get().second;
600 return BuildIfStmt(IfLoc, IsConstexpr, InitStmt, Cond, thenStmt, ElseLoc,
605 Stmt *InitStmt, ConditionResult Cond,
608 if (Cond.isInvalid())
611 if (IsConstexpr || isa<ObjCAvailabilityCheckExpr>(Cond.get().second))
614 return IfStmt::Create(Context, IfLoc, IsConstexpr, InitStmt, Cond.get().first,
615 Cond.get().second, thenStmt, ElseLoc, elseStmt);
677 ExprResult Sema::CheckSwitchCondition(SourceLocation SwitchLoc, Expr *Cond) {
679 Expr *Cond;
682 SwitchConvertDiagnoser(Expr *Cond)
684 Cond(Cond) {}
694 << T << Cond->getSourceRange();
723 } SwitchDiagnoser(Cond);
726 PerformContextualImplicitConversion(SwitchLoc, Cond, SwitchDiagnoser);
732 Cond = CondResult.get();
733 if (!Cond->isTypeDependent() &&
734 !Cond->getType()->isIntegralOrEnumerationType())
738 return UsualUnaryConversions(Cond);
742 Stmt *InitStmt, ConditionResult Cond) {
743 Expr *CondExpr = Cond.get().second;
744 assert((Cond.isInvalid() || CondExpr) && "switch with no condition");
749 // have an appropriate type, e.g. a typo-expr Cond was corrected to an
764 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr);
835 static void checkEnumTypesInSwitchStmt(Sema &S, const Expr *Cond,
837 QualType CondType = Cond->getType();
857 << CondType << CaseType << Cond->getSourceRange()
1332 SourceLocation LParenLoc, ConditionResult Cond,
1334 if (Cond.isInvalid())
1337 auto CondVal = Cond.get();
1354 Expr *Cond, SourceLocation CondRParen) {
1355 assert(Cond && "ActOnDoStmt(): missing expression");
1357 CheckBreakContinueBinding(Cond);
1358 ExprResult CondResult = CheckBooleanCondition(DoLoc, Cond);
1361 Cond = CondResult.get();
1363 CondResult = ActOnFinishFullExpr(Cond, DoLoc, /*DiscardedValue*/ false);
1366 Cond = CondResult.get();
1369 if (Cond && !getLangOpts().C99 && !getLangOpts().CPlusPlus &&
1370 !Diags.isIgnored(diag::warn_comma_operator, Cond->getExprLoc()))
1371 CommaVisitor(*this).Visit(Cond);
1373 return new (Context) DoStmt(Body, Cond, DoLoc, WhileLoc, CondRParen);
1663 if (const Stmt *Cond = S->getCond())
1664 Visit(Cond);
2175 /*Cond=*/nullptr, /*Inc=*/nullptr, DS, RParenLoc, Kind);
2368 Stmt *Begin, Stmt *End, Expr *Cond,
2392 ExprResult NotEqExpr = Cond, IncrExpr = Inc;