[libc] add mock arg list
authorMichael Jones <michaelrj@google.com>
Thu, 16 Feb 2023 00:03:04 +0000 (16:03 -0800)
committerMichael Jones <michaelrj@google.com>
Fri, 17 Feb 2023 19:18:38 +0000 (11:18 -0800)
commit47fb6d1c65ec227bc3728c401a26d26997b8bcb6
treed8f89d80c29349c8c8c2d11a3b430d89078e0c66
parent5fa9933c13e7f43f176d849e7b42d677b97779e2
[libc] add mock arg list

For testing purposes we need to be able to mock out the ArgList class.
This patch adds a mock version of that class as well as a flag to enable
it.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D144145
libc/src/__support/arg_list.h
libc/src/stdio/printf_core/parser.h