Skip to content

Commit 83b7095

Browse files
authored
Merge pull request #85834 from susmonteiro/6.3-remove-request-cycles
🍒 [6.3][cxx-interop] Refactor ClangTypeEscapability and CxxValueSemantics requests
2 parents cac74c3 + 68b22ec commit 83b7095

File tree

5 files changed

+204
-210
lines changed

5 files changed

+204
-210
lines changed

include/swift/ClangImporter/ClangImporterRequests.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -575,15 +575,7 @@ SourceLoc extractNearestSourceLoc(EscapabilityLookupDescriptor desc);
575575
// When a reference type is copied, the pointer’s value is copied rather than
576576
// the object’s storage. This means reference types can be imported as
577577
// copyable to Swift, even when they are non-copyable in C++.
578-
enum class CxxValueSemanticsKind {
579-
Unknown,
580-
Copyable,
581-
MoveOnly,
582-
// A record that is either not copyable/movable or not destructible.
583-
MissingLifetimeOperation,
584-
// A record that has no copy and no move operations
585-
UnavailableConstructors,
586-
};
578+
enum class CxxValueSemanticsKind { Unknown, Copyable, MoveOnly };
587579

588580
struct CxxValueSemanticsDescriptor final {
589581
const clang::Type *type;

0 commit comments

Comments
 (0)