Commit Graph

454 Commits

Author SHA1 Message Date
Roberto Rosmaninho
782bc6aa6f [Interop][SwiftToCxx] Moving swift::Expected to _SwiftStdlibCxxOverlay.h 2022-12-14 12:07:43 -03:00
Roberto Rosmaninho
74450be9d2 [Interop][SwiftToCxx] Moving the max function to _impl namespace and assigning swift-expected-execution.cpp as unsupported by Windows. 2022-12-14 12:07:43 -03:00
Roberto Rosmaninho
6d1696260f [Interop] [SwiftToCxx] Using buffer to create an instance for either a type or an Error and fixing minor errors 2022-12-14 12:07:43 -03:00
Roberto Rosmaninho
3f6351d2ee [Interop][SwiftToCxx] Add new line 2022-12-14 12:07:43 -03:00
Roberto Rosmaninho
c42dfea346 [Interop][SwiftToCxx] Creating test cases for swift::Expected 2022-12-14 12:07:43 -03:00
swift-ci
8df84bd87a Merge remote-tracking branch 'origin/main' into rebranch 2022-12-13 20:54:17 -08:00
Alex Lorenz
7ce977832b Merge pull request #62553 from hyp/eng/string-fromstdtring
[interop][SwiftToCxx] support std::string -> Swift::String conversion…
2022-12-13 20:52:40 -08:00
Alex Lorenz
5c703b4f5c [interop][SwiftToCxx] support std::string -> Swift::String conversion in C++ 2022-12-13 13:13:05 -08:00
swift-ci
1250635d84 Merge remote-tracking branch 'origin/main' into rebranch 2022-12-08 17:33:17 -08:00
Daniel Rodríguez Troitiño
c477dad3c2 Mark unsupported-decls-in-cxx as REQUIRES: distributed (#62452)
The test tries to import Distributed, but it will fail to pass if the
compiler/stdlib has not been built with experimental distributed
support.
2022-12-08 17:15:50 -08:00
swift-ci
77a615dea8 Merge remote-tracking branch 'origin/main' into rebranch 2022-12-06 16:37:06 -08:00
Alex Lorenz
d0e5372fc0 [interop][SwiftToCxx] give explicit error for @alwaysEmitIntoClient exposed functions 2022-12-06 11:44:29 -08:00
Erik Eckstein
d89c6b2d70 Merge remote-tracking branch 'origin/main' into rebranch 2022-12-01 07:48:51 +01:00
Alex Lorenz
c79017115d Merge pull request #62311 from hyp/eng/nsstring2stringcxx
[interop][SwiftToCxx] support NSString -> Swift String bridging in C++
2022-11-30 09:28:45 -08:00
Alex Lorenz
45c3d47aa1 Merge pull request #62307 from hyp/eng/Fix-stirng-nsstring-cov
[interop][SwiftToCxx] use the more appropriate String -> NSString bri…
2022-11-29 21:13:40 -08:00
Alex Lorenz
cd67584015 [interop][SwiftToCxx] support NSString -> Swift String bridging in C++ 2022-11-29 16:52:50 -08:00
swift-ci
c2c0601fd6 Merge remote-tracking branch 'origin/main' into rebranch 2022-11-29 15:54:37 -08:00
Alex Lorenz
83db71b64e [interop][SwiftToCxx] use the more appropriate String -> NSString bridging invocation
This fixes some CI failures
2022-11-29 15:19:26 -08:00
Roberto Rosmaninho
fdc1d0ce90 [Interop][SwiftToCxx] Erasing NaiveException call and result on core test 2022-11-18 22:16:00 -03:00
Roberto Rosmaninho
b42f45cb21 [Interop][SwiftToCxx] Modifying tests to verify the that the dynamic cast error returns a Swift::Optional 2022-11-18 22:16:00 -03:00
swift-ci
d927d1b4a4 Merge remote-tracking branch 'origin/main' into rebranch 2022-11-10 21:13:12 -08:00
Allan Shortlidge
b93a40f03e Test: Temporarily disable swift-functions-errors-execution.cpp on arm64e. 2022-11-10 18:21:57 -08:00
Erik Eckstein
f811676220 rebranch: some test fixes 2022-11-09 18:26:26 +01:00
Alex Lorenz
0312e0613d [interop][SwiftToCxxToSwift] hide reverse interop module namespaces from forward interop 2022-11-07 15:52:04 -08:00
Alex Lorenz
fdababa494 Merge pull request #61916 from hyp/eng/async-fns
[interop][SwiftToCxx] report an error for attempts to explicitly expo…
2022-11-07 10:07:02 -08:00
Alex Lorenz
bd6367986e [interop][SwiftToCxx] report an error for attempts to explicitly expose 'async' functions to C++
also fixup distributed actor example in interop test
2022-11-03 13:46:52 -07: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
1a277f239e [interop][SwiftToCxx] actor tests should disable availability checking on macos 2022-11-02 14:40:28 -07:00
Alex Lorenz
1c19c15c78 [interop][SwiftToCxx] actor tests require Concurrency 2022-11-02 12:28:10 -07:00
Alex Lorenz
0d754e1d3f [interop][SwiftToCxx] add support for exposing non-isolated actor declarations 2022-11-02 12:17:55 -07:00
Alex Lorenz
6df54eb24a [interop][SwiftToCxx] NFC, add a test that operates on generic Array in C++17 mode 2022-11-01 17:39:08 -07:00
Alex Lorenz
c179e23b19 [interop][SwiftToCxx] add static_assert type checking for generic types in pre-C++20 mode 2022-11-01 17:36:37 -07:00
Alex Lorenz
a66cc52109 [interop][SwiftToCxx] add static_assert type checking for generic functions in pre-C++20 mode
In the future we should also use enable_if to correctly resolve overloads
2022-11-01 17:21:01 -07:00
Alex Lorenz
4b52ae08fa [interop][SwiftToCxx] check that generics can be built in C++17/C++14 mode 2022-11-01 16:40:42 -07:00
Alex Lorenz
953c124ceb [interop][SwiftToCxx] guard 'requires' clauses in __cpp_concepts #ifdefs 2022-11-01 16:17:10 -07:00
Roberto Rosmaninho
5102d19af8 Fixing typo in swift0functions-errors-executions.cpp 2022-10-26 22:22:43 -03:00
Roberto Rosmaninho
edb95c576b Adding unsupported flag for windows-msvc 2022-10-26 20:25:42 -03:00
Roberto Rosmaninho
c92dc41c41 Deleting unnecessary includes and compilation flags 2022-10-21 17:29:00 -03:00
Alex Lorenz
fdc0632659 [interop][SwiftToCxx] do not emit domain ObjC error values in C++ mode 2022-10-21 12:47:18 -07:00
Roberto Rosmaninho
dced1cae29 Fixing test to check the new realist implementation of dynamic cast 2022-10-21 10:22:30 -03:00
Roberto Rosmaninho
5b8a2e213e [SwiftToCxx] Fixing as signature 2022-10-19 17:12:55 -03:00
Roberto Rosmaninho
5af07a470c test/Interop/SwiftToCxx/functions/swift-functions-errors.swift 2022-10-18 18:53:30 -03:00
Alex Lorenz
391b92fff7 [interop][SwiftToCxx] add some helper methods to work with Swift's Optional in C++ 2022-10-05 14:21:13 -07:00
Alex Lorenz
a949ca987e [interop][SwiftToCxx] do not expose actor classes in the generated header 2022-10-04 21:32:00 -07:00
Alex Lorenz
2d961d9e8c [interop][SwiftToCxx] do not print documentation comment for emitted methods if they're not actually emitted 2022-10-04 10:01:48 -07:00
Alex Lorenz
634ba4f903 Merge pull request #61425 from hyp/eng/init-class-bug
[interop][SwiftToCxx] Fix a bug with bridging class initializer in ve…
2022-10-03 22:07:14 -07:00
Alex Lorenz
8710c2685a [interop][SwiftToCxx] Fix a bug with bridging class initializer in version Swift 5 2022-10-03 16:40:28 -07:00
Alex Lorenz
f8b54e7ea7 [interop][SwiftToCxx] guard inline emitted Stdlib module 2022-10-03 11:31:06 -07:00
Alex Lorenz
f6cc59246b [interop][SwiftToCxx] fix the include path for swiftToCxx shim header for clang in /usr/local/bin/clang 2022-09-30 07:59:46 -07:00
Alex Lorenz
dd7e068391 [interop][SwiftToCxx] add a Swift stdlib overlay header
It currently provides begin and end functions for array iteration
2022-09-29 07:41:54 -07:00