Gábor Horváth
61d60eb6ad
Merge pull request #83483 from Xazax-hun/turn-off-addressable
...
[cxx-interop] Move back addressability behind a flag
2025-08-02 07:13:17 +01:00
Hamish Knight
fb7f2d0ff2
[CS] Limit the number of chained @dynamicMemberLookup lookups
...
Set an upper bound on the number of chained lookups we attempt to
avoid spinning while trying to recursively apply the same dynamic
member lookup to itself.
rdar://157288911
2025-08-01 19:08:04 +01:00
swift-ci
5c7762674f
Merge remote-tracking branch 'origin/main' into rebranch
2025-08-01 10:54:48 -07:00
Adrian Prantl
a6678476d8
[ClangImporter] Prefer serialized bridging headers in LLDB.
...
Especially in an explicit modules project, LLDB might not know all the
search paths needed to imported the on disk header.
rdar://157063577
2025-08-01 10:20:27 -07:00
eeckstein
8335ce577f
Merge pull request #83474 from eeckstein/fix-address-of-property-feature
...
rename the feature AddressOfProperty to AddressOfProperty2
2025-08-01 17:38:19 +02:00
Gabor Horvath
a97d3304b6
[cxx-interop] Move back addressability behind a flag
...
There was another crash found by the bootstrap build bots.
This reverts commit 37ae8a22f4 , reversing
changes made to 6c8da764e2 .
2025-08-01 16:24:32 +01:00
swift-ci
406ad9ecdb
Merge remote-tracking branch 'origin/main' into rebranch
2025-08-01 01:55:36 -07:00
Gábor Horváth
37ae8a22f4
Merge pull request #83430 from Xazax-hun/revert-addressable-flag
...
Revert "[cxx-interop] Move addressable parameters in interop behind a flag"
2025-08-01 08:37:25 +01:00
Erik Eckstein
ec8dcc98ad
rename the feature AddressOfProperty to AddressOfProperty2
...
Fixes a build problem when using a mainline compiler with a 6.2 Swift.swiftinterface file.
This was caused by mistakenly cherry-picking the `#if $AddressOfProperty` conditions in the stdlib into 6.2 without the required compiler change.
2025-08-01 08:00:51 +02:00
swift-ci
99512eecbd
Merge remote-tracking branch 'origin/main' into rebranch
2025-07-31 18:20:17 -07:00
Allan Shortlidge
2b8ab7fbab
AST: Re-baseline SendingArgsAndResults feature.
2025-07-31 10:21:55 -07:00
Allan Shortlidge
a37ce9a543
AST: Re-baseline IsolatedDeinit feature.
2025-07-31 10:21:55 -07:00
Allan Shortlidge
71a5d9bd74
AST: Re-baseline ValueGenericsNameLookup feature.
2025-07-31 10:21:55 -07:00
Allan Shortlidge
1d9e085197
AST: Re-baseline NonescapableTypes feature.
2025-07-31 10:21:55 -07:00
Allan Shortlidge
dd28a3e4b5
AST: Re-baseline IsolatedAny feature.
2025-07-31 10:21:55 -07:00
Allan Shortlidge
491a43a66b
AST: Re-baseline MemorySafetyAttributes feature.
2025-07-31 10:21:55 -07:00
Allan Shortlidge
b8441c1c5d
AST: Re-baseline ValueGenerics feature.
2025-07-31 10:21:55 -07:00
Allan Shortlidge
49dcbb7ad4
AST: Re-baseline BitwiseCopyable2 feature.
2025-07-31 10:21:55 -07:00
Allan Shortlidge
6dd3e49954
AST: Re-baseline BuiltinEmplaceTypedThrows feature.
2025-07-31 10:21:55 -07:00
swift-ci
1ec6a16897
Merge remote-tracking branch 'origin/main' into rebranch
2025-07-31 00:16:06 -07:00
Pavel Yaskevich
4d76319919
Merge pull request #83392 from xedin/rdar-156896778
...
[Sema] Increase depth and count limits for opaque result type substit…
2025-07-31 00:03:23 -07:00
swift-ci
3998a187f9
Merge remote-tracking branch 'origin/main' into rebranch
2025-07-30 09:36:41 -07:00
Gabor Horvath
254f72fdb4
Revert "[cxx-interop] Move addressable parameters in interop behind a flag"
...
This reverts commit f270e36aa5 .
2025-07-30 15:24:45 +01:00
Anthony Latsis
3f841b515c
Merge remote-tracking branch 'origin/main' into jepa-rebranch
2025-07-30 14:31:33 +01:00
Pavel Yaskevich
7df58a720f
[Sema] Increase depth and count limits for opaque result type substitutions
...
Let's set the limits to high end of what we'd expect to prevent regressions.
These still require some profiling to fine-tune but the original limits are
far too small for SwiftUI views we see in pactice.
Resolves: rdar://156896778
2025-07-29 11:56:41 -07:00
Anthony Latsis
fec049e5e4
Address llvm::PointerUnion::{is,get} deprecations
...
These were deprecated in
https://github.com/llvm/llvm-project/pull/122623 .
2025-07-29 18:37:48 +01:00
Gabor Horvath
f270e36aa5
[cxx-interop] Move addressable parameters in interop behind a flag
...
This unblocks the CI while we figure out some SILGen issues. We cannot
reuse AddressableParameters because that is already used in some
projects and consuming modules where the AddressableParameters flag was not
propagated to results in deserialization errors.
2025-07-28 23:29:22 +01:00
Doug Gregor
436e965b66
[SE-0466] Under main actor default isolation, explicit nonisolated is not special
...
Given an explicitly-nonisolated type such as
nonisolated struct S { }
all extensions of S were also being treated as nonisolated. This meant
that being implicitly nonisolated (i.e., when you're using nonisolated
default isolation) was different from explicitly-writing nonisolated,
which is unfortunate and confusing. Align the rules, such that an
extension of S will get default isolation:
extension S {
func f() { } // @MainActor if we're in main actor default isolation
}
2025-07-25 09:46:34 -07:00
Artem Chikin
b60bc39ee5
[APINotes] Add support for handling Clang modules carrying all versions of APINotes
...
Controlled from Swift with '-version-independent-apinotes', which, for the underlying Clang invocation enables '-fswift-version-independent-apinotes', results in PCMs which aggregate all versioned APINotes wrapped in a 'SwiftVersionedAttr', with the intent to have the client pick and apply only those that match its current Swift version, discarding the rest.
This change introduces the configuration flags for this mode as well as the corresponding logic at the beginning of `importDeclImpl` to canonicalize versioned attributes, i.e. select the appropriate attributes for the current target and discard the rest.
2025-07-24 09:08:31 -07:00
swift-ci
298013bf87
Merge remote-tracking branch 'origin/main' into rebranch
2025-07-23 16:37:10 -07:00
Doug Gregor
5023b90f93
Merge pull request #82921 from DougGregor/sendable-prohibits-mainactor-by-default
...
[SE-0466] Enable SendableProhibitsMainActorInference by default
2025-07-23 16:21:37 -07:00
swift-ci
4bbcafe674
Merge remote-tracking branch 'origin/main' into rebranch
2025-07-23 10:57:03 -07:00
Kuba (Brecka) Mracek
407ef9a302
Merge pull request #83238 from kubamracek/const-cgfloat-typedef
...
[ClangImporter] Skip importing values for CGFloat typedefs on top of CGFloats direct
2025-07-23 10:43:24 -07:00
swift-ci
367f0082fc
Merge remote-tracking branch 'origin/main' into rebranch
2025-07-22 22:17:45 -07:00
Kuba Mracek
6ec280d4e1
[ClangImporter] Skip importing values for CGFloat typedefs on top of CGFloats direct
2025-07-22 10:10:15 -07:00
Anthony Latsis
58f957c99e
unittests: Adjust code after changes to llvm::TrailingObjects API
...
See:
- https://github.com/llvm/llvm-project/pull/138970
- https://github.com/llvm/llvm-project/pull/144930
2025-07-22 06:47:45 +01:00
Anthony Latsis
2920ea84d1
Address llvm::(Mutable)ArrayRef ctor deprecations
...
See:
- https://github.com/llvm/llvm-project/pull/146113
- https://github.com/llvm/llvm-project/pull/146011
2025-07-21 12:36:53 +01:00
Anthony Latsis
d71d0f92b4
Merge pull request #83188 from swiftlang/jepa-rebranch
...
[rebranch] Get rebranch swift-frontend building again
2025-07-19 21:51:16 +01:00
swift-ci
4b7b1adc3d
Merge remote-tracking branch 'origin/main' into rebranch
2025-07-19 06:37:26 -07:00
Slava Pestov
bb4f61e97b
Merge pull request #83141 from slavapestov/fix-rdar82992151
...
Sema: Improve the infinite opaque return type check
2025-07-19 09:30:17 -04:00
Anthony Latsis
c1d794364b
Adjust code after changes to llvm::TrailingObjects API
...
See:
- https://github.com/llvm/llvm-project/pull/138970
- https://github.com/llvm/llvm-project/pull/144930
2025-07-19 01:48:18 +01:00
Slava Pestov
4eaa7e3b47
AST: Add -max-substitution-count= and -max-substitution-depth= frontend flags
2025-07-18 20:03:03 -04:00
swift-ci
bb003b7ff9
Merge remote-tracking branch 'origin/main' into rebranch
2025-07-17 18:40:29 -07:00
Gabor Horvath
4b64abdc45
[cxx-interop] Configure requires ObjC from frontend option
...
We sometimes don't have the information in the modulemaps whether a
module requires ObjC or not. This info is useful for reverse interop.
This PR introduces a frontend flag to have a comma separated list of
modules that we should import as if they had "requires ObjC" in their
modulemaps.
2025-07-17 21:29:50 +01:00
swift-ci
90c32c2aad
Merge remote-tracking branch 'origin/main' into rebranch
2025-07-16 00:55:25 -07:00
Anthony Latsis
90f9fce339
Merge pull request #82665 from swiftlang/jepa4
...
Bridging: Bridge some basic classes like `swift::SourceLoc` directly
2025-07-16 08:27:12 +01:00
Anthony Latsis
5620abbad8
Bridging: Bridge swift::CharSourceRange directly
2025-07-15 21:34:48 +01:00
Anthony Latsis
9001ce4687
Bridging: Bridge swift::SourceRange directly
2025-07-15 21:33:28 +01:00
Anthony Latsis
6eb5d7d857
Bridging: Bridge swift::SourceLoc directly
2025-07-15 21:33:06 +01:00
swift-ci
4cc93648e9
Merge remote-tracking branch 'origin/main' into rebranch
2025-07-15 03:16:06 -07:00