[libc-commits] [PATCH] D124421: [libc] add printf writer

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Apr 25 15:48:28 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.

The printf implmentation is made up of three main pieces, the parser,
the converter, and the writer. This patch adds the implementation for
the writer, as well as the function for writing to a string, along with
tests.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124421

Files:
  libc/src/stdio/printf_core/CMakeLists.txt
  libc/src/stdio/printf_core/string_writer.h
  libc/src/stdio/printf_core/writer.cpp
  libc/src/stdio/printf_core/writer.h
  libc/test/src/stdio/printf_core/CMakeLists.txt
  libc/test/src/stdio/printf_core/string_writer_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124421.425043.patch
Type: text/x-patch
Size: 11962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220425/5868ef44/attachment-0001.bin>


More information about the libc-commits mailing list