[all-commits] [llvm/llvm-project] a5a008: [libc] Refactor scanf reader to match printf (#66023)
michaelrj-google via All-commits
all-commits at lists.llvm.org
Fri Sep 22 12:50:15 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a5a008ff4f5908e59ded084cc14a2237f080d681
https://github.com/llvm/llvm-project/commit/a5a008ff4f5908e59ded084cc14a2237f080d681
Author: michaelrj-google <71531609+michaelrj-google at users.noreply.github.com>
Date: 2023-09-22 (Fri, 22 Sep 2023)
Changed paths:
M libc/config/linux/aarch64/entrypoints.txt
M libc/config/linux/riscv64/entrypoints.txt
M libc/config/linux/x86_64/entrypoints.txt
M libc/docs/dev/printf_behavior.rst
M libc/src/stdio/CMakeLists.txt
M libc/src/stdio/printf.cpp
M libc/src/stdio/printf_core/vfprintf_internal.h
M libc/src/stdio/scanf.cpp
M libc/src/stdio/scanf_core/CMakeLists.txt
R libc/src/stdio/scanf_core/file_reader.cpp
R libc/src/stdio/scanf_core/file_reader.h
M libc/src/stdio/scanf_core/reader.cpp
M libc/src/stdio/scanf_core/reader.h
M libc/src/stdio/scanf_core/scanf_main.cpp
R libc/src/stdio/scanf_core/string_reader.cpp
R libc/src/stdio/scanf_core/string_reader.h
R libc/src/stdio/scanf_core/vfscanf_internal.cpp
M libc/src/stdio/scanf_core/vfscanf_internal.h
M libc/src/stdio/sscanf.cpp
M libc/src/stdio/vprintf.cpp
M libc/test/src/stdio/CMakeLists.txt
M libc/test/src/stdio/fprintf_test.cpp
M libc/test/src/stdio/fscanf_test.cpp
M libc/test/src/stdio/scanf_core/CMakeLists.txt
A libc/test/src/stdio/scanf_core/reader_test.cpp
R libc/test/src/stdio/scanf_core/string_reader_test.cpp
M libc/test/src/stdio/vfprintf_test.cpp
M utils/bazel/llvm-project-overlay/libc/BUILD.bazel
Log Message:
-----------
[libc] Refactor scanf reader to match printf (#66023)
In a previous patch, the printf writer was rewritten to use a single
writer class with a buffer and a callback hook. This patch refactors
scanf's reader to match conceptually.
More information about the All-commits
mailing list