Skip to content

🍒 Lex: add support for i128 and ui128 suffixes #10256

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

Closed

Conversation

weliveindetail
Copy link
Member

This is supposed to fix the build issue we see in swiftlang/swift#79840 and swiftlang/swift#79185

Microsoft's compiler supports an extension for 128-bit literals. This is
referenced in `intsafe.h` which is included transitievly. When building
with modules, the literal parsing causes a failure due to the missing
support for the extension. To alleviate this issue, support parsing this
literal, especially now that there is the BitInt extension.

Take the opportunity to tighten up the code slightly by ensuring that we
do not access out-of-bounds characters when lexing the token.
@weliveindetail weliveindetail requested a review from a team as a code owner March 14, 2025 09:17
@weliveindetail
Copy link
Member Author

@swift-ci please test

@weliveindetail
Copy link
Member Author

Superseded by #10253

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