Skip to content

Commit 1b708ac

Browse files
authored
Merge pull request swiftlang#34235 from xedin/cs-header-to-include
[ConstraintSystem] NFC: Move `ConstraintSystem.h` and related headers to `include/swift/Sema`
2 parents 3946977 + 461eaff commit 1b708ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+65
-69
lines changed

include/swift/AST/FunctionRefKind.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#ifndef SWIFT_AST_FUNCTION_REF_KIND_H
1818
#define SWIFT_AST_FUNCTION_REF_KIND_H
1919

20+
#include "llvm/ADT/StringRef.h"
21+
2022
namespace swift {
2123

2224
/// Describes how a function is referenced within an expression node,
@@ -43,7 +45,7 @@ enum class FunctionRefKind : unsigned {
4345

4446
/// Produce a string describing a function reference kind, for
4547
/// debugging purposes.
46-
StringRef getFunctionRefKindStr(FunctionRefKind refKind);
48+
llvm::StringRef getFunctionRefKindStr(FunctionRefKind refKind);
4749

4850
}
4951

lib/Sema/CSFix.h renamed to include/swift/Sema/CSFix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
#ifndef SWIFT_SEMA_CSFIX_H
1818
#define SWIFT_SEMA_CSFIX_H
1919

20-
#include "ConstraintLocator.h"
2120
#include "swift/AST/ASTNode.h"
2221
#include "swift/AST/Decl.h"
2322
#include "swift/AST/Expr.h"
2423
#include "swift/AST/Identifier.h"
2524
#include "swift/AST/Type.h"
2625
#include "swift/AST/Types.h"
2726
#include "swift/Basic/Debug.h"
27+
#include "swift/Sema/ConstraintLocator.h"
2828
#include "llvm/ADT/ArrayRef.h"
2929
#include "llvm/ADT/SmallVector.h"
3030
#include "llvm/Support/TrailingObjects.h"

lib/Sema/Constraint.h renamed to include/swift/Sema/Constraint.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
#ifndef SWIFT_SEMA_CONSTRAINT_H
1919
#define SWIFT_SEMA_CONSTRAINT_H
2020

21-
#include "CSFix.h"
22-
#include "OverloadChoice.h"
2321
#include "swift/AST/FunctionRefKind.h"
2422
#include "swift/AST/Identifier.h"
2523
#include "swift/AST/Type.h"
2624
#include "swift/Basic/Debug.h"
25+
#include "swift/Sema/OverloadChoice.h"
2726
#include "llvm/ADT/ArrayRef.h"
2827
#include "llvm/ADT/ilist.h"
2928
#include "llvm/ADT/ilist_node.h"
@@ -43,6 +42,7 @@ class TypeVariableType;
4342

4443
namespace constraints {
4544

45+
class ConstraintFix;
4646
class ConstraintLocator;
4747
class ConstraintSystem;
4848
enum class TrailingClosureMatching;
File renamed without changes.
File renamed without changes.

lib/Sema/ConstraintSystem.h renamed to include/swift/Sema/ConstraintSystem.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@
1818
#ifndef SWIFT_SEMA_CONSTRAINT_SYSTEM_H
1919
#define SWIFT_SEMA_CONSTRAINT_SYSTEM_H
2020

21-
#include "CSFix.h"
22-
#include "Constraint.h"
23-
#include "ConstraintGraph.h"
24-
#include "ConstraintGraphScope.h"
25-
#include "ConstraintLocator.h"
26-
#include "OverloadChoice.h"
27-
#include "SolutionResult.h"
2821
#include "swift/AST/ASTContext.h"
2922
#include "swift/AST/ASTNode.h"
3023
#include "swift/AST/ASTVisitor.h"
@@ -37,6 +30,13 @@
3730
#include "swift/Basic/Debug.h"
3831
#include "swift/Basic/LLVM.h"
3932
#include "swift/Basic/OptionSet.h"
33+
#include "swift/Sema/Constraint.h"
34+
#include "swift/Sema/ConstraintGraph.h"
35+
#include "swift/Sema/ConstraintGraphScope.h"
36+
#include "swift/Sema/ConstraintLocator.h"
37+
#include "swift/Sema/CSFix.h"
38+
#include "swift/Sema/OverloadChoice.h"
39+
#include "swift/Sema/SolutionResult.h"
4040
#include "llvm/ADT/MapVector.h"
4141
#include "llvm/ADT/PointerUnion.h"
4242
#include "llvm/ADT/STLExtras.h"
File renamed without changes.

0 commit comments

Comments
 (0)