[NFC][libc++][format] Generalizes bracket parsing.
authorMark de Wever <koraq@xs4all.nl>
Sun, 4 Jun 2023 19:32:10 +0000 (21:32 +0200)
committerMark de Wever <koraq@xs4all.nl>
Tue, 18 Jul 2023 18:32:58 +0000 (20:32 +0200)
commiteb703341146b0ba46a47cc4a3878f4f0e0649d71
treede843b94aaf5a066b8ad14926b553f903342fd31
parentf7f744a522927b6300b346dba8f453bdb913236c
[NFC][libc++][format] Generalizes bracket parsing.

Both the tuple formatter and range formatter parse a bracket. Instead of
implementing this twice do it in the generic parser. This is preparation
to improve the diagnostics in the format library.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D155264
libcxx/include/__format/formatter_tuple.h
libcxx/include/__format/parser_std_format_spec.h
libcxx/include/__format/range_formatter.h