Skip to content

Commit 4954763

Browse files
committed
[ConstraintSystem] NFC: Move CSFix.h to include/swift/Sema
1 parent ab951c2 commit 4954763

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
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

File renamed without changes.

lib/Sema/CSFix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
//
1717
//===----------------------------------------------------------------------===//
1818

19-
#include "CSFix.h"
2019
#include "CSDiagnostics.h"
2120
#include "ConstraintSystem.h"
2221
#include "swift/AST/Expr.h"
@@ -25,6 +24,7 @@
2524
#include "swift/AST/Types.h"
2625
#include "swift/Basic/SourceManager.h"
2726
#include "swift/Sema/ConstraintLocator.h"
27+
#include "swift/Sema/CSFix.h"
2828
#include "swift/Sema/OverloadChoice.h"
2929
#include "llvm/ADT/SmallString.h"
3030
#include "llvm/Support/raw_ostream.h"

lib/Sema/CSSimplify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
//===----------------------------------------------------------------------===//
1717

1818
#include "CSDiagnostics.h"
19-
#include "CSFix.h"
2019
#include "ConstraintSystem.h"
2120
#include "swift/AST/ExistentialLayout.h"
2221
#include "swift/AST/GenericEnvironment.h"
@@ -28,6 +27,7 @@
2827
#include "swift/AST/ProtocolConformance.h"
2928
#include "swift/Basic/StringExtras.h"
3029
#include "swift/ClangImporter/ClangModule.h"
30+
#include "swift/Sema/CSFix.h"
3131
#include "swift/Sema/IDETypeChecking.h"
3232
#include "llvm/ADT/SetVector.h"
3333
#include "llvm/Support/Compiler.h"

lib/Sema/Constraint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#ifndef SWIFT_SEMA_CONSTRAINT_H
1919
#define SWIFT_SEMA_CONSTRAINT_H
2020

21-
#include "CSFix.h"
2221
#include "swift/AST/FunctionRefKind.h"
2322
#include "swift/AST/Identifier.h"
2423
#include "swift/AST/Type.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;

lib/Sema/ConstraintSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
//===----------------------------------------------------------------------===//
1818
#include "ConstraintSystem.h"
1919
#include "CSDiagnostics.h"
20-
#include "CSFix.h"
2120
#include "TypeChecker.h"
2221
#include "TypeCheckType.h"
2322
#include "swift/AST/Initializer.h"
2423
#include "swift/AST/GenericEnvironment.h"
2524
#include "swift/AST/ParameterList.h"
2625
#include "swift/AST/TypeCheckRequests.h"
2726
#include "swift/Basic/Statistic.h"
27+
#include "swift/Sema/CSFix.h"
2828
#include "swift/Sema/ConstraintGraph.h"
2929
#include "swift/Sema/SolutionResult.h"
3030
#include "llvm/ADT/SetVector.h"

lib/Sema/ConstraintSystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#ifndef SWIFT_SEMA_CONSTRAINT_SYSTEM_H
1919
#define SWIFT_SEMA_CONSTRAINT_SYSTEM_H
2020

21-
#include "CSFix.h"
2221
#include "Constraint.h"
2322
#include "swift/AST/ASTContext.h"
2423
#include "swift/AST/ASTNode.h"
@@ -35,6 +34,7 @@
3534
#include "swift/Sema/ConstraintGraph.h"
3635
#include "swift/Sema/ConstraintGraphScope.h"
3736
#include "swift/Sema/ConstraintLocator.h"
37+
#include "swift/Sema/CSFix.h"
3838
#include "swift/Sema/OverloadChoice.h"
3939
#include "swift/Sema/SolutionResult.h"
4040
#include "llvm/ADT/MapVector.h"

0 commit comments

Comments
 (0)