Skip to content

[libc++][C++03] Remove headers which don't provide anything #134044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2025

Conversation

philnik777
Copy link
Contributor

@philnik777 philnik777 commented Apr 2, 2025

This patch removes all of the frozen headers which don't provide anything. Basically any header that's C++11-or-later is removed from the frozen headers.

This is part of https://discourse.llvm.org/t/rfc-freezing-c-03-headers-in-libc.

@philnik777 philnik777 requested a review from a team as a code owner April 2, 2025 07:54
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Apr 2, 2025
@llvmbot
Copy link
Member

llvmbot commented Apr 2, 2025

@llvm/pr-subscribers-libcxx

Author: Nikolas Klauser (philnik777)

Changes

Patch is 2.79 MiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/134044.diff

578 Files Affected:

  • (modified) libcxx/include/CMakeLists.txt (-438)
  • (removed) libcxx/include/__cxx03/__algorithm/clamp.h (-44)
  • (modified) libcxx/include/__cxx03/__algorithm/count.h (+1-1)
  • (modified) libcxx/include/__cxx03/__algorithm/equal.h (+1-2)
  • (modified) libcxx/include/__cxx03/__algorithm/equal_range.h (+1-1)
  • (modified) libcxx/include/__cxx03/__algorithm/find.h (-1)
  • (modified) libcxx/include/__cxx03/__algorithm/find_end.h (+1-1)
  • (removed) libcxx/include/__cxx03/__algorithm/fold.h (-128)
  • (modified) libcxx/include/__cxx03/__algorithm/for_each.h (-2)
  • (removed) libcxx/include/__cxx03/__algorithm/for_each_n.h (-41)
  • (removed) libcxx/include/__cxx03/__algorithm/in_found_result.h (-54)
  • (removed) libcxx/include/__cxx03/__algorithm/in_fun_result.h (-54)
  • (removed) libcxx/include/__cxx03/__algorithm/in_in_out_result.h (-59)
  • (removed) libcxx/include/__cxx03/__algorithm/in_in_result.h (-56)
  • (removed) libcxx/include/__cxx03/__algorithm/in_out_out_result.h (-57)
  • (removed) libcxx/include/__cxx03/__algorithm/in_out_result.h (-56)
  • (modified) libcxx/include/__cxx03/__algorithm/includes.h (+1-1)
  • (modified) libcxx/include/__cxx03/__algorithm/is_permutation.h (+1-2)
  • (modified) libcxx/include/__cxx03/__algorithm/iterator_operations.h (-5)
  • (removed) libcxx/include/__cxx03/__algorithm/lexicographical_compare_three_way.h (-125)
  • (modified) libcxx/include/__cxx03/__algorithm/lower_bound.h (+1-1)
  • (modified) libcxx/include/__cxx03/__algorithm/make_projected.h (+1-2)
  • (modified) libcxx/include/__cxx03/__algorithm/max.h (-1)
  • (modified) libcxx/include/__cxx03/__algorithm/min.h (-1)
  • (modified) libcxx/include/__cxx03/__algorithm/min_element.h (+1-1)
  • (removed) libcxx/include/__cxx03/__algorithm/min_max_result.h (-56)
  • (modified) libcxx/include/__cxx03/__algorithm/minmax.h (-1)
  • (modified) libcxx/include/__cxx03/__algorithm/minmax_element.h (+1-1)
  • (modified) libcxx/include/__cxx03/__algorithm/partial_sort_copy.h (+1-1)
  • (removed) libcxx/include/__cxx03/__algorithm/pstl.h (-663)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_adjacent_find.h (-83)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_all_of.h (-74)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_any_of.h (-74)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_binary_search.h (-73)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_clamp.h (-66)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_contains.h (-66)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_contains_subrange.h (-97)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_copy.h (-71)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_copy_backward.h (-69)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_copy_if.h (-87)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_copy_n.h (-81)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_count.h (-66)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_count_if.h (-79)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_ends_with.h (-201)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_equal.h (-109)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_equal_range.h (-80)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_fill.h (-62)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_fill_n.h (-53)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_find.h (-80)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_find_end.h (-103)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_find_first_of.h (-106)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_find_if.h (-75)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_find_if_not.h (-69)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_find_last.h (-175)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_for_each.h (-81)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_for_each_n.h (-64)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_generate.h (-73)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_generate_n.h (-65)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_includes.h (-98)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_inplace_merge.h (-84)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_is_heap.h (-81)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_is_heap_until.h (-81)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_is_partitioned.h (-86)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_is_permutation.h (-107)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_is_sorted.h (-67)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_is_sorted_until.h (-82)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_iterator_concept.h (-56)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_lexicographical_compare.h (-106)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_lower_bound.h (-73)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_make_heap.h (-85)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_max.h (-103)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_max_element.h (-69)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_merge.h (-138)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_min.h (-95)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_min_element.h (-81)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_minmax.h (-175)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_minmax_element.h (-78)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_mismatch.h (-100)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_move.h (-74)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_move_backward.h (-76)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_next_permutation.h (-78)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_none_of.h (-75)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_nth_element.h (-84)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_partial_sort.h (-82)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_partial_sort_copy.h (-114)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_partition.h (-88)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_partition_copy.h (-110)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_partition_point.h (-93)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_pop_heap.h (-86)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_prev_permutation.h (-78)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_push_heap.h (-85)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_remove.h (-68)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_remove_copy.h (-81)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_remove_copy_if.h (-95)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_remove_if.h (-89)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_replace.h (-68)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_replace_copy.h (-93)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_replace_copy_if.h (-98)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_replace_if.h (-81)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_reverse.h (-79)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_reverse_copy.h (-70)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_rotate.h (-71)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_rotate_copy.h (-68)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_sample.h (-74)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_search.h (-134)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_search_n.h (-116)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_set_difference.h (-109)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_set_intersection.h (-114)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_set_symmetric_difference.h (-114)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_set_union.h (-115)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_shuffle.h (-72)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_sort.h (-84)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_sort_heap.h (-85)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_stable_partition.h (-92)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_stable_sort.h (-82)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_starts_with.h (-95)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_swap_ranges.h (-70)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_transform.h (-177)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_unique.h (-82)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_unique_copy.h (-120)
  • (removed) libcxx/include/__cxx03/__algorithm/ranges_upper_bound.h (-74)
  • (removed) libcxx/include/__cxx03/__algorithm/sample.h (-123)
  • (modified) libcxx/include/__cxx03/__algorithm/search.h (+1-2)
  • (modified) libcxx/include/__cxx03/__algorithm/search_n.h (+1-3)
  • (modified) libcxx/include/__cxx03/__algorithm/set_difference.h (-1)
  • (modified) libcxx/include/__cxx03/__algorithm/set_intersection.h (-1)
  • (removed) libcxx/include/__cxx03/__algorithm/shift_left.h (-59)
  • (removed) libcxx/include/__cxx03/__algorithm/shift_right.h (-105)
  • (modified) libcxx/include/__cxx03/__algorithm/simd_utils.h (-1)
  • (modified) libcxx/include/__cxx03/__algorithm/sort.h (-1)
  • (modified) libcxx/include/__cxx03/__algorithm/unwrap_range.h (-2)
  • (modified) libcxx/include/__cxx03/__algorithm/upper_bound.h (+1-1)
  • (removed) libcxx/include/__cxx03/__atomic/atomic_ref.h (-378)
  • (removed) libcxx/include/__cxx03/__bit/bit_cast.h (-44)
  • (removed) libcxx/include/__cxx03/__bit/bit_ceil.h (-54)
  • (removed) libcxx/include/__cxx03/__bit/bit_floor.h (-34)
  • (removed) libcxx/include/__cxx03/__bit/bit_log2.h (-34)
  • (removed) libcxx/include/__cxx03/__bit/bit_width.h (-33)
  • (removed) libcxx/include/__cxx03/__bit/byteswap.h (-53)
  • (modified) libcxx/include/__cxx03/__bit/countl.h (-1)
  • (modified) libcxx/include/__cxx03/__bit/countr.h (-1)
  • (removed) libcxx/include/__cxx03/__bit/endian.h (-38)
  • (removed) libcxx/include/__cxx03/__bit/has_single_bit.h (-37)
  • (modified) libcxx/include/__cxx03/__bit/invert_if.h (-1)
  • (modified) libcxx/include/__cxx03/__bit/popcount.h (-1)
  • (modified) libcxx/include/__cxx03/__bit/rotate.h (-1)
  • (modified) libcxx/include/__cxx03/__bit_reference (-1)
  • (removed) libcxx/include/__cxx03/__charconv/chars_format.h (-61)
  • (removed) libcxx/include/__cxx03/__charconv/from_chars_integral.h (-240)
  • (removed) libcxx/include/__cxx03/__charconv/from_chars_result.h (-39)
  • (removed) libcxx/include/__cxx03/__charconv/tables.h (-163)
  • (removed) libcxx/include/__cxx03/__charconv/to_chars.h (-25)
  • (removed) libcxx/include/__cxx03/__charconv/to_chars_base_10.h (-188)
  • (removed) libcxx/include/__cxx03/__charconv/to_chars_floating_point.h (-55)
  • (removed) libcxx/include/__cxx03/__charconv/to_chars_integral.h (-327)
  • (removed) libcxx/include/__cxx03/__charconv/to_chars_result.h (-39)
  • (removed) libcxx/include/__cxx03/__charconv/traits.h (-200)
  • (removed) libcxx/include/__cxx03/__chrono/calendar.h (-44)
  • (removed) libcxx/include/__cxx03/__chrono/concepts.h (-36)
  • (removed) libcxx/include/__cxx03/__chrono/convert_to_tm.h (-202)
  • (removed) libcxx/include/__cxx03/__chrono/day.h (-99)
  • (modified) libcxx/include/__cxx03/__chrono/duration.h (-2)
  • (removed) libcxx/include/__cxx03/__chrono/exception.h (-135)
  • (removed) libcxx/include/__cxx03/__chrono/file_clock.h (-80)
  • (removed) libcxx/include/__cxx03/__chrono/formatter.h (-990)
  • (removed) libcxx/include/__cxx03/__chrono/hh_mm_ss.h (-112)
  • (removed) libcxx/include/__cxx03/__chrono/leap_second.h (-126)
  • (removed) libcxx/include/__cxx03/__chrono/literals.h (-45)
  • (removed) libcxx/include/__cxx03/__chrono/local_info.h (-50)
  • (removed) libcxx/include/__cxx03/__chrono/month.h (-115)
  • (removed) libcxx/include/__cxx03/__chrono/month_weekday.h (-105)
  • (removed) libcxx/include/__cxx03/__chrono/monthday.h (-133)
  • (removed) libcxx/include/__cxx03/__chrono/ostream.h (-322)
  • (removed) libcxx/include/__cxx03/__chrono/parser_std_format_spec.h (-416)
  • (removed) libcxx/include/__cxx03/__chrono/statically_widen.h (-52)
  • (removed) libcxx/include/__cxx03/__chrono/sys_info.h (-51)
  • (modified) libcxx/include/__cxx03/__chrono/time_point.h (-2)
  • (removed) libcxx/include/__cxx03/__chrono/time_zone.h (-182)
  • (removed) libcxx/include/__cxx03/__chrono/time_zone_link.h (-79)
  • (removed) libcxx/include/__cxx03/__chrono/tzdb.h (-94)
  • (removed) libcxx/include/__cxx03/__chrono/tzdb_list.h (-108)
  • (removed) libcxx/include/__cxx03/__chrono/weekday.h (-167)
  • (removed) libcxx/include/__cxx03/__chrono/year.h (-118)
  • (removed) libcxx/include/__cxx03/__chrono/year_month.h (-123)
  • (removed) libcxx/include/__cxx03/__chrono/year_month_day.h (-337)
  • (removed) libcxx/include/__cxx03/__chrono/year_month_weekday.h (-287)
  • (removed) libcxx/include/__cxx03/__chrono/zoned_time.h (-227)
  • (removed) libcxx/include/__cxx03/__compare/common_comparison_category.h (-86)
  • (removed) libcxx/include/__cxx03/__compare/compare_partial_order_fallback.h (-76)
  • (removed) libcxx/include/__cxx03/__compare/compare_strong_order_fallback.h (-73)
  • (removed) libcxx/include/__cxx03/__compare/compare_three_way.h (-40)
  • (removed) libcxx/include/__cxx03/__compare/compare_three_way_result.h (-45)
  • (removed) libcxx/include/__cxx03/__compare/compare_weak_order_fallback.h (-73)
  • (removed) libcxx/include/__cxx03/__compare/is_eq.h (-34)
  • (removed) libcxx/include/__cxx03/__compare/ordering.h (-278)
  • (removed) libcxx/include/__cxx03/__compare/partial_order.h (-77)
  • (removed) libcxx/include/__cxx03/__compare/strong_order.h (-143)
  • (removed) libcxx/include/__cxx03/__compare/synth_three_way.h (-52)
  • (removed) libcxx/include/__cxx03/__compare/three_way_comparable.h (-55)
  • (removed) libcxx/include/__cxx03/__compare/weak_order.h (-105)
  • (removed) libcxx/include/__cxx03/__concepts/arithmetic.h (-56)
  • (removed) libcxx/include/__cxx03/__concepts/assignable.h (-41)
  • (removed) libcxx/include/__cxx03/__concepts/boolean_testable.h (-38)
  • (removed) libcxx/include/__cxx03/__concepts/class_or_enum.h (-35)
  • (removed) libcxx/include/__cxx03/__concepts/common_reference_with.h (-36)
  • (removed) libcxx/include/__cxx03/__concepts/common_with.h (-52)
  • (removed) libcxx/include/__cxx03/__concepts/constructible.h (-55)
  • (removed) libcxx/include/__cxx03/__concepts/convertible_to.h (-33)
  • (removed) libcxx/include/__cxx03/__concepts/copyable.h (-41)
  • (removed) libcxx/include/__cxx03/__concepts/derived_from.h (-33)
  • (removed) libcxx/include/__cxx03/__concepts/destructible.h (-32)
  • (removed) libcxx/include/__cxx03/__concepts/different_from.h (-31)
  • (removed) libcxx/include/__cxx03/__concepts/equality_comparable.h (-56)
  • (removed) libcxx/include/__cxx03/__concepts/invocable.h (-40)
  • (removed) libcxx/include/__cxx03/__concepts/movable.h (-35)
  • (removed) libcxx/include/__cxx03/__concepts/predicate.h (-34)
  • (removed) libcxx/include/__cxx03/__concepts/regular.h (-33)
  • (removed) libcxx/include/__cxx03/__concepts/relation.h (-43)
  • (removed) libcxx/include/__cxx03/__concepts/same_as.h (-35)
  • (removed) libcxx/include/__cxx03/__concepts/semiregular.h (-33)
  • (removed) libcxx/include/__cxx03/__concepts/swappable.h (-123)
  • (removed) libcxx/include/__cxx03/__concepts/totally_ordered.h (-59)
  • (removed) libcxx/include/__cxx03/__coroutine/coroutine_handle.h (-176)
  • (removed) libcxx/include/__cxx03/__coroutine/coroutine_traits.h (-48)
  • (removed) libcxx/include/__cxx03/__coroutine/noop_coroutine_handle.h (-99)
  • (removed) libcxx/include/__cxx03/__coroutine/trivial_awaitables.h (-40)
  • (removed) libcxx/include/__cxx03/__expected/bad_expected_access.h (-73)
  • (removed) libcxx/include/__cxx03/__expected/expected.h (-1874)
  • (removed) libcxx/include/__cxx03/__expected/unexpect.h (-32)
  • (removed) libcxx/include/__cxx03/__expected/unexpected.h (-127)
  • (removed) libcxx/include/__cxx03/__filesystem/copy_options.h (-69)
  • (removed) libcxx/include/__cxx03/__filesystem/directory_entry.h (-435)
  • (removed) libcxx/include/__cxx03/__filesystem/directory_iterator.h (-151)
  • (removed) libcxx/include/__cxx03/__filesystem/directory_options.h (-57)
  • (removed) libcxx/include/__cxx03/__filesystem/file_status.h (-67)
  • (removed) libcxx/include/__cxx03/__filesystem/file_time_type.h (-31)
  • (removed) libcxx/include/__cxx03/__filesystem/file_type.h (-42)
  • (removed) libcxx/include/__cxx03/__filesystem/filesystem_error.h (-88)
  • (removed) libcxx/include/__cxx03/__filesystem/operations.h (-310)
  • (removed) libcxx/include/__cxx03/__filesystem/path.h (-931)
  • (removed) libcxx/include/__cxx03/__filesystem/path_iterator.h (-115)
  • (removed) libcxx/include/__cxx03/__filesystem/perm_options.h (-57)
  • (removed) libcxx/include/__cxx03/__filesystem/perms.h (-80)
  • (removed) libcxx/include/__cxx03/__filesystem/recursive_directory_iterator.h (-164)
  • (removed) libcxx/include/__cxx03/__filesystem/space_info.h (-38)
  • (removed) libcxx/include/__cxx03/__filesystem/u8path.h (-100)
  • (removed) libcxx/include/__cxx03/__format/buffer.h (-655)
  • (removed) libcxx/include/__cxx03/__format/concepts.h (-83)
  • (removed) libcxx/include/__cxx03/__format/container_adaptor.h (-73)
  • (removed) libcxx/include/__cxx03/__format/enable_insertable.h (-35)
  • (removed) libcxx/include/__cxx03/__format/escaped_output_table.h (-863)
  • (removed) libcxx/include/__cxx03/__format/extended_grapheme_cluster_table.h (-1663)
  • (removed) libcxx/include/__cxx03/__format/format_arg.h (-401)
  • (removed) libcxx/include/__cxx03/__format/format_arg_store.h (-266)
  • (removed) libcxx/include/__cxx03/__format/format_args.h (-78)
  • (removed) libcxx/include/__cxx03/__format/format_context.h (-220)
  • (removed) libcxx/include/__cxx03/__format/format_error.h (-50)
  • (removed) libcxx/include/__cxx03/__format/format_functions.h (-680)
  • (removed) libcxx/include/__cxx03/__format/format_parse_context.h (-105)
  • (removed) libcxx/include/__cxx03/__format/format_string.h (-160)
  • (removed) libcxx/include/__cxx03/__format/format_to_n_result.h (-35)
  • (removed) libcxx/include/__cxx03/__format/formatter.h (-53)
  • (removed) libcxx/include/__cxx03/__format/formatter_bool.h (-76)
  • (removed) libcxx/include/__cxx03/__format/formatter_char.h (-93)
  • (removed) libcxx/include/__cxx03/__format/formatter_floating_point.h (-783)
  • (removed) libcxx/include/__cxx03/__format/formatter_integer.h (-95)
  • (removed) libcxx/include/__cxx03/__format/formatter_integral.h (-445)
  • (removed) libcxx/include/__cxx03/__format/formatter_output.h (-335)
  • (removed) libcxx/include/__cxx03/__format/formatter_pointer.h (-72)
  • (removed) libcxx/include/__cxx03/__format/formatter_string.h (-150)
  • (removed) libcxx/include/__cxx03/__format/formatter_tuple.h (-150)
  • (removed) libcxx/include/__cxx03/__format/indic_conjunct_break_table.h (-350)
  • (removed) libcxx/include/__cxx03/__format/parser_std_format_spec.h (-1172)
  • (removed) libcxx/include/__cxx03/__format/range_default_formatter.h (-214)
  • (removed) libcxx/include/__cxx03/__format/range_formatter.h (-264)
  • (removed) libcxx/include/__cxx03/__format/unicode.h (-602)
  • (removed) libcxx/include/__cxx03/__format/width_estimation_table.h (-270)
  • (removed) libcxx/include/__cxx03/__format/write_escaped.h (-242)
  • (modified) libcxx/include/__cxx03/__functional/bind.h (+2-2)
  • (removed) libcxx/include/__cxx03/__functional/bind_back.h (-83)
  • (removed) libcxx/include/__cxx03/__functional/bind_front.h (-54)
  • (removed) libcxx/include/__cxx03/__functional/boyer_moore_searcher.h (-306)
  • (removed) libcxx/include/__cxx03/__functional/compose.h (-53)
  • (removed) libcxx/include/__cxx03/__functional/default_searcher.h (-54)
  • (removed) libcxx/include/__cxx03/__functional/function.h (-1048)
  • (removed) libcxx/include/__cxx03/__functional/invoke.h (-54)
  • (removed) libcxx/include/__cxx03/__functional/is_transparent.h (-34)
  • (modified) libcxx/include/__cxx03/__functional/mem_fn.h (+1-1)
  • (removed) libcxx/include/__cxx03/__functional/not_fn.h (-53)
  • (removed) libcxx/include/__cxx03/__functional/perfect_forward.h (-104)
  • (removed) libcxx/include/__cxx03/__functional/ranges_operations.h (-109)
  • (modified) libcxx/include/__cxx03/__functional/reference_wrapper.h (+1-3)
diff --git a/libcxx/include/CMakeLists.txt b/libcxx/include/CMakeLists.txt
index a021b9bb44d67..00aa2f73f0fba 100644
--- a/libcxx/include/CMakeLists.txt
+++ b/libcxx/include/CMakeLists.txt
@@ -1078,7 +1078,6 @@ set(files
   __cxx03/__algorithm/all_of.h
   __cxx03/__algorithm/any_of.h
   __cxx03/__algorithm/binary_search.h
-  __cxx03/__algorithm/clamp.h
   __cxx03/__algorithm/comp.h
   __cxx03/__algorithm/comp_ref_type.h
   __cxx03/__algorithm/copy.h
@@ -1098,19 +1097,11 @@ set(files
   __cxx03/__algorithm/find_if.h
   __cxx03/__algorithm/find_if_not.h
   __cxx03/__algorithm/find_segment_if.h
-  __cxx03/__algorithm/fold.h
   __cxx03/__algorithm/for_each.h
-  __cxx03/__algorithm/for_each_n.h
   __cxx03/__algorithm/for_each_segment.h
   __cxx03/__algorithm/generate.h
   __cxx03/__algorithm/generate_n.h
   __cxx03/__algorithm/half_positive.h
-  __cxx03/__algorithm/in_found_result.h
-  __cxx03/__algorithm/in_fun_result.h
-  __cxx03/__algorithm/in_in_out_result.h
-  __cxx03/__algorithm/in_in_result.h
-  __cxx03/__algorithm/in_out_out_result.h
-  __cxx03/__algorithm/in_out_result.h
   __cxx03/__algorithm/includes.h
   __cxx03/__algorithm/inplace_merge.h
   __cxx03/__algorithm/is_heap.h
@@ -1122,7 +1113,6 @@ set(files
   __cxx03/__algorithm/iter_swap.h
   __cxx03/__algorithm/iterator_operations.h
   __cxx03/__algorithm/lexicographical_compare.h
-  __cxx03/__algorithm/lexicographical_compare_three_way.h
   __cxx03/__algorithm/lower_bound.h
   __cxx03/__algorithm/make_heap.h
   __cxx03/__algorithm/make_projected.h
@@ -1131,7 +1121,6 @@ set(files
   __cxx03/__algorithm/merge.h
   __cxx03/__algorithm/min.h
   __cxx03/__algorithm/min_element.h
-  __cxx03/__algorithm/min_max_result.h
   __cxx03/__algorithm/minmax.h
   __cxx03/__algorithm/minmax_element.h
   __cxx03/__algorithm/mismatch.h
@@ -1147,99 +1136,7 @@ set(files
   __cxx03/__algorithm/partition_point.h
   __cxx03/__algorithm/pop_heap.h
   __cxx03/__algorithm/prev_permutation.h
-  __cxx03/__algorithm/pstl.h
   __cxx03/__algorithm/push_heap.h
-  __cxx03/__algorithm/ranges_adjacent_find.h
-  __cxx03/__algorithm/ranges_all_of.h
-  __cxx03/__algorithm/ranges_any_of.h
-  __cxx03/__algorithm/ranges_binary_search.h
-  __cxx03/__algorithm/ranges_clamp.h
-  __cxx03/__algorithm/ranges_contains.h
-  __cxx03/__algorithm/ranges_contains_subrange.h
-  __cxx03/__algorithm/ranges_copy.h
-  __cxx03/__algorithm/ranges_copy_backward.h
-  __cxx03/__algorithm/ranges_copy_if.h
-  __cxx03/__algorithm/ranges_copy_n.h
-  __cxx03/__algorithm/ranges_count.h
-  __cxx03/__algorithm/ranges_count_if.h
-  __cxx03/__algorithm/ranges_ends_with.h
-  __cxx03/__algorithm/ranges_equal.h
-  __cxx03/__algorithm/ranges_equal_range.h
-  __cxx03/__algorithm/ranges_fill.h
-  __cxx03/__algorithm/ranges_fill_n.h
-  __cxx03/__algorithm/ranges_find.h
-  __cxx03/__algorithm/ranges_find_end.h
-  __cxx03/__algorithm/ranges_find_first_of.h
-  __cxx03/__algorithm/ranges_find_if.h
-  __cxx03/__algorithm/ranges_find_if_not.h
-  __cxx03/__algorithm/ranges_find_last.h
-  __cxx03/__algorithm/ranges_for_each.h
-  __cxx03/__algorithm/ranges_for_each_n.h
-  __cxx03/__algorithm/ranges_generate.h
-  __cxx03/__algorithm/ranges_generate_n.h
-  __cxx03/__algorithm/ranges_includes.h
-  __cxx03/__algorithm/ranges_inplace_merge.h
-  __cxx03/__algorithm/ranges_is_heap.h
-  __cxx03/__algorithm/ranges_is_heap_until.h
-  __cxx03/__algorithm/ranges_is_partitioned.h
-  __cxx03/__algorithm/ranges_is_permutation.h
-  __cxx03/__algorithm/ranges_is_sorted.h
-  __cxx03/__algorithm/ranges_is_sorted_until.h
-  __cxx03/__algorithm/ranges_iterator_concept.h
-  __cxx03/__algorithm/ranges_lexicographical_compare.h
-  __cxx03/__algorithm/ranges_lower_bound.h
-  __cxx03/__algorithm/ranges_make_heap.h
-  __cxx03/__algorithm/ranges_max.h
-  __cxx03/__algorithm/ranges_max_element.h
-  __cxx03/__algorithm/ranges_merge.h
-  __cxx03/__algorithm/ranges_min.h
-  __cxx03/__algorithm/ranges_min_element.h
-  __cxx03/__algorithm/ranges_minmax.h
-  __cxx03/__algorithm/ranges_minmax_element.h
-  __cxx03/__algorithm/ranges_mismatch.h
-  __cxx03/__algorithm/ranges_move.h
-  __cxx03/__algorithm/ranges_move_backward.h
-  __cxx03/__algorithm/ranges_next_permutation.h
-  __cxx03/__algorithm/ranges_none_of.h
-  __cxx03/__algorithm/ranges_nth_element.h
-  __cxx03/__algorithm/ranges_partial_sort.h
-  __cxx03/__algorithm/ranges_partial_sort_copy.h
-  __cxx03/__algorithm/ranges_partition.h
-  __cxx03/__algorithm/ranges_partition_copy.h
-  __cxx03/__algorithm/ranges_partition_point.h
-  __cxx03/__algorithm/ranges_pop_heap.h
-  __cxx03/__algorithm/ranges_prev_permutation.h
-  __cxx03/__algorithm/ranges_push_heap.h
-  __cxx03/__algorithm/ranges_remove.h
-  __cxx03/__algorithm/ranges_remove_copy.h
-  __cxx03/__algorithm/ranges_remove_copy_if.h
-  __cxx03/__algorithm/ranges_remove_if.h
-  __cxx03/__algorithm/ranges_replace.h
-  __cxx03/__algorithm/ranges_replace_copy.h
-  __cxx03/__algorithm/ranges_replace_copy_if.h
-  __cxx03/__algorithm/ranges_replace_if.h
-  __cxx03/__algorithm/ranges_reverse.h
-  __cxx03/__algorithm/ranges_reverse_copy.h
-  __cxx03/__algorithm/ranges_rotate.h
-  __cxx03/__algorithm/ranges_rotate_copy.h
-  __cxx03/__algorithm/ranges_sample.h
-  __cxx03/__algorithm/ranges_search.h
-  __cxx03/__algorithm/ranges_search_n.h
-  __cxx03/__algorithm/ranges_set_difference.h
-  __cxx03/__algorithm/ranges_set_intersection.h
-  __cxx03/__algorithm/ranges_set_symmetric_difference.h
-  __cxx03/__algorithm/ranges_set_union.h
-  __cxx03/__algorithm/ranges_shuffle.h
-  __cxx03/__algorithm/ranges_sort.h
-  __cxx03/__algorithm/ranges_sort_heap.h
-  __cxx03/__algorithm/ranges_stable_partition.h
-  __cxx03/__algorithm/ranges_stable_sort.h
-  __cxx03/__algorithm/ranges_starts_with.h
-  __cxx03/__algorithm/ranges_swap_ranges.h
-  __cxx03/__algorithm/ranges_transform.h
-  __cxx03/__algorithm/ranges_unique.h
-  __cxx03/__algorithm/ranges_unique_copy.h
-  __cxx03/__algorithm/ranges_upper_bound.h
   __cxx03/__algorithm/remove.h
   __cxx03/__algorithm/remove_copy.h
   __cxx03/__algorithm/remove_copy_if.h
@@ -1252,15 +1149,12 @@ set(files
   __cxx03/__algorithm/reverse_copy.h
   __cxx03/__algorithm/rotate.h
   __cxx03/__algorithm/rotate_copy.h
-  __cxx03/__algorithm/sample.h
   __cxx03/__algorithm/search.h
   __cxx03/__algorithm/search_n.h
   __cxx03/__algorithm/set_difference.h
   __cxx03/__algorithm/set_intersection.h
   __cxx03/__algorithm/set_symmetric_difference.h
   __cxx03/__algorithm/set_union.h
-  __cxx03/__algorithm/shift_left.h
-  __cxx03/__algorithm/shift_right.h
   __cxx03/__algorithm/shuffle.h
   __cxx03/__algorithm/sift_down.h
   __cxx03/__algorithm/simd_utils.h
@@ -1284,7 +1178,6 @@ set(files
   __cxx03/__atomic/atomic_flag.h
   __cxx03/__atomic/atomic_init.h
   __cxx03/__atomic/atomic_lock_free.h
-  __cxx03/__atomic/atomic_ref.h
   __cxx03/__atomic/atomic_sync.h
   __cxx03/__atomic/check_memory_order.h
   __cxx03/__atomic/contention_t.h
@@ -1294,100 +1187,19 @@ set(files
   __cxx03/__atomic/kill_dependency.h
   __cxx03/__atomic/memory_order.h
   __cxx03/__atomic/to_gcc_order.h
-  __cxx03/__bit/bit_cast.h
-  __cxx03/__bit/bit_ceil.h
-  __cxx03/__bit/bit_floor.h
-  __cxx03/__bit/bit_log2.h
-  __cxx03/__bit/bit_width.h
   __cxx03/__bit/blsr.h
-  __cxx03/__bit/byteswap.h
   __cxx03/__bit/countl.h
   __cxx03/__bit/countr.h
-  __cxx03/__bit/endian.h
-  __cxx03/__bit/has_single_bit.h
   __cxx03/__bit/invert_if.h
   __cxx03/__bit/popcount.h
   __cxx03/__bit/rotate.h
   __cxx03/__bit_reference
-  __cxx03/__charconv/chars_format.h
-  __cxx03/__charconv/from_chars_integral.h
-  __cxx03/__charconv/from_chars_result.h
-  __cxx03/__charconv/tables.h
-  __cxx03/__charconv/to_chars.h
-  __cxx03/__charconv/to_chars_base_10.h
-  __cxx03/__charconv/to_chars_floating_point.h
-  __cxx03/__charconv/to_chars_integral.h
-  __cxx03/__charconv/to_chars_result.h
-  __cxx03/__charconv/traits.h
-  __cxx03/__chrono/calendar.h
-  __cxx03/__chrono/concepts.h
   __cxx03/__chrono/convert_to_timespec.h
-  __cxx03/__chrono/convert_to_tm.h
-  __cxx03/__chrono/day.h
   __cxx03/__chrono/duration.h
-  __cxx03/__chrono/exception.h
-  __cxx03/__chrono/file_clock.h
-  __cxx03/__chrono/formatter.h
-  __cxx03/__chrono/hh_mm_ss.h
   __cxx03/__chrono/high_resolution_clock.h
-  __cxx03/__chrono/leap_second.h
-  __cxx03/__chrono/literals.h
-  __cxx03/__chrono/local_info.h
-  __cxx03/__chrono/month.h
-  __cxx03/__chrono/month_weekday.h
-  __cxx03/__chrono/monthday.h
-  __cxx03/__chrono/ostream.h
-  __cxx03/__chrono/parser_std_format_spec.h
-  __cxx03/__chrono/statically_widen.h
   __cxx03/__chrono/steady_clock.h
-  __cxx03/__chrono/sys_info.h
   __cxx03/__chrono/system_clock.h
   __cxx03/__chrono/time_point.h
-  __cxx03/__chrono/time_zone.h
-  __cxx03/__chrono/time_zone_link.h
-  __cxx03/__chrono/tzdb.h
-  __cxx03/__chrono/tzdb_list.h
-  __cxx03/__chrono/weekday.h
-  __cxx03/__chrono/year.h
-  __cxx03/__chrono/year_month.h
-  __cxx03/__chrono/year_month_day.h
-  __cxx03/__chrono/year_month_weekday.h
-  __cxx03/__chrono/zoned_time.h
-  __cxx03/__compare/common_comparison_category.h
-  __cxx03/__compare/compare_partial_order_fallback.h
-  __cxx03/__compare/compare_strong_order_fallback.h
-  __cxx03/__compare/compare_three_way.h
-  __cxx03/__compare/compare_three_way_result.h
-  __cxx03/__compare/compare_weak_order_fallback.h
-  __cxx03/__compare/is_eq.h
-  __cxx03/__compare/ordering.h
-  __cxx03/__compare/partial_order.h
-  __cxx03/__compare/strong_order.h
-  __cxx03/__compare/synth_three_way.h
-  __cxx03/__compare/three_way_comparable.h
-  __cxx03/__compare/weak_order.h
-  __cxx03/__concepts/arithmetic.h
-  __cxx03/__concepts/assignable.h
-  __cxx03/__concepts/boolean_testable.h
-  __cxx03/__concepts/class_or_enum.h
-  __cxx03/__concepts/common_reference_with.h
-  __cxx03/__concepts/common_with.h
-  __cxx03/__concepts/constructible.h
-  __cxx03/__concepts/convertible_to.h
-  __cxx03/__concepts/copyable.h
-  __cxx03/__concepts/derived_from.h
-  __cxx03/__concepts/destructible.h
-  __cxx03/__concepts/different_from.h
-  __cxx03/__concepts/equality_comparable.h
-  __cxx03/__concepts/invocable.h
-  __cxx03/__concepts/movable.h
-  __cxx03/__concepts/predicate.h
-  __cxx03/__concepts/regular.h
-  __cxx03/__concepts/relation.h
-  __cxx03/__concepts/same_as.h
-  __cxx03/__concepts/semiregular.h
-  __cxx03/__concepts/swappable.h
-  __cxx03/__concepts/totally_ordered.h
   __cxx03/__condition_variable/condition_variable.h
   __cxx03/__config
   __cxx03/__configuration/abi.h
@@ -1396,10 +1208,6 @@ set(files
   __cxx03/__configuration/config_site_shim.h
   __cxx03/__configuration/language.h
   __cxx03/__configuration/platform.h
-  __cxx03/__coroutine/coroutine_handle.h
-  __cxx03/__coroutine/coroutine_traits.h
-  __cxx03/__coroutine/noop_coroutine_handle.h
-  __cxx03/__coroutine/trivial_awaitables.h
   __cxx03/__debug_utils/randomize_range.h
   __cxx03/__debug_utils/sanitizers.h
   __cxx03/__debug_utils/strict_weak_ordering_check.h
@@ -1408,81 +1216,18 @@ set(files
   __cxx03/__exception/nested_exception.h
   __cxx03/__exception/operations.h
   __cxx03/__exception/terminate.h
-  __cxx03/__expected/bad_expected_access.h
-  __cxx03/__expected/expected.h
-  __cxx03/__expected/unexpect.h
-  __cxx03/__expected/unexpected.h
-  __cxx03/__filesystem/copy_options.h
-  __cxx03/__filesystem/directory_entry.h
-  __cxx03/__filesystem/directory_iterator.h
-  __cxx03/__filesystem/directory_options.h
-  __cxx03/__filesystem/file_status.h
-  __cxx03/__filesystem/file_time_type.h
-  __cxx03/__filesystem/file_type.h
-  __cxx03/__filesystem/filesystem_error.h
-  __cxx03/__filesystem/operations.h
-  __cxx03/__filesystem/path.h
-  __cxx03/__filesystem/path_iterator.h
-  __cxx03/__filesystem/perm_options.h
-  __cxx03/__filesystem/perms.h
-  __cxx03/__filesystem/recursive_directory_iterator.h
-  __cxx03/__filesystem/space_info.h
-  __cxx03/__filesystem/u8path.h
-  __cxx03/__format/buffer.h
-  __cxx03/__format/concepts.h
-  __cxx03/__format/container_adaptor.h
-  __cxx03/__format/enable_insertable.h
-  __cxx03/__format/escaped_output_table.h
-  __cxx03/__format/extended_grapheme_cluster_table.h
-  __cxx03/__format/format_arg.h
-  __cxx03/__format/format_arg_store.h
-  __cxx03/__format/format_args.h
-  __cxx03/__format/format_context.h
-  __cxx03/__format/format_error.h
-  __cxx03/__format/format_functions.h
-  __cxx03/__format/format_parse_context.h
-  __cxx03/__format/format_string.h
-  __cxx03/__format/format_to_n_result.h
-  __cxx03/__format/formatter.h
-  __cxx03/__format/formatter_bool.h
-  __cxx03/__format/formatter_char.h
-  __cxx03/__format/formatter_floating_point.h
-  __cxx03/__format/formatter_integer.h
-  __cxx03/__format/formatter_integral.h
-  __cxx03/__format/formatter_output.h
-  __cxx03/__format/formatter_pointer.h
-  __cxx03/__format/formatter_string.h
-  __cxx03/__format/formatter_tuple.h
-  __cxx03/__format/indic_conjunct_break_table.h
-  __cxx03/__format/parser_std_format_spec.h
-  __cxx03/__format/range_default_formatter.h
-  __cxx03/__format/range_formatter.h
-  __cxx03/__format/unicode.h
-  __cxx03/__format/width_estimation_table.h
-  __cxx03/__format/write_escaped.h
   __cxx03/__functional/binary_function.h
   __cxx03/__functional/binary_negate.h
   __cxx03/__functional/bind.h
-  __cxx03/__functional/bind_back.h
-  __cxx03/__functional/bind_front.h
   __cxx03/__functional/binder1st.h
   __cxx03/__functional/binder2nd.h
-  __cxx03/__functional/boyer_moore_searcher.h
-  __cxx03/__functional/compose.h
-  __cxx03/__functional/default_searcher.h
-  __cxx03/__functional/function.h
   __cxx03/__functional/hash.h
   __cxx03/__functional/identity.h
-  __cxx03/__functional/invoke.h
-  __cxx03/__functional/is_transparent.h
   __cxx03/__functional/mem_fn.h
   __cxx03/__functional/mem_fun_ref.h
-  __cxx03/__functional/not_fn.h
   __cxx03/__functional/operations.h
-  __cxx03/__functional/perfect_forward.h
   __cxx03/__functional/pointer_to_binary_function.h
   __cxx03/__functional/pointer_to_unary_function.h
-  __cxx03/__functional/ranges_operations.h
   __cxx03/__functional/reference_wrapper.h
   __cxx03/__functional/unary_function.h
   __cxx03/__functional/unary_negate.h
@@ -1491,24 +1236,19 @@ set(files
   __cxx03/__fwd/bit_reference.h
   __cxx03/__fwd/complex.h
   __cxx03/__fwd/deque.h
-  __cxx03/__fwd/format.h
   __cxx03/__fwd/fstream.h
   __cxx03/__fwd/functional.h
   __cxx03/__fwd/ios.h
   __cxx03/__fwd/istream.h
-  __cxx03/__fwd/mdspan.h
   __cxx03/__fwd/memory.h
-  __cxx03/__fwd/memory_resource.h
   __cxx03/__fwd/ostream.h
   __cxx03/__fwd/pair.h
   __cxx03/__fwd/queue.h
-  __cxx03/__fwd/span.h
   __cxx03/__fwd/sstream.h
   __cxx03/__fwd/stack.h
   __cxx03/__fwd/streambuf.h
   __cxx03/__fwd/string.h
   __cxx03/__fwd/string_view.h
-  __cxx03/__fwd/subrange.h
   __cxx03/__fwd/tuple.h
   __cxx03/__fwd/vector.h
   __cxx03/__hash_table
@@ -1518,43 +1258,21 @@ set(files
   __cxx03/__iterator/aliasing_iterator.h
   __cxx03/__iterator/back_insert_iterator.h
   __cxx03/__iterator/bounded_iter.h
-  __cxx03/__iterator/common_iterator.h
-  __cxx03/__iterator/concepts.h
-  __cxx03/__iterator/counted_iterator.h
-  __cxx03/__iterator/cpp17_iterator_concepts.h
-  __cxx03/__iterator/data.h
-  __cxx03/__iterator/default_sentinel.h
   __cxx03/__iterator/distance.h
-  __cxx03/__iterator/empty.h
   __cxx03/__iterator/erase_if_container.h
   __cxx03/__iterator/front_insert_iterator.h
-  __cxx03/__iterator/incrementable_traits.h
-  __cxx03/__iterator/indirectly_comparable.h
   __cxx03/__iterator/insert_iterator.h
   __cxx03/__iterator/istream_iterator.h
   __cxx03/__iterator/istreambuf_iterator.h
-  __cxx03/__iterator/iter_move.h
-  __cxx03/__iterator/iter_swap.h
   __cxx03/__iterator/iterator.h
   __cxx03/__iterator/iterator_traits.h
-  __cxx03/__iterator/iterator_with_data.h
-  __cxx03/__iterator/mergeable.h
   __cxx03/__iterator/move_iterator.h
-  __cxx03/__iterator/move_sentinel.h
   __cxx03/__iterator/next.h
   __cxx03/__iterator/ostream_iterator.h
   __cxx03/__iterator/ostreambuf_iterator.h
-  __cxx03/__iterator/permutable.h
   __cxx03/__iterator/prev.h
-  __cxx03/__iterator/projected.h
-  __cxx03/__iterator/ranges_iterator_traits.h
-  __cxx03/__iterator/readable_traits.h
-  __cxx03/__iterator/reverse_access.h
   __cxx03/__iterator/reverse_iterator.h
   __cxx03/__iterator/segmented_iterator.h
-  __cxx03/__iterator/size.h
-  __cxx03/__iterator/sortable.h
-  __cxx03/__iterator/unreachable_sentinel.h
   __cxx03/__iterator/wrap_iter.h
   __cxx03/__locale
   __cxx03/__locale_dir/locale_base_api.h
@@ -1585,16 +1303,9 @@ set(files
   __cxx03/__math/remainder.h
   __cxx03/__math/roots.h
   __cxx03/__math/rounding_functions.h
-  __cxx03/__math/special_functions.h
   __cxx03/__math/traits.h
   __cxx03/__math/trigonometric_functions.h
   __cxx03/__mbstate_t.h
-  __cxx03/__mdspan/default_accessor.h
-  __cxx03/__mdspan/extents.h
-  __cxx03/__mdspan/layout_left.h
-  __cxx03/__mdspan/layout_right.h
-  __cxx03/__mdspan/layout_stride.h
-  __cxx03/__mdspan/mdspan.h
   __cxx03/__memory/addressof.h
   __cxx03/__memory/align.h
   __cxx03/__memory/aligned_alloc.h
@@ -1608,14 +1319,9 @@ set(files
   __cxx03/__memory/auto_ptr.h
   __cxx03/__memory/builtin_new_allocator.h
   __cxx03/__memory/compressed_pair.h
-  __cxx03/__memory/concepts.h
   __cxx03/__memory/construct_at.h
   __cxx03/__memory/destruct_n.h
-  __cxx03/__memory/inout_ptr.h
-  __cxx03/__memory/out_ptr.h
   __cxx03/__memory/pointer_traits.h
-  __cxx03/__memory/ranges_construct_at.h
-  __cxx03/__memory/ranges_uninitialized_algorithms.h
   __cxx03/__memory/raw_storage_iterator.h
   __cxx03/__memory/shared_ptr.h
   __cxx03/__memory/swap_allocator.h
@@ -1624,54 +1330,18 @@ set(files
   __cxx03/__memory/uninitialized_algorithms.h
   __cxx03/__memory/unique_ptr.h
   __cxx03/__memory/uses_allocator.h
-  __cxx03/__memory/uses_allocator_construction.h
   __cxx03/__memory/voidify.h
-  __cxx03/__memory_resource/memory_resource.h
-  __cxx03/__memory_resource/monotonic_buffer_resource.h
-  __cxx03/__memory_resource/polymorphic_allocator.h
-  __cxx03/__memory_resource/pool_options.h
-  __cxx03/__memory_resource/synchronized_pool_resource.h
-  __cxx03/__memory_resource/unsynchronized_pool_resource.h
   __cxx03/__mutex/lock_guard.h
   __cxx03/__mutex/mutex.h
   __cxx03/__mutex/once_flag.h
   __cxx03/__mutex/tag_types.h
   __cxx03/__mutex/unique_lock.h
-  __cxx03/__node_handle
   __cxx03/__numeric/accumulate.h
   __cxx03/__numeric/adjacent_difference.h
-  __cxx03/__numeric/exclusive_scan.h
-  __cxx03/__numeric/gcd_lcm.h
-  __cxx03/__numeric/inclusive_scan.h
   __cxx03/__numeric/inner_product.h
   __cxx03/__numeric/iota.h
-  __cxx03/__numeric/midpoint.h
   __cxx03/__numeric/partial_sum.h
-  __cxx03/__numeric/pstl.h
-  __cxx03/__numeric/reduce.h
-  __cxx03/__numeric/saturation_arithmetic.h
-  __cxx03/__numeric/transform_exclusive_scan.h
-  __cxx03/__numeric/transform_inclusive_scan.h
-  __cxx03/__numeric/transform_reduce.h
   __cxx03/__ostream/basic_ostream.h
-  __cxx03/__ostream/print.h
-  __cxx03/__pstl/backend.h
-  __cxx03/__pstl/backend_fwd.h
-  __cxx03/__pstl/backends/default.h
-  __cxx03/__pstl/backends/libdispatch.h
-  __cxx03/__pstl/backends/serial.h
-  __cxx03/__pstl/backends/std_thread.h
-  __cxx03/__pstl/cpu_algos/any_of.h
-  __cxx03/__pstl/cpu_algos/cpu_traits.h
-  __cxx03/__pstl/cpu_algos/fill.h
-  __cxx03/__pstl/cpu_algos/find_if.h
-  __cxx03/__pstl/cpu_algos/for_each.h
-  __cxx03/__pstl/cpu_algos/merge.h
-  __cxx03/__pstl/cpu_algos/stable_sort.h
-  __cxx03/__pstl/cpu_algos/transform.h
-  __cxx03/__pstl/cpu_algos/transform_reduce.h
-  __cxx03/__pstl/dispatch.h
-  __cxx03/__pstl/handle_exception.h
   __cxx03/__random/bernoulli_distribution.h
   __cxx03/__random/binomial_distribution.h
   __cxx03/__random/cauchy_distribution.h
@@ -1706,62 +1376,11 @@ set(files
   __cxx03/__random/student_t_distribution.h
   __cxx03/__random/subtract_with_carry_engine.h
   __cxx03/__random/uniform_int_distribution.h
-  __cxx03/__random/uniform_random_bit_generator.h
   __cxx03/__random/uniform_real_distribution.h
   __cxx03/__random/weibull_distribution.h
-  __cxx03/__ranges/access.h
-  __cxx03/__ranges/all.h
-  __cxx03/__ranges/as_rvalue_view.h
-  __cxx03/__ranges/chunk_by_view.h
-  __cxx03/__ranges/common_view.h
-  __cxx03/__ranges/concepts.h
-  __cxx03/__ranges/container_compatible_range.h
-  __cxx03/__ranges/counted.h
-  __cxx03/__ranges/dangling.h
-  __cxx03/__ranges/data.h
-  __cxx03/__ranges/drop_view.h
-  __cxx03/__ranges/drop_while_view.h
-  __cxx03/__ranges/elements_view.h
-  __cxx03/__ranges/empty.h
-  __cx...
[truncated]

Copy link
Member

@ldionne ldionne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM w/ passing CI.

One thing to note is that this might make it more difficult to backport some fixes to the frozen headers, but if that's the order you want to do this in, I'm fine with that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In your commit message, please explain what you're doing, and the fact that this relates to the C++03 freeze. Most people are not super familiar with the whole thing, so this will be really helpful context to most.

@philnik777 philnik777 force-pushed the users/philnik777/cxx03_01_remove_headers branch 3 times, most recently from c939206 to 3c10c3b Compare April 8, 2025 09:32
@philnik777 philnik777 force-pushed the users/philnik777/cxx03_01_remove_headers branch from 3c10c3b to 481dfce Compare April 9, 2025 07:14
@philnik777 philnik777 merged commit 750da48 into main Apr 9, 2025
13 of 15 checks passed
@philnik777 philnik777 deleted the users/philnik777/cxx03_01_remove_headers branch April 9, 2025 13:00
@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 9, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-android running on sanitizer-buildbot-android while building libcxx at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/8053

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[       OK ] AddressSanitizer.AtoiAndFriendsOOBTest (2306 ms)
[ RUN      ] AddressSanitizer.HasFeatureAddressSanitizerTest
[       OK ] AddressSanitizer.HasFeatureAddressSanitizerTest (0 ms)
[ RUN      ] AddressSanitizer.CallocReturnsZeroMem
[       OK ] AddressSanitizer.CallocReturnsZeroMem (14 ms)
[ DISABLED ] AddressSanitizer.DISABLED_TSDTest
[ RUN      ] AddressSanitizer.IgnoreTest
[       OK ] AddressSanitizer.IgnoreTest (0 ms)
[ RUN      ] AddressSanitizer.SignalTest
[       OK ] AddressSanitizer.SignalTest (209 ms)
[ RUN      ] AddressSanitizer.ReallocTest
[       OK ] AddressSanitizer.ReallocTest (39 ms)
[ RUN      ] AddressSanitizer.WrongFreeTest
[       OK ] AddressSanitizer.WrongFreeTest (130 ms)
[ RUN      ] AddressSanitizer.LongJmpTest
[       OK ] AddressSanitizer.LongJmpTest (0 ms)
[ RUN      ] AddressSanitizer.ThreadStackReuseTest
[       OK ] AddressSanitizer.ThreadStackReuseTest (6 ms)
[ DISABLED ] AddressSanitizer.DISABLED_MemIntrinsicUnalignedAccessTest
[ DISABLED ] AddressSanitizer.DISABLED_LargeFunctionSymbolizeTest
[ DISABLED ] AddressSanitizer.DISABLED_MallocFreeUnwindAndSymbolizeTest
[ RUN      ] AddressSanitizer.UseThenFreeThenUseTest
[       OK ] AddressSanitizer.UseThenFreeThenUseTest (112 ms)
[ RUN      ] AddressSanitizer.FileNameInGlobalReportTest
[       OK ] AddressSanitizer.FileNameInGlobalReportTest (124 ms)
[ DISABLED ] AddressSanitizer.DISABLED_StressStackReuseAndExceptionsTest
[ RUN      ] AddressSanitizer.MlockTest
[       OK ] AddressSanitizer.MlockTest (0 ms)
[ DISABLED ] AddressSanitizer.DISABLED_DemoThreadedTest
[ DISABLED ] AddressSanitizer.DISABLED_DemoStackTest
[ DISABLED ] AddressSanitizer.DISABLED_DemoThreadStackTest
[ DISABLED ] AddressSanitizer.DISABLED_DemoUAFLowIn
[ DISABLED ] AddressSanitizer.DISABLED_DemoUAFLowLeft
[ DISABLED ] AddressSanitizer.DISABLED_DemoUAFLowRight
[ DISABLED ] AddressSanitizer.DISABLED_DemoUAFHigh
[ DISABLED ] AddressSanitizer.DISABLED_DemoOOM
[ DISABLED ] AddressSanitizer.DISABLED_DemoDoubleFreeTest
[ DISABLED ] AddressSanitizer.DISABLED_DemoNullDerefTest
[ DISABLED ] AddressSanitizer.DISABLED_DemoFunctionStaticTest
[ DISABLED ] AddressSanitizer.DISABLED_DemoTooMuchMemoryTest
[ RUN      ] AddressSanitizer.LongDoubleNegativeTest
[       OK ] AddressSanitizer.LongDoubleNegativeTest (0 ms)
[----------] 19 tests from AddressSanitizer (28099 ms total)

[----------] Global test environment tear-down
[==========] 22 tests from 2 test suites ran. (28104 ms total)
[  PASSED  ] 22 tests.

  YOU HAVE 1 DISABLED TEST

Step 34 (run instrumented asan tests [aarch64/bluejay-userdebug/TQ3A.230805.001]) failure: run instrumented asan tests [aarch64/bluejay-userdebug/TQ3A.230805.001] (failure)
...
[ RUN      ] AddressSanitizer.HasFeatureAddressSanitizerTest
[       OK ] AddressSanitizer.HasFeatureAddressSanitizerTest (0 ms)
[ RUN      ] AddressSanitizer.CallocReturnsZeroMem
[       OK ] AddressSanitizer.CallocReturnsZeroMem (14 ms)
[ DISABLED ] AddressSanitizer.DISABLED_TSDTest
[ RUN      ] AddressSanitizer.IgnoreTest
[       OK ] AddressSanitizer.IgnoreTest (0 ms)
[ RUN      ] AddressSanitizer.SignalTest
[       OK ] AddressSanitizer.SignalTest (209 ms)
[ RUN      ] AddressSanitizer.ReallocTest
[       OK ] AddressSanitizer.ReallocTest (39 ms)
[ RUN      ] AddressSanitizer.WrongFreeTest
[       OK ] AddressSanitizer.WrongFreeTest (130 ms)
[ RUN      ] AddressSanitizer.LongJmpTest
[       OK ] AddressSanitizer.LongJmpTest (0 ms)
[ RUN      ] AddressSanitizer.ThreadStackReuseTest
[       OK ] AddressSanitizer.ThreadStackReuseTest (6 ms)
[ DISABLED ] AddressSanitizer.DISABLED_MemIntrinsicUnalignedAccessTest
[ DISABLED ] AddressSanitizer.DISABLED_LargeFunctionSymbolizeTest
[ DISABLED ] AddressSanitizer.DISABLED_MallocFreeUnwindAndSymbolizeTest
[ RUN      ] AddressSanitizer.UseThenFreeThenUseTest
[       OK ] AddressSanitizer.UseThenFreeThenUseTest (112 ms)
[ RUN      ] AddressSanitizer.FileNameInGlobalReportTest
[       OK ] AddressSanitizer.FileNameInGlobalReportTest (124 ms)
[ DISABLED ] AddressSanitizer.DISABLED_StressStackReuseAndExceptionsTest
[ RUN      ] AddressSanitizer.MlockTest
[       OK ] AddressSanitizer.MlockTest (0 ms)
[ DISABLED ] AddressSanitizer.DISABLED_DemoThreadedTest
[ DISABLED ] AddressSanitizer.DISABLED_DemoStackTest
[ DISABLED ] AddressSanitizer.DISABLED_DemoThreadStackTest
[ DISABLED ] AddressSanitizer.DISABLED_DemoUAFLowIn
[ DISABLED ] AddressSanitizer.DISABLED_DemoUAFLowLeft
[ DISABLED ] AddressSanitizer.DISABLED_DemoUAFLowRight
[ DISABLED ] AddressSanitizer.DISABLED_DemoUAFHigh
[ DISABLED ] AddressSanitizer.DISABLED_DemoOOM
[ DISABLED ] AddressSanitizer.DISABLED_DemoDoubleFreeTest
[ DISABLED ] AddressSanitizer.DISABLED_DemoNullDerefTest
[ DISABLED ] AddressSanitizer.DISABLED_DemoFunctionStaticTest
[ DISABLED ] AddressSanitizer.DISABLED_DemoTooMuchMemoryTest
[ RUN      ] AddressSanitizer.LongDoubleNegativeTest
[       OK ] AddressSanitizer.LongDoubleNegativeTest (0 ms)
[----------] 19 tests from AddressSanitizer (28099 ms total)

[----------] Global test environment tear-down
[==========] 22 tests from 2 test suites ran. (28104 ms total)
[  PASSED  ] 22 tests.

  YOU HAVE 1 DISABLED TEST
program finished with exit code 0
elapsedTime=2322.596233

AllinLeeYL pushed a commit to AllinLeeYL/llvm-project that referenced this pull request Apr 10, 2025
)

This patch removes all of the frozen headers which don't provide
anything. Basically any header that's C++11-or-later is removed from the
frozen headers.

This is part of
https://discourse.llvm.org/t/rfc-freezing-c-03-headers-in-libc.
var-const pushed a commit to ldionne/llvm-project that referenced this pull request Apr 17, 2025
)

This patch removes all of the frozen headers which don't provide
anything. Basically any header that's C++11-or-later is removed from the
frozen headers.

This is part of
https://discourse.llvm.org/t/rfc-freezing-c-03-headers-in-libc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants