@@ -1806,14 +1806,10 @@ enum class ConstraintSystemFlags {
18061806 // / \c DebugConstraintSolverOnLines.
18071807 DebugConstraints = 0x08 ,
18081808
1809- // / Don't try to type check closure bodies, and leave them unchecked. This is
1810- // / used for source tooling functionalities.
1811- LeaveClosureBodyUnchecked = 0x10 ,
1812-
18131809 // / If set, we are solving specifically to determine the type of a
18141810 // / CodeCompletionExpr, and should continue in the presence of errors wherever
18151811 // / possible.
1816- ForCodeCompletion = 0x20 ,
1812+ ForCodeCompletion = 0x10 ,
18171813
18181814 // / Include Clang function types when checking equality for function types.
18191815 // /
@@ -1824,13 +1820,13 @@ enum class ConstraintSystemFlags {
18241820 // / should be treated as semantically different, as they may have different
18251821 // / calling conventions, say due to Clang attributes such as
18261822 // / `__attribute__((ns_consumed))`.
1827- UseClangFunctionTypes = 0x40 ,
1823+ UseClangFunctionTypes = 0x20 ,
18281824
18291825 // / When set, ignore async/sync mismatches
1830- IgnoreAsyncSyncMismatch = 0x80 ,
1826+ IgnoreAsyncSyncMismatch = 0x40 ,
18311827
18321828 // / Disable macro expansions.
1833- DisableMacroExpansions = 0x100 ,
1829+ DisableMacroExpansions = 0x80 ,
18341830};
18351831
18361832// / Options that affect the constraint system as a whole.
@@ -5210,17 +5206,15 @@ class ConstraintSystem {
52105206 // / \param replaceInvalidRefsWithErrors Indicates whether it's allowed
52115207 // / to replace any discovered invalid member references with `ErrorExpr`.
52125208 static bool preCheckTarget (SyntacticElementTarget &target,
5213- bool replaceInvalidRefsWithErrors,
5214- bool leaveClosureBodiesUnchecked);
5209+ bool replaceInvalidRefsWithErrors);
52155210
52165211 // / Pre-check the expression, validating any types that occur in the
52175212 // / expression and folding sequence expressions.
52185213 // /
52195214 // / \param replaceInvalidRefsWithErrors Indicates whether it's allowed
52205215 // / to replace any discovered invalid member references with `ErrorExpr`.
52215216 static bool preCheckExpression (Expr *&expr, DeclContext *dc,
5222- bool replaceInvalidRefsWithErrors,
5223- bool leaveClosureBodiesUnchecked);
5217+ bool replaceInvalidRefsWithErrors);
52245218
52255219 // / Solve the system of constraints generated from provided target.
52265220 // /
0 commit comments