[all-commits] [llvm/llvm-project] 16d5c2: [libc] Add v variants of printf functions
michaelrj-google via All-commits
all-commits at lists.llvm.org
Fri Aug 4 14:50:38 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 16d5c242261832a4bff3de482bd16bd03389fb6d
https://github.com/llvm/llvm-project/commit/16d5c242261832a4bff3de482bd16bd03389fb6d
Author: Michael Jones <michaelrj at google.com>
Date: 2023-08-04 (Fri, 04 Aug 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/include/stdio.h.def
M libc/spec/spec.td
M libc/spec/stdc.td
M libc/src/stdio/CMakeLists.txt
A libc/src/stdio/vfprintf.cpp
A libc/src/stdio/vfprintf.h
A libc/src/stdio/vprintf.cpp
A libc/src/stdio/vprintf.h
A libc/src/stdio/vsnprintf.cpp
A libc/src/stdio/vsnprintf.h
A libc/src/stdio/vsprintf.cpp
A libc/src/stdio/vsprintf.h
M libc/test/src/stdio/CMakeLists.txt
A libc/test/src/stdio/vfprintf_test.cpp
A libc/test/src/stdio/vprintf_test.cpp
A libc/test/src/stdio/vsnprintf_test.cpp
A libc/test/src/stdio/vsprintf_test.cpp
M utils/bazel/llvm-project-overlay/libc/BUILD.bazel
M utils/bazel/llvm-project-overlay/libc/test/src/stdio/BUILD.bazel
Log Message:
-----------
[libc] Add v variants of printf functions
The v variants of the printf functions take their variadic arguments as
a va_list instead of as individual arguments. They are otherwise
identical to the corresponding printf variants. This patch adds them
(vprintf, vfprintf, vsprintf, and vsnprintf) as well as tests.
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D157138
More information about the All-commits
mailing list