Skip to content

Commit 10957b4

Browse files
committed
Merge remote-tracking branch 'origin/main' into next
2 parents f03de06 + ded1792 commit 10957b4

File tree

7 files changed

+544
-493
lines changed

7 files changed

+544
-493
lines changed

lib/AST/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,12 @@ add_swift_host_library(swiftAST STATIC
7171
PlatformKind.cpp
7272
PrettyStackTrace.cpp
7373
ProtocolConformance.cpp
74-
ProtocolGraph.cpp
7574
RawComment.cpp
7675
RequirementEnvironment.cpp
77-
RequirementMachine.cpp
78-
RewriteSystem.cpp
76+
RequirementMachine/ProtocolGraph.cpp
77+
RequirementMachine/RequirementMachine.cpp
78+
RequirementMachine/RewriteSystem.cpp
79+
RequirementMachine/RewriteSystemCompletion.cpp
7980
SILLayout.cpp
8081
Stmt.cpp
8182
SubstitutionMap.cpp

lib/AST/ProtocolGraph.cpp renamed to lib/AST/RequirementMachine/ProtocolGraph.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "swift/AST/ProtocolGraph.h"
13+
#include "ProtocolGraph.h"
1414

1515
#include "swift/AST/Decl.h"
1616
#include "swift/AST/Requirement.h"
@@ -211,4 +211,4 @@ bool ProtocolGraph::inheritsFrom(const ProtocolDecl *thisProto,
211211
return std::find(info.AllInherited.begin(),
212212
info.AllInherited.end(),
213213
otherProto) != info.AllInherited.end();
214-
}
214+
}

lib/AST/RequirementMachine.cpp renamed to lib/AST/RequirementMachine/RequirementMachine.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
#include "swift/AST/Decl.h"
1616
#include "swift/AST/GenericSignature.h"
1717
#include "swift/AST/PrettyStackTrace.h"
18-
#include "swift/AST/ProtocolGraph.h"
1918
#include "swift/AST/Requirement.h"
20-
#include "swift/AST/RewriteSystem.h"
2119
#include "llvm/ADT/DenseSet.h"
2220
#include "llvm/ADT/TinyPtrVector.h"
2321
#include <vector>
2422

23+
#include "ProtocolGraph.h"
24+
#include "RewriteSystem.h"
25+
2526
using namespace swift;
2627
using namespace rewriting;
2728

@@ -303,4 +304,4 @@ void RequirementMachine::markComplete() {
303304
}
304305
assert(!Impl->Complete);
305306
Impl->Complete = true;
306-
}
307+
}

0 commit comments

Comments
 (0)