Skip to content

Commit b70ba09

Browse files
committed
[interop][SwiftToCxx] remove extraneous ';' from generated header
1 parent 0b0cc99 commit b70ba09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/PrintAsClang/PrintClangValueType.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static void addCppExtensionsToStdlibType(const NominalTypeDecl *typeDecl,
130130
"memcpy(&result._3, value + 8, 4);\n"
131131
"#endif\n"
132132
"return result;\n"
133-
"};\n";
133+
"}\n";
134134
cPrologueOS << "SWIFT_EXTERN void *_Nonnull "
135135
"$sSS10FoundationE19_bridgeToObjectiveCSo8NSStringCyF(swift_interop_stub_"
136136
"Swift_String) SWIFT_NOEXCEPT SWIFT_CALL;\n";

test/Interop/SwiftToCxx/stdlib/swift-stdlib-in-cxx.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend -parse-as-library %platform-module-dir/Swift.swiftmodule/%module-target-triple.swiftinterface -enable-library-evolution -disable-objc-attr-requires-foundation-module -typecheck -module-name Swift -parse-stdlib -enable-experimental-cxx-interop -emit-clang-header-path %t/Swift.h -experimental-skip-all-function-bodies
33
// RUN: %FileCheck %s < %t/Swift.h
44

5-
// RUN: %check-interop-cxx-header-in-clang(%t/Swift.h -DSWIFT_CXX_INTEROP_HIDE_STL_OVERLAY -Wno-unused-private-field -Wno-unused-function)
5+
// RUN: %check-interop-cxx-header-in-clang(%t/Swift.h -DSWIFT_CXX_INTEROP_HIDE_STL_OVERLAY -Wno-unused-private-field -Wno-unused-function -Wc++98-compat-extra-semi)
66

77
// CHECK: namespace Swift __attribute__((swift_private)) SWIFT_SYMBOL_MODULE("Swift") {
88

0 commit comments

Comments
 (0)