@@ -4588,6 +4588,7 @@ class ConstraintSystem {
45884588 // / Generate constraints for the given solution target.
45894589 // /
45904590 // / \returns true if an error occurred, false otherwise.
4591+ LLVM_NODISCARD
45914592 bool generateConstraints (SolutionApplicationTarget &target,
45924593 FreeTypeVariableBinding allowFreeTypeVariables);
45934594
@@ -4596,18 +4597,21 @@ class ConstraintSystem {
45964597 // / \param closure the closure expression
45974598 // /
45984599 // / \returns \c true if constraint generation failed, \c false otherwise
4600+ LLVM_NODISCARD
45994601 bool generateConstraints (ClosureExpr *closure);
46004602
46014603 // / Generate constraints for the given (unchecked) expression.
46024604 // /
46034605 // / \returns a possibly-sanitized expression, or null if an error occurred.
4606+ LLVM_NODISCARD
46044607 Expr *generateConstraints (Expr *E, DeclContext *dc,
46054608 bool isInputExpression = true );
46064609
46074610 // / Generate constraints for binding the given pattern to the
46084611 // / value of the given expression.
46094612 // /
46104613 // / \returns a possibly-sanitized initializer, or null if an error occurred.
4614+ LLVM_NODISCARD
46114615 Type generateConstraints (Pattern *P, ConstraintLocatorBuilder locator,
46124616 bool bindPatternVarsOneWay,
46134617 PatternBindingDecl *patternBinding,
@@ -4617,6 +4621,7 @@ class ConstraintSystem {
46174621 // /
46184622 // / \returns true if there was an error in constraint generation, false
46194623 // / if generation succeeded.
4624+ LLVM_NODISCARD
46204625 bool generateConstraints (StmtCondition condition, DeclContext *dc);
46214626
46224627 // / Generate constraints for a case statement.
@@ -4626,6 +4631,7 @@ class ConstraintSystem {
46264631 // /
46274632 // / \returns true if there was an error in constraint generation, false
46284633 // / if generation succeeded.
4634+ LLVM_NODISCARD
46294635 bool generateConstraints (CaseStmt *caseStmt, DeclContext *dc,
46304636 Type subjectType, ConstraintLocator *locator);
46314637
@@ -4669,6 +4675,7 @@ class ConstraintSystem {
46694675 // / \param propertyType The type of the wrapped property.
46704676 // /
46714677 // / \returns true if there is an error.
4678+ LLVM_NODISCARD
46724679 bool generateWrappedPropertyTypeConstraints (VarDecl *wrappedVar,
46734680 Type initializerType,
46744681 Type propertyType);
0 commit comments