Skip to content

ASTGen: Expose BumpPtrAllocator as @_spi(BumpPtrAllocator) #68860

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

Merged

Conversation

ChiduAnush
Copy link
Contributor

@ChiduAnush ChiduAnush commented Sep 29, 2023

changed @_spi(RawSyntax) import SwiftSyntax in ASTGen.swift to @_spi(BumpPtrAllocator) import SwiftSyntax.

Resolves #68351.

Coupled with swiftlang/swift-syntax#2249.

@@ -4,7 +4,7 @@ import CBasicBridging
// Needed to use SyntaxTransformVisitor's visit method.
@_spi(SyntaxTransformVisitor)
// Needed to use BumpPtrAllocator
@_spi(RawSyntax)
@_spi(BumpPtrAllocator) //updated from RawSyntax
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this comment carries much weight. The _spi(RawSyntax) import was just a temporary measure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay I removed the comment, and made a new commit. please check again. thank you so much for being so patient with me.

Copy link
Collaborator

@AnthonyLatsis AnthonyLatsis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Before we launch tests, could you clean up the commit history by squashing the commits and updating the commit message to something less ambiguous? Here is an idea: «ASTGen: Expose BumpPtrAllocator as @_spi(BumpPtrAllocator».

Commit message formatting guidelines

@ChiduAnush ChiduAnush force-pushed the changeRawSyntaxToBumpPtrAllocator branch from 2d6633e to 8b50a0d Compare October 1, 2023 08:19
@ChiduAnush
Copy link
Contributor Author

please check, I squashed the 2 commits into one using git rebase interactive.

@AnthonyLatsis AnthonyLatsis changed the title update ASTGen.swft to change RawSyntax to BumpPtrAllocator ASTGen: Expose BumpPtrAllocator as @_spi(BumpPtrAllocator) Oct 1, 2023
@AnthonyLatsis
Copy link
Collaborator

swiftlang/swift-syntax#2249

@swift-ci please smoke test

@ahoppen
Copy link
Member

ahoppen commented Oct 9, 2023

swiftlang/swift-syntax#2249

@swift-ci Please smoke test

@hamishknight hamishknight merged commit 2eb90c3 into swiftlang:main Oct 9, 2023
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.

Add a custom @_spi kind to expose BumpPtrAllocator from SwiftSyntax to ASTGen.
4 participants