Skip to content

Commit 382510f

Browse files
authored
Rename Reflection library to RemoteInspection (swiftlang#62846)
1 parent 973b0ce commit 382510f

Some content is hidden

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

44 files changed

+92
-92
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,8 +1196,8 @@ else()
11961196
add_subdirectory(stdlib/public/BackDeployConcurrency)
11971197
endif()
11981198

1199-
# Some tools (e.g. swift-reflection-dump) rely on a host swiftReflection, so
1200-
# ensure we build that when building tools.
1199+
# Some tools (e.g. swift-reflection-dump) rely on a host swiftRemoteInspection,
1200+
# so ensure we build that when building tools.
12011201
if(SWIFT_INCLUDE_TOOLS)
12021202
add_subdirectory(stdlib/public/SwiftShims/swift/shims)
12031203
endif()

include/swift/Reflection/MetadataSource.h renamed to include/swift/RemoteInspection/MetadataSource.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace reflection {
3636

3737
enum class MetadataSourceKind {
3838
#define METADATA_SOURCE(Id, Parent) Id,
39-
#include "swift/Reflection/MetadataSources.def"
39+
#include "swift/RemoteInspection/MetadataSources.def"
4040
#undef METADATA_SOURCE
4141
};
4242

@@ -344,7 +344,7 @@ class MetadataSourceVisitor {
344344
return static_cast<ImplClass*>(this) \
345345
->visit##Id##MetadataSource(cast<Id##MetadataSource>(MS), \
346346
::std::forward<Args>(args)...);
347-
#include "swift/Reflection/MetadataSources.def"
347+
#include "swift/RemoteInspection/MetadataSources.def"
348348
}
349349
}
350350
};

include/swift/Reflection/MetadataSourceBuilder.h renamed to include/swift/RemoteInspection/MetadataSourceBuilder.h

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

20-
#include "swift/Reflection/MetadataSource.h"
20+
#include "swift/RemoteInspection/MetadataSource.h"
2121

2222
namespace swift {
2323
namespace reflection {

include/swift/Reflection/ReflectionContext.h renamed to include/swift/RemoteInspection/ReflectionContext.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
#include "swift/Concurrency/Actor.h"
3131
#include "swift/Remote/MemoryReader.h"
3232
#include "swift/Remote/MetadataReader.h"
33-
#include "swift/Reflection/Records.h"
34-
#include "swift/Reflection/RuntimeInternals.h"
35-
#include "swift/Reflection/TypeLowering.h"
36-
#include "swift/Reflection/TypeRef.h"
37-
#include "swift/Reflection/TypeRefBuilder.h"
33+
#include "swift/RemoteInspection/Records.h"
34+
#include "swift/RemoteInspection/RuntimeInternals.h"
35+
#include "swift/RemoteInspection/TypeLowering.h"
36+
#include "swift/RemoteInspection/TypeRef.h"
37+
#include "swift/RemoteInspection/TypeRefBuilder.h"
3838
#include "swift/Basic/Unreachable.h"
3939

4040
#include <set>

include/swift/Reflection/TypeRef.h renamed to include/swift/RemoteInspection/TypeRef.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ using llvm::dyn_cast;
3434

3535
enum class TypeRefKind {
3636
#define TYPEREF(Id, Parent) Id,
37-
#include "swift/Reflection/TypeRefs.def"
37+
#include "swift/RemoteInspection/TypeRefs.def"
3838
#undef TYPEREF
3939
};
4040

@@ -1034,7 +1034,7 @@ class TypeRefVisitor {
10341034
return static_cast<ImplClass*>(this) \
10351035
->visit##Id##TypeRef(cast<Id##TypeRef>(typeRef), \
10361036
::std::forward<Args>(args)...);
1037-
#include "swift/Reflection/TypeRefs.def"
1037+
#include "swift/RemoteInspection/TypeRefs.def"
10381038
}
10391039

10401040
// We shouldn't get an unknown kind, but bad data might result in an unknown

include/swift/Reflection/TypeRefBuilder.h renamed to include/swift/RemoteInspection/TypeRefBuilder.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
#include "swift/Remote/ExternalTypeRefCache.h"
2222
#include "swift/Remote/MetadataReader.h"
23-
#include "swift/Reflection/MetadataSourceBuilder.h"
24-
#include "swift/Reflection/Records.h"
25-
#include "swift/Reflection/TypeLowering.h"
26-
#include "swift/Reflection/TypeRef.h"
23+
#include "swift/RemoteInspection/MetadataSourceBuilder.h"
24+
#include "swift/RemoteInspection/Records.h"
25+
#include "swift/RemoteInspection/TypeLowering.h"
26+
#include "swift/RemoteInspection/TypeRef.h"
2727
#include "llvm/ADT/Optional.h"
2828
#include "llvm/ADT/SmallVector.h"
2929
#include <iomanip>
@@ -394,7 +394,7 @@ struct TypeRefDecl {
394394
/// it vends.
395395
class TypeRefBuilder {
396396
#define TYPEREF(Id, Parent) friend class Id##TypeRef;
397-
#include "swift/Reflection/TypeRefs.def"
397+
#include "swift/RemoteInspection/TypeRefs.def"
398398

399399
public:
400400
using BuiltType = const TypeRef *;
@@ -437,7 +437,7 @@ class TypeRefBuilder {
437437
#define TYPEREF(Id, Parent) \
438438
std::unordered_map<TypeRefID, const Id##TypeRef *, \
439439
TypeRefID::Hash, TypeRefID::Equal> Id##TypeRefs;
440-
#include "swift/Reflection/TypeRefs.def"
440+
#include "swift/RemoteInspection/TypeRefs.def"
441441

442442
public:
443443
template <typename TypeRefTy, typename... Args>

0 commit comments

Comments
 (0)