[all-commits] [llvm/llvm-project] 27dc2e: [libc] Add C23 binary prefix support to strtointeg...
Shubh Pachchigar via All-commits
all-commits at lists.llvm.org
Thu Jun 11 13:42:29 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 27dc2ec9b323edbb76e56388dbc8064a5109f430
https://github.com/llvm/llvm-project/commit/27dc2ec9b323edbb76e56388dbc8064a5109f430
Author: Shubh Pachchigar <33875085+shubhe25p at users.noreply.github.com>
Date: 2026-06-11 (Thu, 11 Jun 2026)
Changed paths:
M libc/src/__support/str_to_integer.h
M libc/test/src/__support/str_to_integer_test.cpp
M libc/test/src/stdlib/StrtolTest.h
M libc/test/src/wchar/WcstolTest.h
Log Message:
-----------
[libc] Add C23 binary prefix support to strtointeger (#202243)
The C23 standard (N3220 ยง7.24.1.7) requires strtol and related functions
to recognize the 0b/0B prefix when base is 2 or 0. This change
implements that support and adds relevant tests.
Assisted by: Claude Sonnet 4.6 for generating and understanding Tests.
Co-authored-by: shubhe25p <shubhp at Mac.lan>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list