Anthony Latsis
5d5e60766e
Merge pull request #78438 from AnthonyLatsis/cucurbita-maxima
...
AST: Define `NumDiagIDs` instead of redefining the enum
2025-01-09 18:27:57 +00:00
Allan Shortlidge
635ea34bb5
Merge pull request #78503 from tshortli/available-attr-creation-conveniences
...
AST: Introduce new conveniences for synthesizing AvailabilityAttrs
2025-01-09 08:21:40 -08:00
Anthony Latsis
64e8976261
[NFC] AST: Define NumDiagIDs instead of redefining the enum
2025-01-09 14:09:46 +00:00
Anthony Latsis
eb428bea31
Merge pull request #78398 from AnthonyLatsis/micronecta-scholtzi
...
DiagnosticEngine: Fix diagnostic groups behavior for wrapped diagnostics
2025-01-09 11:46:24 +00:00
eeckstein
6b8c341b64
Merge pull request #78464 from eeckstein/sil-linker-error
...
SILLinker: convert an assert to a compiler error message
2025-01-09 07:44:47 +01:00
Allan Shortlidge
70a2363b97
AST: Introduce new conveniences for synthesizing AvailabilityAttrs.
...
This makes intent clearer at the call site and removes a lot of explicit uses
of PlatformAgnosticAvailabilityKind, which is going away.
2025-01-08 19:59:47 -08:00
Slava Pestov
c12e0a1e8f
Merge pull request #78470 from slavapestov/fix-rdar141961300
...
Sema: Fix local property wrappers on constructor
2025-01-08 21:33:12 -05:00
Steven Wu
986e8b554d
Merge pull request #78495 from cachemeifyoucan/eng/PR-fix-warnings-in-headers
2025-01-08 15:49:26 -08:00
Ian Anderson
e73c08c773
Merge pull request #78378 from ian-twilightcoder/nostdlibimport
...
[Driver][Frontend] Add a -nostdlibimport argument
2025-01-08 15:15:05 -08:00
Doug Gregor
9bd48e0177
Merge pull request #78491 from DougGregor/strict-safety-more-cases
...
Strict safety more cases
2025-01-08 13:49:46 -08:00
Allan Shortlidge
9df531a1bd
Merge pull request #78485 from tshortli/adopt-semantic-available-attr-part-3
...
AST: Remove most platform queries from `AvailableAttr`
2025-01-08 12:34:17 -08:00
Anthony Latsis
c4793b6315
DiagnosticEngine: Fix a Diagnostic ctor that skipped group computation
2025-01-08 20:30:09 +00:00
Meghana Gupta
0634babbe6
Merge pull request #78412 from meg-gupta/fixsilcombine
...
Fix SILCombine of existential applies
2025-01-08 12:12:36 -08:00
Steven Wu
fba942641e
[NFC] Fix new warnings in the headers
...
The newer version of clang will issue warnings in more cases,
specifically, -Winvalid-offsetof and -Wunused-but-set-variable.
This cleans up the new warnings issued from header, which shows up for
every TU that includes them. Fixing them should make the remaining
warnings easier to read.
2025-01-08 11:38:53 -08:00
Slava Pestov
c17044381e
Sema: Fix local property wrappers on constructor
...
Fixes rdar://problem/142443421.
2025-01-08 14:31:12 -05:00
Slava Pestov
cc2048764a
Sema: Clean up local property wrapper bookkeeping
2025-01-08 14:31:12 -05:00
Pavel Yaskevich
8f7e71aa97
Merge pull request #78487 from xedin/Sendable-to-Any-for-lvalues
...
[CSApply] Sendable-to-Any: Add support for l-value to l-value and inout unsafe casts
2025-01-08 09:57:02 -08:00
Doug Gregor
c9b2d8ba5f
Diagnose the use of -disable-access-checking with strict safety checking
2025-01-08 09:47:17 -08:00
Allan Shortlidge
9edd9eed9e
AST: Finish adopting SemanticAvailableAttr in AvailabilityInference utilities.
2025-01-08 08:17:27 -08:00
Allan Shortlidge
a882ac6e65
AST: Make some ASTContext parameters const-correct.
2025-01-08 08:17:27 -08:00
Allan Shortlidge
05d342eb98
AST: Remove AvailableAttr::hasPlatform().
...
Use SemanticAvailableAttr::isPlatformSpecific() instead.
2025-01-08 08:17:27 -08:00
Allan Shortlidge
5058534805
AST: Remove AvailableAttr::prettyPlatformString().
2025-01-08 08:17:27 -08:00
Allan Shortlidge
141a6119db
AST: Remove AvailableAttr::platformString().
2025-01-08 08:17:26 -08:00
Allan Shortlidge
c2e8e3060e
AST: Remove AvailableAttr::isActivePlatform().
2025-01-08 08:17:26 -08:00
Allan Shortlidge
b4e2cff9f9
AST: Introduce SemanticAvailableAttr::isSPI().
2025-01-08 08:17:26 -08:00
Joe Groff
bc405c5f0a
Merge pull request #78457 from jckarter/addressable-for-depedencies-2
...
`@_addressableForDependencies` fixes
2025-01-08 07:49:56 -08:00
Doug Gregor
6855dc474f
Uses of @exclusivity(unsafe) variables are unsafe
2025-01-08 07:03:04 -08:00
Erik Eckstein
67b8c08ef1
SILLinker: convert an assert to a compiler error message
...
Having a wrong linkage can happen if the user "re-defines" an existing function with a wrong linkage, e.g. using `@_cdecl`.
2025-01-08 11:00:27 +01:00
Artem Chikin
74883b389a
Merge pull request #78075 from artemcm/ModuleCacheSerializeUpToSpeed
...
[Dependency Scanning] Restore functionality of a binary serialization format of the dependency scanner state/cache
2025-01-07 15:51:02 -08:00
Anthony Latsis
9ae3cf1034
AST: Delete the DeclarationUnavailableFromAsynchronousContext diagnostic group
...
This group has not shipped yet and was added mainly to support test
coverage for d56b7df8a9 . Now that we have
unit tests for this, delete the group, pending discussion.
2025-01-07 20:29:07 +00:00
Anthony Latsis
28ec957132
[NFC] Forward-declare DiagGroupID instead of including
2025-01-07 20:29:07 +00:00
Anthony Latsis
901d566e78
DiagnosticEngine: Fix diagnostic groups behavior for wrapped diagnostics
2025-01-07 20:29:07 +00:00
Pavel Yaskevich
79f6b07961
[CSApply] Mark self parameter as inout when base/self match on deep equality
...
If type equality check fails we need to check whether the types
are the same with deep equality restriction since `any Sendable`
to `Any` conversion is now supported in generic argument positions
of @preconcurrency declarations. i.e. referencing a member on
`[any Sendable]` if member declared in an extension that expects
`Element` to be equal to `Any`.
2025-01-07 10:55:04 -08:00
Meghana Gupta
ed0483b4ce
Fix SILCombine of existential applies
...
Don't use previously found owned concrete values in ossa. They will consumed by
forwarding operations like init_existential_ref. Instead create an unconditional cast
of the opened existential to concrete type and use that to create a concrete apply.
2025-01-07 10:38:25 -08:00
Allan Shortlidge
f9f8cfb7ee
ModuleInterface: Use SemanticAvailableAttr.
2025-01-07 07:31:13 -08:00
Allan Shortlidge
dcfe563294
AST: Remove AvailabilityInference::availableRangeAndAttr()
2025-01-07 07:31:13 -08:00
Allan Shortlidge
efa1afff11
AST: Introduce SemanticAvailableAttr::getIntroducedRange().
...
It replaces the overload of AvailabilityInference::availableRange() that takes
an AvailableAttr.
2025-01-07 07:31:12 -08:00
Allan Shortlidge
f1d0885458
AST: Adopt SemanticAvailableAttr in AvailabilityConstraint.
2025-01-07 07:31:12 -08:00
Allan Shortlidge
4ed62e3154
AST: Introduce Decl::getAvailableAttrForPlatformIntroduction().
...
It replaces `AvailabilityInference::attrForAnnotatedAvailableRange()`.
2025-01-07 07:31:12 -08:00
Hamish Knight
33bff48e92
Merge pull request #78367 from hamishknight/in-context
...
[Sema] Remove RecontextualizeClosures
2025-01-07 09:43:27 +00:00
Joe Groff
31ec17556c
SIL: Only lower nominal types marked with @_addressableForDependencies as such.
...
I accidentally typoed the RecursiveProperties constructor so that every type
was getting treated as addressable-for-dependencies. Oops.
2025-01-06 18:16:28 -08:00
Ian Anderson
87d6979dae
Merge pull request #78303 from ian-twilightcoder/clang-importer-search-paths
...
[ClangImporter] clang's -iframework comes before builtin usr/local/include, but Swift's -Fsystem comes after
2025-01-06 13:05:25 -08:00
Rintaro Ishizaki
660a2ea39a
Merge pull request #78335 from rintaro/revert-revert-77140-swift-lexical-lookup-validation
...
Reapply "[SwiftLexicalLookup] New unqualified lookup implementation validation"
2025-01-06 09:12:45 -08:00
Artem Chikin
7049c5bfea
[Dependency Scanning] Introduce a new constructor for dummy source modules
...
Instead of passing in a bunch of dummy/empty data.
2025-01-06 09:09:32 -08:00
Artem Chikin
5961b9a00b
[Dependency Scanning] Only reuse serialized scanner caches with matching scanning context hash
2025-01-06 09:09:32 -08:00
Artem Chikin
48387eed55
[Dependency Scanning] Keep track of how many filesystem module lookups the dependency scanner performs on a given scan
2025-01-06 09:09:32 -08:00
Artem Chikin
25d32fc7a3
[Dependency Scanning] Add import statement source locations to the dependency scanner cache serialization format
2025-01-06 09:09:32 -08:00
Artem Chikin
b8d1960148
[Dependency Scanning] Add Macro Dependencies to the dependency scanner cache serialization format
2025-01-06 09:09:31 -08:00
Artem Chikin
6fdb788b7e
[Dependency Scanning] Add Link Libraries to the dependency scanner cache serialization format
2025-01-06 09:09:31 -08:00
Artem Chikin
a46e33143a
[Dependency Scanning] Modernize and revive the module dependencies cache serialization format
...
This format has gotten stale and been not in use for many months. This commit restores primary functionality of the format.
2025-01-06 09:09:27 -08:00