[all-commits] [llvm/llvm-project] 36991d: [libc] add scanf entrypoints
michaelrj-google via All-commits
all-commits at lists.llvm.org
Thu Nov 17 15:38:05 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 36991d8342ca74b68cf74a148af2d1e87823159a
https://github.com/llvm/llvm-project/commit/36991d8342ca74b68cf74a148af2d1e87823159a
Author: Michael Jones <michaelrj at google.com>
Date: 2022-11-17 (Thu, 17 Nov 2022)
Changed paths:
M libc/config/linux/x86_64/entrypoints.txt
M libc/spec/stdc.td
M libc/src/stdio/CMakeLists.txt
A libc/src/stdio/fscanf.cpp
A libc/src/stdio/fscanf.h
A libc/src/stdio/scanf.cpp
A libc/src/stdio/scanf.h
M libc/src/stdio/scanf_core/CMakeLists.txt
A libc/src/stdio/scanf_core/vfscanf_internal.cpp
A libc/src/stdio/scanf_core/vfscanf_internal.h
A libc/src/stdio/sscanf.cpp
A libc/src/stdio/sscanf.h
M libc/test/src/stdio/CMakeLists.txt
A libc/test/src/stdio/fscanf_test.cpp
A libc/test/src/stdio/sscanf_test.cpp
Log Message:
-----------
[libc] add scanf entrypoints
This patch adds scanf, sscanf, and fscanf entrypoints. It also adds unit
tests for sscanf and a basic test to fscanf. The scanf function is
basically impossible to test in an automated fashion due to it recieving
user input.
Reviewed By: sivachandra, lntue
Differential Revision: https://reviews.llvm.org/D138076
More information about the All-commits
mailing list