Skip to content

Commit 577bb5a

Browse files
committed
[cxx-interop] Rename cxx-interop.h -> swift-interop-support.h.
1 parent 82b43e6 commit 577bb5a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lib/ClangImporter/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ add_dependencies(swiftClangImporter
4343

4444
set_swift_llvm_is_available(swiftClangImporter)
4545

46-
# Mark - copy "cxx-interop.h" into the local include directory and install it
46+
# Mark - copy "swift-interop-support.h" into the local include directory and install it
4747
# into the compiler toolchain.
4848
set(SWIFTINC_DIR
4949
"${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/include/swift")
5050

5151
add_custom_command(
52-
OUTPUT "${SWIFTINC_DIR}/cxx-interop.h"
53-
COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/cxx-interop.h" "${SWIFTINC_DIR}")
52+
OUTPUT "${SWIFTINC_DIR}/swift-interop-support.h"
53+
COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${CMAKE_CURRENT_SOURCE_DIR}/swift-interop-support.h" "${SWIFTINC_DIR}")
5454

5555
add_custom_target("copy_cxxInterop_support_header"
56-
DEPENDS "${SWIFTINC_DIR}/cxx-interop.h"
56+
DEPENDS "${SWIFTINC_DIR}/swift-interop-support.h"
5757
COMMENT "Copying C++ interop support header to ${SWIFTINC_DIR}")
5858

59-
swift_install_in_component(FILES "${CMAKE_CURRENT_SOURCE_DIR}/cxx-interop.h"
59+
swift_install_in_component(FILES "${CMAKE_CURRENT_SOURCE_DIR}/swift-interop-support.h"
6060
DESTINATION "include/swift"
6161
COMPONENT compiler)
6262

lib/ClangImporter/cxx-interop.h renamed to lib/ClangImporter/swift-interop-support.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- cxx-interop.h - C++ and Swift Interop ------------------*- C++ -*-===//
1+
//===--- swift-interop-support.h - C++ and Swift Interop --------*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
@@ -14,8 +14,8 @@
1414
// codebases that interoperate with Swift.
1515
//
1616
//===----------------------------------------------------------------------===//
17-
#ifndef SWIFT_CLANGIMPORTER_CXX_INTEROP_H
18-
#define SWIFT_CLANGIMPORTER_CXX_INTEROP_H
17+
#ifndef SWIFT_CLANGIMPORTER_SWIFT_INTEROP_SUPPORT_H
18+
#define SWIFT_CLANGIMPORTER_SWIFT_INTEROP_SUPPORT_H
1919

2020
#define SELF_CONTAINED __attribute__((swift_attr("import_owned")))
2121
#define SAFE_TO_IMPORT __attribute__((swift_attr("import_unsafe")))
@@ -28,4 +28,4 @@
2828

2929
#define SWIFT_NAME(_name) __attribute__((swift_name(#_name)))
3030

31-
#endif // SWIFT_CLANGIMPORTER_CXX_INTEROP_H
31+
#endif // SWIFT_CLANGIMPORTER_SWIFT_INTEROP_SUPPORT_H

0 commit comments

Comments
 (0)