Skip to content

Commit 9338d56

Browse files
committed
[NFC] Factor out AsyncCallerExecution migration files into subdirectory
This new directory is a hub for future feature-oriented migration code (for features that find this separation of concerns appropriate).
1 parent d465184 commit 9338d56

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

lib/Sema/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
add_swift_host_library(swiftSema STATIC
33
AssociatedTypeInference.cpp
4-
AsyncCallerExecutionMigration.cpp
54
BuilderTransform.cpp
65
Comment.cpp
76
CSApply.cpp
@@ -39,6 +38,7 @@ add_swift_host_library(swiftSema STATIC
3938
ImportResolution.cpp
4039
InstrumenterSupport.cpp
4140
LookupVisibleDecls.cpp
41+
Migration/AsyncCallerExecution.cpp
4242
MiscDiagnostics.cpp
4343
OpenedExistentials.cpp
4444
PCMacro.cpp

lib/Sema/AsyncCallerExecutionMigration.cpp lib/Sema/Migration/AsyncCallerExecution.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Sema/AsyncCallerExecutionMigration.cpp ------------------*- C++ -*-===//
1+
//===-- Migration/AsyncCallerExecution.cpp ----------------------*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
@@ -16,7 +16,7 @@
1616
///
1717
//===----------------------------------------------------------------------===//
1818

19-
#include "AsyncCallerExecutionMigration.h"
19+
#include "AsyncCallerExecution.h"
2020
#include "swift/AST/ASTContext.h"
2121
#include "swift/AST/Decl.h"
2222
#include "swift/AST/DiagnosticsSema.h"

lib/Sema/AsyncCallerExecutionMigration.h lib/Sema/Migration/AsyncCallerExecution.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Sema/AsyncCallerExecutionMigration.h --------------------*- C++ -*-===//
1+
//===-- Migration/AsyncCallerExecution.h ------------------------*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
@@ -16,8 +16,8 @@
1616
///
1717
//===----------------------------------------------------------------------===//
1818

19-
#ifndef SWIFT_SEMA_ASYNCCALLEREXECUTIONMIGRATION_H
20-
#define SWIFT_SEMA_ASYNCCALLEREXECUTIONMIGRATION_H
19+
#ifndef SWIFT_SEMA_MIGRATION_ASYNCCALLEREXECUTION_H
20+
#define SWIFT_SEMA_MIGRATION_ASYNCCALLEREXECUTION_H
2121

2222
#include "swift/AST/ActorIsolation.h"
2323
#include "swift/AST/ExtInfo.h"
@@ -50,4 +50,4 @@ void warnAboutNewNonisolatedAsyncExecutionBehavior(ASTContext &ctx,
5050

5151
} // end namespace swift
5252

53-
#endif /* SWIFT_SEMA_ASYNCCALLEREXECUTIONMIGRATION_H */
53+
#endif /* SWIFT_SEMA_MIGRATION_ASYNCCALLEREXECUTION_H */

lib/Sema/TypeCheckConcurrency.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//===----------------------------------------------------------------------===//
1616

1717
#include "TypeCheckConcurrency.h"
18-
#include "AsyncCallerExecutionMigration.h"
18+
#include "Migration/AsyncCallerExecution.h"
1919
#include "MiscDiagnostics.h"
2020
#include "TypeCheckDistributed.h"
2121
#include "TypeCheckInvertible.h"

lib/Sema/TypeCheckType.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//===----------------------------------------------------------------------===//
1717

1818
#include "TypeCheckType.h"
19-
#include "AsyncCallerExecutionMigration.h"
19+
#include "Migration/AsyncCallerExecution.h"
2020
#include "TypeCheckAvailability.h"
2121
#include "TypeCheckConcurrency.h"
2222
#include "TypeCheckInvertible.h"

0 commit comments

Comments
 (0)