[all-commits] [llvm/llvm-project] 74da5e: [libc] add result class to strtointeger
michaelrj-google via All-commits
all-commits at lists.llvm.org
Fri Dec 9 14:36:00 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 74da5e6c082edff19981892328d724a8e02ffcd9
https://github.com/llvm/llvm-project/commit/74da5e6c082edff19981892328d724a8e02ffcd9
Author: Michael Jones <michaelrj at google.com>
Date: 2022-12-09 (Fri, 09 Dec 2022)
Changed paths:
M libc/src/__support/CMakeLists.txt
M libc/src/__support/high_precision_decimal.h
M libc/src/__support/str_to_float.h
M libc/src/__support/str_to_integer.h
A libc/src/__support/str_to_num_result.h
M libc/src/inttypes/strtoimax.cpp
M libc/src/inttypes/strtoumax.cpp
M libc/src/stdio/printf_core/parser.cpp
M libc/src/stdio/scanf_core/parser.cpp
M libc/src/stdlib/atoi.cpp
M libc/src/stdlib/atol.cpp
M libc/src/stdlib/atoll.cpp
M libc/src/stdlib/strtol.cpp
M libc/src/stdlib/strtoll.cpp
M libc/src/stdlib/strtoul.cpp
M libc/src/stdlib/strtoull.cpp
M utils/bazel/llvm-project-overlay/libc/BUILD.bazel
Log Message:
-----------
[libc] add result class to strtointeger
This is a class intended to improve errno handling for internal
functions by allowing functions to return their result and error status
instead of setting errno. This specific class will be used for
strtointeger and (in a followup patch) strtofloat.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D133163
More information about the All-commits
mailing list