[libc-commits] [PATCH] D136288: [libc] add scanf parser and core utilities

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Oct 19 13:29:18 PDT 2022


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 is the first piece of scanf. It's very similar in design to printf,
and so much of the code is copied from that. There were potential issues
with conflicting macros so I've also renamed the "ASSERT_FORMAT_EQ"
macro for printf to "ASSERT_PFORMAT_EQ".


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136288

Files:
  libc/src/stdio/CMakeLists.txt
  libc/src/stdio/scanf_core/CMakeLists.txt
  libc/src/stdio/scanf_core/core_structs.h
  libc/src/stdio/scanf_core/parser.cpp
  libc/src/stdio/scanf_core/parser.h
  libc/src/stdio/scanf_core/scanf_config.h
  libc/test/src/stdio/CMakeLists.txt
  libc/test/src/stdio/printf_core/parser_test.cpp
  libc/test/src/stdio/scanf_core/CMakeLists.txt
  libc/test/src/stdio/scanf_core/parser_test.cpp
  libc/utils/UnitTest/CMakeLists.txt
  libc/utils/UnitTest/PrintfMatcher.h
  libc/utils/UnitTest/ScanfMatcher.cpp
  libc/utils/UnitTest/ScanfMatcher.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136288.469026.patch
Type: text/x-patch
Size: 53970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221019/a16bccb2/attachment-0001.bin>


More information about the libc-commits mailing list