Commit Graph

13 Commits

Author SHA1 Message Date
Henrik G. Olsson
6a9ac22cd2 Merge pull request #84507 from hnrklssn/swiftify-import-as-method
[Swiftify] Add support for free functions imported as instance methods

(cherry picked from commit ed4f058c01)
2025-10-07 20:12:44 -07:00
Gabor Horvath
07a7afe142 [6.2][cxx-interop] Proper conversions between MutableSpan and C++ span
Explanation: One of the initializers were missing and the other was crashing at
runtime due to a faulty signature in the overlay.
Issue: rdar://149846666
Risk: Low, the fix is additive.
Testing: Regression test added.
Original PR: #81097
Reviewer:
2025-04-25 11:31:39 +01:00
Guillaume Lessard
aecaae3004 [gardening] adjust Span availability in more tests 2025-03-12 12:44:17 -07:00
Erik Eckstein
3a2371305a tests: temporarily disable two Cxx tests on Windows because they fail in PR testing
rdar://144384453
2025-02-07 16:04:02 +01:00
Gabor Horvath
b6cc118f71 [cxx-interop] Explicit conversions between Swift and C++ spans
A first step towards creating safe overloads for C++ APIs using span
(rdar://139074571).

Note that we need to mark span as owned because it the libc++
implementation was mistakenly recognized as owned and might now rely on
span methods like `data` being renamed as `__dataUnsafe`. We will change
it under a new interop version. But for the time being, we want
consistent behavior across stdlib versions.
2024-12-13 16:01:02 +00:00
smonteiro2
2e2bd2f4d4 Change hardening level in std::span test
Fix rdar://134730449
2024-09-02 11:21:10 +01:00
smonteiro2
2541735714 [cxx-interop] Test: initialize std::span in C++ from Swift array 2024-07-25 15:05:57 +01:00
smonteiro2
684e9ebf0c [cxx-interop] Implements CxxMutableSpan, created from an UnsafeMutableBufferPointer
* Added tests for generic functions
* Add some tests for mutable spans
* Initialize ConstSpan from UnsafeMutableBufferPointer
* Change hardening flag
2024-07-19 10:38:52 +01:00
smonteiro2
f75a2f596f Add tests for span inside struct 2024-07-04 16:02:27 +01:00
susmonteiro
e86099c26d [cxx-interop] Implements constructor for std::span from UnsafeBufferPointer
Tests: init span from UnsafeBufferPointer, for loop, map, filter, init Array from span, span of strings
2024-07-01 16:07:28 +01:00
susmonteiro
9aa132bd71 [cxx-interop] Enable hardening when running tests for std::span
Add tests that receive std::span as param
2024-06-28 15:01:23 +01:00
susmonteiro
b3107586f6 [cxx-interop] Add requirement executable_test
rdar://130527435
2024-06-26 12:32:09 +01:00
susmonteiro
76feea8fa7 [cxx-interop] Add std::span tests
Add compiler flag to specify C++20

Disable swift-ci linux tests
2024-06-18 14:32:49 +01:00