zoecarver
e05daed3b4
[cxx-interop] Disable rvalue references. We don't support them correctly (leading to lifetime issues). We are missing a consuming.
2023-05-01 23:13:33 -07:00
zoecarver
839839f924
[cxx-interop] Rename enable-cxx-interop -> enable-experimental-cxx-interop.
...
Also removes the driver flag, this will now also always be guarded on `-Xfrontend`.
2022-04-07 19:15:25 -07:00
zoecarver
caf83c2375
[cxx-interop] Import const-refs as value types when importing clang function types.
...
Otherwise, it will pass the value as a poitner.
2022-03-29 11:42:57 -07:00
zoecarver
b839741d57
[cxx-interop] Support references to template types.
2022-03-04 13:54:42 -08:00
Alex Lorenz
ebb21d7ec1
[cxx-interop] Import const T& parameters as T.
...
This change allows Swift code to pass immutable values to const references in C++.
2022-03-03 14:42:27 -08:00
zoecarver
7a42b71bc0
[cxx-interop] Import reference types as inout not UnsafePointer.
2021-09-23 18:10:56 -07:00
Saleem Abdulrasool
9ba7bf78db
Interop: use new target-clangxx for building C++ code
...
This enables control over the C++ flags used during testing for the C++
interop from a single location rather than having to alter all the
tests.
2021-01-12 08:29:24 -08:00
Saleem Abdulrasool
f5a08e45bc
Interop: restore -std=c++11 for a few tests
...
Restore the explicit C++ standard for these tests as the C++ compiler
invocation on Darwin uses the system compiler rather than the just built
clang, which may be sufficiently different to have different default
standards.
This will be cleaned up with the next change to introduce a new
`%target-clangxx` to control the C++ standard.
2021-01-11 11:01:44 -08:00
Saleem Abdulrasool
21732c9551
Interop: remove unnecessary C++ standard
...
Do not override the C++ standard explicitly when running the tests.
This will eventually be useful in allowing tests to run against
different C++ standards.
2021-01-11 08:57:56 -08:00
Marcel Hlopko
8fa18a42b8
Remove -Xcc -std=c++17 ( #33449 )
2020-08-14 16:42:15 +02:00
Marcel Hlopko
e293330563
[CxxInterop] Import C++ references. ( #31784 )
2020-05-15 10:42:37 +02:00
Saleem Abdulrasool
6bf7593fd5
Revert "[CxxInterop] Import C++ references." ( #31777 )
2020-05-14 10:43:22 +02:00
Marcel Hlopko
30b5fd52e8
[CxxInterop] Import C++ references. ( #31702 )
2020-05-13 13:34:28 +02:00