Alex Lorenz
00181138fd
[interop] support 'default' mode for '-cxx-interoperability-mode' option
...
Default corresponds to the Swift language version used to compile the input. Swift-5.9 is still supported for now, but will be removed shortly
2023-04-04 15:35:48 -07:00
Zoe Carver
34da940cc3
Follow up from #64088 : compatibility -> interoperability
2023-03-08 08:57:45 -08:00
zoecarver
7a5136185d
[cxx-interop] Rebase fallout: replace a few instances of swift-5.7 with swift-5.9.
2023-03-07 13:30:29 -08:00
zoecarver
dcd83a807f
[nfc][cxx-interop] Rename cxx-compatibility-mode -> cxx-interoperability-mode.
2023-03-07 10:23:19 -08:00
zoecarver
b64b52ae83
[cxx-interop] Add -cxx-compatibility-mode driver flag; deprecate -enable-experimental-cxx-interop.
2023-03-07 10:22:57 -08:00
Zoe Carver
9c584d89b7
Merge pull request #62953 from apple/zoecarver-patch-1
...
Update GettingStartedWithC++Interop.md
2023-02-27 15:30:41 -08:00
Egor Zhdan
8bf3f0f638
[cxx-interop][docs] Update the C++ stdlib module name
...
The C++ standard library module was renamed from `std` to `CxxStdlib` in the context of Swift.
Also use a top-level module name (`CxxStdlib`) instead of a submodule name, since libstdc++ is not currently split into submodules.
2023-02-01 16:16:25 +00:00
Zoe Carver
091dd51961
[docs] Add warning to CppInteroperabilityManifesto. ( #63025 )
2023-01-13 11:43:53 -08:00
Zoe Carver
05d44b128f
Update GettingStartedWithC++Interop.md
2023-01-10 17:33:04 -08:00
Chris White
f028016349
Fix two documentation links that weren't working
2022-12-29 18:25:07 +00:00
Alex Lorenz
91f7ea1ced
Merge pull request #62413 from hyp/eng/uncaught-exc-ub-docs
...
[interop][docs] Clarify in the interop status that uncaught exception…
2022-12-06 07:28:29 -08:00
Alex Lorenz
548f59aa03
[interop][docs] Clarify in the interop status that uncaught exceptions are UB
2022-12-05 15:29:40 -08:00
Alex Lorenz
d6e83587b8
[docs][interop] give a more specific example of how to use import_reference to import an FRT into Swift
2022-12-05 15:18:50 -08:00
Alex Lorenz
8336edd344
[interop][SwiftToCxx] add support for constructing generic enum cases in C++
...
We only support cases with no payload, or one associated value still
2022-11-03 12:21:27 -07:00
Alex Lorenz
ac3dc6a579
[interop][SwiftToCxx] clarify Swift to C++ status doc
...
More clarification for the status doc.
2022-10-07 15:04:12 -07:00
Alex Lorenz
407e8a6b1c
[interop][SwiftToCxx] update status doc for class init support
...
Class initializers are supported.
Also mention that methods aren't virtual ATM.
2022-10-07 09:05:07 -07:00
Egor Zhdan
e8ae3f7100
[cxx-interop][docs] Update getting started guide
...
* Do not use `Cxx` as a user module name, since we now ship a built-in module called `Cxx`.
* Describe creating an Xcode target that builds the C++ module.
* Do not provide libc++ include paths manually to the Swift compiler, Swift should detect the C++ stdlib automatically.
2022-09-29 18:47:15 +01:00
swift-ci
f49c2f1cd9
Merge pull request #61308 from hyp/eng/raw-enum-test
...
[interop][SwiftToCxx] NFC, add a test for raw representable enum
2022-09-26 22:03:26 -07:00
Alex Lorenz
717c29992d
[interop][SwiftToCxx] NFC, add a test for raw representable enum
2022-09-26 19:37:27 -07:00
Alex Lorenz
fd936c5025
[interop][SwiftToCxx] update status doc for static property support
2022-09-26 18:08:14 -07:00
Alex Lorenz
b04fd155b9
[interop][docs] update status page for recent generic enum, Array and Optional changes
2022-09-22 20:57:58 -07:00
Alex Lorenz
0914496c86
[cxx-interop] update status docs for reverse experimental String and Array support
2022-09-09 09:33:25 -07:00
Alex Lorenz
8b4b397257
[cxx-interop] update status docs for generics reverse support and enum members
2022-09-09 09:30:43 -07:00
Tongjie Wang
5a55cd7ba2
[Interop][SwiftToCxx] Support printing methods and properties for enums
2022-09-08 11:05:20 -07:00
Alex Lorenz
64b90e8245
[interop][SwiftToCxx] docs: add section on converting Swift's String to NSString *
2022-08-25 15:25:46 -07:00
a4z
f96bfb2914
Adopt Cxx header/implementation in example
...
* Fix header/implemenation content in C++ code listning
* Minor whitespace fix in caption
2022-08-22 20:21:04 +02:00
Tongjie Wang
482e1ac80f
[Interop][SwiftToCxx] Implement the new enum header design
2022-08-15 15:31:43 -07:00
Alex Lorenz
f212db5ad5
[interop][SwiftToCxx] docs, fixup UInt mapping for C++
2022-08-11 21:23:46 -07:00
Alex Lorenz
a654e66f06
[interop][SwiftToCxx] update disclaimer for reverse inteorp user guide
2022-08-11 21:23:27 -07:00
Alex Lorenz
0308404a8a
[interop][SwiftToCxx] update reverse interop user guide for new enum design
2022-08-11 21:20:48 -07:00
Alex Lorenz
74d47a1651
[interop][SwiftToCxx] update swift type representation docs with different opaque type layout
2022-08-09 11:55:28 -07:00
Alex Lorenz
b8c61e1aed
Merge pull request #60446 from hyp/eng/SwiftTypeRepresentationInCxx
...
[interop][SwiftToCxx] docs: add SwiftTypeRepresentationInC++ document
2022-08-08 13:20:25 -07:00
Alex Lorenz
2361f9c291
[interop][SwiftToCxx] docs: add SwiftTypeRepresentationInC++ document
2022-08-08 11:18:01 -07:00
Alex Lorenz
3873603a90
[interop][SwiftToCxx] docs: update status page to reflect class support
2022-08-03 14:11:08 +01:00
Alex Lorenz
6831130060
[interop][SwiftToCxx] docs: add a user guide section on class inheritance
2022-08-03 14:00:27 +01:00
Alex Lorenz
2879a751d3
[interop][SwiftToCxx] docs, add initial user guide docs for class types and ARC
2022-08-02 11:52:26 +01:00
Alex Lorenz
783186486a
[interop][docs] Add compiler requirement line to user guide for reverse interop
2022-07-28 12:25:49 +01:00
Alex Lorenz
954e89cef0
[interop][docs] cleanup CallingSwiftFromC++ guide
2022-07-28 12:25:49 +01:00
Alex Lorenz
d9969ad189
Merge pull request #60243 from hyp/eng/ifixes2
...
[interop][SwiftToCxx] support `is/has` property getters and fix pass/return support for `Unsafe{Mutable}Pointer` types.
2022-07-26 20:51:18 +01:00
Ben Barham
184541484f
Merge pull request #60225 from bnbarham/move-cxx-interop-back-to-driver
...
[Options] Move CXX interop back to a driver option
2022-07-26 09:13:34 -07:00
Alex Lorenz
3b4c6bffd8
[interop][SwiftToCxx] remap bool is/has property getters directly as is/has methods in C++
2022-07-26 14:34:40 +01:00
Alex Lorenz
62fa2a0eba
[interop][docs] add language markers to some doc snippets in reverse interop user guide
2022-07-26 13:47:00 +01:00
Alex Lorenz
c5a617af8a
[interop][docs] udpate CppInteroperabilityStatus.md for reverse interop
2022-07-26 13:42:46 +01:00
Ben Barham
3ac580261e
[Options] Move CXX interop back to a driver option
...
This flag is required in the driver to eg. choose `clang` vs `clang++`
for the linker. Move it back to a driver option and hide both it and the
stdlib flag from help.
2022-07-25 15:29:14 -07:00
Alex Lorenz
a3ab0c29f7
[interop][SwiftToCxx] add initial design / user guide document for reverse interop
2022-07-22 17:47:18 +01:00
Zoe Carver
33335f968f
Merge pull request #59624 from zoecarver/disable-eager-import
2022-07-19 20:32:37 -04:00
zoecarver
3498ff9765
[cxx-interop] Remove UnsafeLifetimeOperation record semantic kind.
...
This makes "owned" the default kind for records that have custom copy constructors and no pointer-members.
2022-07-18 17:15:15 -04:00
zoecarver
6acffbbee6
[cxx-interop] Flip the switch: only import safe APIs.
2022-07-18 17:15:15 -04:00
Anthony Latsis
09a9a613c4
docs: Migrate from SR issues to GitHub issues
2022-07-14 05:10:55 +03:00
Alex Lorenz
e155b1bd87
[docs] Update CppInteroperabilityStatus for reverse interop
2022-06-17 17:07:53 -07:00