[libc++] Granularize range_format and format_kind declarations (#148876)

While working on #105430 I ran into an issue implementing
[[optional.syn]](https://eel.is/c++draft/optional.syn) because of a
circular include that looked like the following: `optional ->
__format/range_default_formatter.h -> __format/range_formatter.h ->
__format/format_context.h -> optional`. Only `format_kind` and
`range_format` are needed, and so they looked like candidates to be put
into an internal header.
This commit is contained in:
William Tran-Viet
2025-07-17 03:43:12 -04:00
committed by GitHub
parent 1653a093de
commit 2194bca2b7
4 changed files with 74 additions and 41 deletions

View File

@@ -1369,6 +1369,7 @@ module std [system] {
module indic_conjunct_break_table { header "__format/indic_conjunct_break_table.h" }
module parser_std_format_spec { header "__format/parser_std_format_spec.h" }
module range_default_formatter { header "__format/range_default_formatter.h" }
module range_format { header "__format/range_format.h" }
module range_formatter { header "__format/range_formatter.h" }
module unicode { header "__format/unicode.h" }
module width_estimation_table { header "__format/width_estimation_table.h" }