[libc++][format] Removes vector dependency.
authorMark de Wever <koraq@xs4all.nl>
Thu, 20 Apr 2023 18:39:00 +0000 (20:39 +0200)
committerMark de Wever <koraq@xs4all.nl>
Sun, 30 Apr 2023 11:33:44 +0000 (13:33 +0200)
commit03c7b93aab35106834b6c8dac097ea6bd401ba1e
tree602d3effc53d79a1f1cb2be2a208533bb931892d
parent8d3ff24e1155e03d2df1d6a26b9ec1e886aa1e97
[libc++][format] Removes vector dependency.

During the review of D140653 it was suggested to use vector in
__retarget_buffer instead of manually managing the memory. Due to the
requirements of the Standard it turns out format needs to include vector
leading to a cycle. Therefore switching back to manual memory
management.

This is a preparation to fix https://llvm.org/PR61314

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D148826
libcxx/include/__format/buffer.h
libcxx/test/libcxx/transitive_includes/cxx03.csv
libcxx/test/libcxx/transitive_includes/cxx11.csv
libcxx/test/libcxx/transitive_includes/cxx14.csv
libcxx/test/libcxx/transitive_includes/cxx17.csv
libcxx/test/libcxx/transitive_includes/cxx20.csv
libcxx/test/libcxx/transitive_includes/cxx2b.csv