@@ -4587,6 +4587,7 @@ class ConstraintSystem {
4587
4587
// / Generate constraints for the given solution target.
4588
4588
// /
4589
4589
// / \returns true if an error occurred, false otherwise.
4590
+ LLVM_NODISCARD
4590
4591
bool generateConstraints (SolutionApplicationTarget &target,
4591
4592
FreeTypeVariableBinding allowFreeTypeVariables);
4592
4593
@@ -4595,18 +4596,21 @@ class ConstraintSystem {
4595
4596
// / \param closure the closure expression
4596
4597
// /
4597
4598
// / \returns \c true if constraint generation failed, \c false otherwise
4599
+ LLVM_NODISCARD
4598
4600
bool generateConstraints (ClosureExpr *closure);
4599
4601
4600
4602
// / Generate constraints for the given (unchecked) expression.
4601
4603
// /
4602
4604
// / \returns a possibly-sanitized expression, or null if an error occurred.
4605
+ LLVM_NODISCARD
4603
4606
Expr *generateConstraints (Expr *E, DeclContext *dc,
4604
4607
bool isInputExpression = true );
4605
4608
4606
4609
// / Generate constraints for binding the given pattern to the
4607
4610
// / value of the given expression.
4608
4611
// /
4609
4612
// / \returns a possibly-sanitized initializer, or null if an error occurred.
4613
+ LLVM_NODISCARD
4610
4614
Type generateConstraints (Pattern *P, ConstraintLocatorBuilder locator,
4611
4615
bool bindPatternVarsOneWay,
4612
4616
PatternBindingDecl *patternBinding,
@@ -4616,6 +4620,7 @@ class ConstraintSystem {
4616
4620
// /
4617
4621
// / \returns true if there was an error in constraint generation, false
4618
4622
// / if generation succeeded.
4623
+ LLVM_NODISCARD
4619
4624
bool generateConstraints (StmtCondition condition, DeclContext *dc);
4620
4625
4621
4626
// / Generate constraints for a case statement.
@@ -4625,6 +4630,7 @@ class ConstraintSystem {
4625
4630
// /
4626
4631
// / \returns true if there was an error in constraint generation, false
4627
4632
// / if generation succeeded.
4633
+ LLVM_NODISCARD
4628
4634
bool generateConstraints (CaseStmt *caseStmt, DeclContext *dc,
4629
4635
Type subjectType, ConstraintLocator *locator);
4630
4636
@@ -4668,6 +4674,7 @@ class ConstraintSystem {
4668
4674
// / \param propertyType The type of the wrapped property.
4669
4675
// /
4670
4676
// / \returns true if there is an error.
4677
+ LLVM_NODISCARD
4671
4678
bool generateWrappedPropertyTypeConstraints (VarDecl *wrappedVar,
4672
4679
Type initializerType,
4673
4680
Type propertyType);
0 commit comments