[libc++][format] Addresses LWG3839.
authorMark de Wever <koraq@xs4all.nl>
Fri, 17 Feb 2023 18:57:58 +0000 (19:57 +0100)
committerMark de Wever <koraq@xs4all.nl>
Tue, 7 Mar 2023 18:20:19 +0000 (19:20 +0100)
commitf68a536a6785e63f3dd91e505a01264dea9c310b
treec9c67b8dc39182b1a68622ea106eb9eea85b6e1d
parent4155503b714bb097ce8cdf3ad03008505210eb08
[libc++][format] Addresses LWG3839.

  LWG3839 range_formatter's set_separator, set_brackets, and
  underlying functions should be noexcept

Adds tests for:

  template<ranges::input_range R, class charT>
     struct range-default-formatter<range_format::sequence, R, charT>

These were missing, the format functions tests for the sequences
are already present.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D144286
13 files changed:
libcxx/docs/Status/Cxx2bIssues.csv
libcxx/include/__format/formatter_tuple.h
libcxx/include/__format/range_default_formatter.h
libcxx/include/__format/range_formatter.h
libcxx/test/std/utilities/format/format.range/format.range.fmtdef/format.pass.cpp [new file with mode: 0644]
libcxx/test/std/utilities/format/format.range/format.range.fmtdef/parse.pass.cpp [new file with mode: 0644]
libcxx/test/std/utilities/format/format.range/format.range.fmtdef/set_brackets.pass.cpp [new file with mode: 0644]
libcxx/test/std/utilities/format/format.range/format.range.fmtdef/set_separator.pass.cpp [new file with mode: 0644]
libcxx/test/std/utilities/format/format.range/format.range.formatter/set_brackets.pass.cpp
libcxx/test/std/utilities/format/format.range/format.range.formatter/set_separator.pass.cpp
libcxx/test/std/utilities/format/format.range/format.range.formatter/underlying.pass.cpp
libcxx/test/std/utilities/format/format.tuple/set_brackets.pass.cpp
libcxx/test/std/utilities/format/format.tuple/set_separator.pass.cpp