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
Alex Lorenz
3a9b6dce9d
[interop][SwiftToCxx] add support for emitting Swift stdlib dependency in one header file
...
This is the default behavior. You can disable this by specifying the -clang-header-expose-decls= flag explicitly when generating the header
2022-09-28 08:08:48 -07:00
Alex Lorenz
c193a63fd4
[interop][SwiftToCxx] add -enable-experimental-cxx-interop-in-clang-header flag that lets you enable reverse interop only
2022-09-27 11:26:21 -07: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
5736daf1f1
[interop][SwiftToCxx] support initializers for classes
2022-09-26 17:04:40 -07:00
Alex Lorenz
6f9b683617
[interop][SwiftToCxx] add support for bridging static properties
2022-09-26 12:50:13 -07:00
Alex Lorenz
ae549531ac
Merge pull request #61225 from hyp/eng/fwd-generic-trait
...
[interop][SwiftToCxx] Declare the generic usability type trait before…
2022-09-21 15:56:14 -07:00
Alex Lorenz
2a05109c58
[interop][SwiftToCxx] Declare the generic usability type trait before the C++ class that represents the Swift type
...
This allows you to import a method that returns the type of the context in which the method is declared when such
type is a generic parameter in another type. This means that it's now possible to bridge the initializer for
RawRepresentable enums.
2022-09-21 07:57:32 -07:00
Alex Lorenz
1d6d3ff970
[interop][SwiftToCxx] trap on moves of Swift values for now
...
Move support will be added later
2022-09-21 06:59:29 -07:00