Saleem Abdulrasool
d61b8855e9
stdlib: map wchar_t to UInt16 on Windows
...
This is an ABI breaking change for Windows. `WCHAR` on Windows is
mapped to `short` (`-fshort-wchar` makes it `unsigned short`). When C++
interop is enabled, `WCHAR` will be mapped to `wchar_t` which is then
mapped to `short` (or `unsigned short` if `-fshort-wchar` is specified).
Correct the mapping type to get the desired behaviour.
2023-10-09 20:02:48 -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
d7fd1233a9
[interop][SwiftToCxx] emit instance property getters for structs
2022-06-14 17:20:37 -07:00
Alex Lorenz
68fc606510
[interop] NFC, add a method to print out identifier to clang syntax printer
2022-03-24 21:54:44 -07:00
Alex Lorenz
146f9e84ee
[interop][SwiftToC] print out nullability specifiers for primitive C types
2022-03-24 10:53:48 -07:00
Alex Lorenz
5a02fde5ca
[interop] separate out CLong and CUnsignedLong interop test into separate file to make it work on LP64 targets only
2022-03-23 21:35:06 -07:00
Alex Lorenz
81a9cade88
[interop] generate C interfaces for Swift top-level functions that use primitive types
2022-03-22 16:13:42 -07:00