Skip to content

Commit 1fdfc6a

Browse files
committed
[CodeCompletion] Forward declare types in constraints instead of importing ConstraintSystem.h
Importing ConstraintSystem.h caused some build failures on Windows while building LLDB (which incidentally is also importing IDETypeChecking.h). Forward declare them to work around the build failure.
1 parent 38050e5 commit 1fdfc6a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

include/swift/Sema/IDETypeChecking.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
#include "swift/AST/Identifier.h"
2323
#include "swift/Basic/SourceLoc.h"
24-
#include "swift/Sema/ConstraintSystem.h"
2524
#include <memory>
2625
#include <tuple>
2726

@@ -47,6 +46,12 @@ namespace swift {
4746
class ValueDecl;
4847
struct PrintOptions;
4948

49+
namespace constraints {
50+
class ConstraintSystem;
51+
class Solution;
52+
class SolutionApplicationTarget;
53+
}
54+
5055
/// Typecheck binding initializer at \p bindingIndex.
5156
void typeCheckPatternBinding(PatternBindingDecl *PBD, unsigned bindingIndex,
5257
bool leaveClosureBodiesUnchecked);

0 commit comments

Comments
 (0)