Skip to content

Commit fdc1d0c

Browse files
[Interop][SwiftToCxx] Erasing NaiveException call and result on core test
1 parent b42f45c commit fdc1d0c

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

lib/PrintAsClang/PrintSwiftToClangCoreScaffold.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ void swift::printSwiftToClangCoreScaffold(SwiftToClangInteropContext &ctx,
219219
/*isCForwardDefinition=*/true);
220220
});
221221
os << "\n";
222-
//printCxxNaiveException(os);
223222
});
224223
os << "\n";
225224
// C++ only supports inline variables from C++17.

test/Interop/SwiftToCxx/core/swift-impl-defs-in-cxx.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,6 @@
9898
// CHECK-NEXT: }
9999
// CHECK-NEXT: #endif
100100
// CHECK-EMPTY:
101-
// CHECK-NEXT: /// Naive exception class that should be thrown
102-
// CHECK-NEXT: class NaiveException : public swift::Error {
103-
// CHECK-NEXT: public:
104-
// CHECK-NEXT: inline NaiveException(const char * _Nonnull msg) noexcept : msg_(msg) { }
105-
// CHECK-NEXT: inline NaiveException(NaiveException&& other) noexcept : msg_(other.msg_) { other.msg_ = nullptr; }
106-
// CHECK-NEXT: inline ~NaiveException() noexcept { }
107-
// CHECK-NEXT: void operator =(NaiveException&& other) noexcept { auto temp = msg_; msg_ = other.msg_; other.msg_ = temp; }
108-
// CHECK-NEXT: void operator =(const NaiveException&) noexcept = delete;
109-
// CHECK-NEXT: inline const char * _Nonnull getMessage() const noexcept { return(msg_); }
110-
// CHECK-NEXT: private:
111-
// CHECK-NEXT: const char * _Nonnull msg_;
112-
// CHECK-NEXT: };
113101
// CHECK-EMPTY:
114102
// CHECK-NEXT: } // namespace _impl
115103
// CHECK-EMPTY:

0 commit comments

Comments
 (0)