[libc] Add holder class for va_lists
authorMichael Jones <michaelrj@google.com>
Mon, 4 Apr 2022 18:47:22 +0000 (11:47 -0700)
committerMichael Jones <michaelrj@google.com>
Tue, 5 Apr 2022 18:39:57 +0000 (11:39 -0700)
commit5561ab3495a42fddbc251bec6bef46a1cae9c559
treeb15ce635e34bf341bff662eff5350bf507216da5
parentf9e0bc37dbf74226d79b6b1a9ab30e599b2a1a53
[libc] Add holder class for va_lists

This class is intended to be used in cases where a class is being used
on a va_list. It provides destruction and copy semantics with small
overhead. This is intended to be used in printf.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D123061
libc/src/__support/CMakeLists.txt
libc/src/__support/arg_list.h [new file with mode: 0644]
libc/test/src/__support/CMakeLists.txt
libc/test/src/__support/arg_list_test.cpp [new file with mode: 0644]