[libc-commits] [PATCH] D125327: [libc] add printf converter

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue May 10 10:19:07 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 adds the main pieces of the last piece of printf, the converter.
This takes the completed format section from the parser and then
converts it to a string for the writer, which is why it was the last
piece to be written. So far it supports chars and strings, but more
pieces are coming. Additionally, it supports replacing all of the
conversion functions with user supplied versions at compile time to
allow for additional functionality.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125327

Files:
  libc/src/stdio/printf_core/CMakeLists.txt
  libc/src/stdio/printf_core/char_converter.h
  libc/src/stdio/printf_core/converter.cpp
  libc/src/stdio/printf_core/converter.h
  libc/src/stdio/printf_core/converter_atlas.h
  libc/src/stdio/printf_core/core_structs.h
  libc/src/stdio/printf_core/parser.cpp
  libc/src/stdio/printf_core/string_converter.h
  libc/test/src/stdio/printf_core/CMakeLists.txt
  libc/test/src/stdio/printf_core/converter_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125327.428425.patch
Type: text/x-patch
Size: 18057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220510/9868030e/attachment.bin>


More information about the libc-commits mailing list