Skip to content

Add assertions verifying that trailing objects of RawSyntax fit inside RawSyntaxDataElement #253

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

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 13, 2021

Assert that RawSyntaxDataElement holds enough space for each trailing object. This should be satisfied now but might allow us to catch regressions later more easily.

@ahoppen ahoppen requested a review from akyrtzi January 13, 2021 11:13
@ahoppen
Copy link
Member Author

ahoppen commented Jan 13, 2021

@swift-ci Please test

@ahoppen ahoppen merged commit c4f53d3 into swiftlang:main Jan 15, 2021
@ahoppen ahoppen deleted the rawsyntax-trailing-objects-size-assertions branch January 14, 2023 08:21
adevress pushed a commit to adevress/swift-syntax that referenced this pull request Jan 14, 2024
SwiftFormatPrettyPrint: update for API changes
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.

2 participants