[all-commits] [llvm/llvm-project] 0c8db8: [libc] add scanf reader
michaelrj-google via All-commits
all-commits at lists.llvm.org
Mon Nov 7 13:49:13 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0c8db885f62713af06116fc02cf19b4e0ba701f4
https://github.com/llvm/llvm-project/commit/0c8db885f62713af06116fc02cf19b4e0ba701f4
Author: Michael Jones <michaelrj at google.com>
Date: 2022-11-07 (Mon, 07 Nov 2022)
Changed paths:
M libc/src/stdio/scanf_core/CMakeLists.txt
A libc/src/stdio/scanf_core/file_reader.cpp
A libc/src/stdio/scanf_core/file_reader.h
A libc/src/stdio/scanf_core/reader.cpp
A libc/src/stdio/scanf_core/reader.h
A libc/src/stdio/scanf_core/string_reader.cpp
A libc/src/stdio/scanf_core/string_reader.h
M libc/test/src/stdio/scanf_core/CMakeLists.txt
A libc/test/src/stdio/scanf_core/string_reader_test.cpp
Log Message:
-----------
[libc] add scanf reader
This is the interface that will be used to read from a file or string in
scanf. This patch also adds the string and file implementations of the
reader, although the file reader is not yet complete since ungetc has
not yet been implemented.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D137117
Commit: 1c40d5ec7dc5b782262c79b0f7a57bfea6fbe75c
https://github.com/llvm/llvm-project/commit/1c40d5ec7dc5b782262c79b0f7a57bfea6fbe75c
Author: Michael Jones <michaelrj at google.com>
Date: 2022-11-07 (Mon, 07 Nov 2022)
Changed paths:
M libc/src/stdio/scanf_core/CMakeLists.txt
A libc/src/stdio/scanf_core/converter.cpp
A libc/src/stdio/scanf_core/converter.h
M libc/src/stdio/scanf_core/core_structs.h
M libc/src/stdio/scanf_core/reader.cpp
M libc/src/stdio/scanf_core/reader.h
A libc/src/stdio/scanf_core/scanf_main.cpp
A libc/src/stdio/scanf_core/scanf_main.h
A libc/src/stdio/scanf_core/string_converter.cpp
A libc/src/stdio/scanf_core/string_converter.h
M libc/test/src/stdio/scanf_core/CMakeLists.txt
A libc/test/src/stdio/scanf_core/converter_test.cpp
Log Message:
-----------
[libc] add scanf string converters
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.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D137376
Compare: https://github.com/llvm/llvm-project/compare/6a6101958a9e...1c40d5ec7dc5
More information about the All-commits
mailing list