Skip to content

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

Closed
weliveindetail wants to merge 1 commit intoswiftlang:stable/20240723from
weliveindetail:ui128
Closed

🍒 Lex: add support for i128 and ui128 suffixes#10256
weliveindetail wants to merge 1 commit intoswiftlang:stable/20240723from
weliveindetail:ui128

Conversation

@weliveindetail
Copy link
Copy Markdown
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
Copy Markdown
Member Author

@swift-ci please test

@weliveindetail
Copy link
Copy Markdown
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