[libc-commits] [PATCH] D137376: [libc] add scanf string converters

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Nov 3 16:09:31 PDT 2022


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

This patch adds the basic conversion facilities to scanf as well as unit
tests for them. It also adds scanf_main which will be used for the
eventual scanf entrypoints.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137376

Files:
  libc/src/stdio/scanf_core/CMakeLists.txt
  libc/src/stdio/scanf_core/converter.cpp
  libc/src/stdio/scanf_core/converter.h
  libc/src/stdio/scanf_core/core_structs.h
  libc/src/stdio/scanf_core/reader.cpp
  libc/src/stdio/scanf_core/reader.h
  libc/src/stdio/scanf_core/scanf_main.cpp
  libc/src/stdio/scanf_core/scanf_main.h
  libc/src/stdio/scanf_core/string_converter.cpp
  libc/src/stdio/scanf_core/string_converter.h
  libc/test/src/stdio/scanf_core/CMakeLists.txt
  libc/test/src/stdio/scanf_core/converter_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137376.473074.patch
Type: text/x-patch
Size: 27309 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221103/f3f1bfb6/attachment-0001.bin>


More information about the libc-commits mailing list