[libc-commits] [PATCH] D133163: [libc] add ErrorAnd class to strtointeger

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Sep 1 15:23:00 PDT 2022


michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133163

Files:
  libc/src/__support/CMakeLists.txt
  libc/src/__support/error_and.h
  libc/src/__support/str_to_integer.h
  libc/src/inttypes/strtoimax.cpp
  libc/src/inttypes/strtoumax.cpp
  libc/src/stdlib/atoi.cpp
  libc/src/stdlib/atol.cpp
  libc/src/stdlib/atoll.cpp
  libc/src/stdlib/strtol.cpp
  libc/src/stdlib/strtoll.cpp
  libc/src/stdlib/strtoul.cpp
  libc/src/stdlib/strtoull.cpp
  utils/bazel/llvm-project-overlay/libc/BUILD.bazel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133163.457423.patch
Type: text/x-patch
Size: 9994 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220901/296eaf9e/attachment.bin>


More information about the libc-commits mailing list