Commit Graph

10 Commits

Author SHA1 Message Date
Egor Zhdan
1be7230876 [cxx-interop] Use C++17 standard by default
Clang is using C++17 standard version by default since Clang 16.

Swift’s ClangImporter should do the same, to make sure that clients who run clang and then swiftc without explicit std version see consistent behavior.

rdar://125777068
2024-04-02 16:23:32 +01:00
Egor Zhdan
78b9de1391 [cxx-interop] Run tests with swift-6 compat mode 2024-02-23 16:24:14 +00:00
Egor Zhdan
bc4cffd699 [cxx-interop] Test more of stdlib with the upcoming compat version 2023-11-28 20:49:00 +00:00
zoecarver
c58c661c87 [cxx-interop][nfc] Disable test for strstr on Linux. 2023-06-30 10:06:22 -07:00
zoecarver
6233a65f7e [cxx-interop][nfc] Disable test for div. 2023-06-28 17:19:44 -07:00
zoecarver
173329ee96 [cxx-interop] only ban strstr, sin, cos, and exit on darwin where the conflict with declarations in the Darwin module; improve the test. 2023-06-28 09:40:09 -07:00
zoecarver
42bc1670a0 [cxx-interop] Re-work control flow when checking for duplicate functions.
Also add back `string.h` as a valid header and ban imports from `_SwiftConcurrencyShims`.
2023-06-27 22:19:22 -07:00
zoecarver
26e30565fa [cxx-interop] Fix ambiguous 'exit' (same solution as above). 2023-06-23 12:33:23 -07:00
zoecarver
067abeb480 [cxx-interop] Pull over fix from 8e7766b and apply to strstr, sin, and cos. 2023-06-23 12:03:14 -07:00
Alex Lorenz
8e7766bf18 [interop] avoid importing math functions from the C++ standard library
They cause ambiguities with math functions from platform's libc
2023-04-27 10:25:51 -07:00