[libc-commits] [PATCH] D141091: [libc] add scanf float converter

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Jan 5 14:42:02 PST 2023


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

This patch adds the %f/F/e/E/g/G/a/A conversions for scanf, as well as
accompanying tests. This implementation matches the definition set forth
in the standard, which may conflict with some other implementations.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141091

Files:
  libc/src/stdio/scanf_core/CMakeLists.txt
  libc/src/stdio/scanf_core/converter.cpp
  libc/src/stdio/scanf_core/core_structs.h
  libc/src/stdio/scanf_core/float_converter.cpp
  libc/src/stdio/scanf_core/float_converter.h
  libc/src/stdio/scanf_core/int_converter.cpp
  libc/test/src/stdio/CMakeLists.txt
  libc/test/src/stdio/sscanf_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141091.486685.patch
Type: text/x-patch
Size: 26560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230105/cac19e52/attachment-0001.bin>


More information about the libc-commits mailing list