Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge remote-tracking branch 'upstream/main' into wasm32-wasi-test #61

Merged
merged 72 commits into from
Jul 31, 2024

Conversation

kkebo
Copy link
Owner

@kkebo kkebo commented Jul 31, 2024

No description provided.

Matejkob and others added 30 commits July 4, 2024 14:03
…dd a way to customize lookup behavior through `LookupConfig`/
Similar treatment as 'SyntaxVisitor'. Reuse `Syntax.Info` when it's safe
to do so (i.e. uniquely referenced)
Returnning array literal from computed property allocates and
initializes the array buffer every time it's called, and they are
deallocated after use.
Make them stored properties so they stay in memory.
Building standard operator table is not trivial. Make is an immutable
stored property so it stays in memory once it's initialized.
Factor out 'Syntax.Info' reusing into 'SyntaxNodeFactory' and
'SyntaxInfoRepository' as the backing storage.
The underlying storage now uses a fixed length 'ManagedBuffer' to avoid
'ContiguousArray' overhead.
Use manually allocated 'UnsafeBufferPointer' to avoid 'ContiguousArray'
overhead. Pre-initialize the buffer with the "old" layout at once, and
update each element only when updated.
This was a generic function only for casting the result at the end.
Hoist the casting part to the caller and make 'visitChilden()'
non-generic.
Simpify the iteration code.
Also, stop counting 'childIndex' as it can be retrieved from the
absolute info.
Use 'SyntaxNodeFactory' in 'SyntaxVisitor' too. Thanks to the simplified
implementation, it improves the performance a bit.
Initializer parameters are "+1" in caller site, but these casting
initializers only uses the ._syntaxNode and don't store the parameter itself.
- instead of treating as unrecognized, try to parse the remaining tokens as a type even if the preceding colon is missing
Workaround for a Foundation bug that can return non-nil URL for
"https://not a url.com".
Add an article about using `SWIFTSYNTAX_ENABLE_RAWSYNTAX_VALIDATION`
Package cross-module-optimization allows non-resilient access between
modules as long as they share the same package name.
[Syntax] Mark the parameter of  casting initializers '__shared'
CONTRIBUTING.md: Update for new Swift.org section about release branch PRs
There's no performance reason to return 'nil'
DougGregor and others added 27 commits July 22, 2024 21:27
[SwiftLexicalLookup][GSoC] Add initial name lookup functionality
…body to be misparsed

`get {}` was parsed by `Parser.parseDeclaration()` but it doesn't parse accessors.

`AccessorDeclSyntax` needs a special implementation of `init(header:bodyBuilder:)`.

rdar://131720084
…nitializer

Fix issue that caused `AccessorDeclSyntax` initializer with header + body to be misparsed
If swift-syntax is being built with `-cxx-interoperability-mode=default`, it fails because of `annot initialize a variable of type 'AtomicBool *' with an rvalue of type 'void *'`. Add a cast here to fix the build issue.

rdar://129252735
… `expansion` method that takes a `conformingTo` parameter

The `expansion` method that takes a `conformingTo` has been defaulted to be source-compatible with older versions of swift-syntax that required a version of the `expansion` function without the `conformingTo` parameter.

That meant that you could state a conformance to `MemberMacro` without implementing any methods and you wouldn’t get any compile time diagnostics.

Deprecate the forwarding default implementation so that you get a warning if you are relying on it.
…stic] returns

This provides a more consistent diagnostics story.
…anup

Address most of the code review comments on the SwiftIfConfig library
[SwiftLexicalLookup][GSoC] Fix Swift 5.8 compatibility and update documentation.
Make position marker  in `ActiveRegionTests` be ascending
[CMake] Enable package CMO only in newer compiler
@kkebo kkebo self-assigned this Jul 31, 2024
@kkebo kkebo merged commit 777c6cc into wasm32-wasi-test Jul 31, 2024
1 check passed
@kkebo kkebo deleted the merge-upstream-main branch July 31, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants