Skip to content

[libc++][C++03] Update include guards #109001

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
Dec 9, 2024

Conversation

philnik777
Copy link
Contributor

@philnik777 philnik777 commented Sep 17, 2024

This patch updates the includes guards of the C++ 03 headers.

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

Copy link
Contributor Author

philnik777 commented Sep 17, 2024

Copy link

github-actions bot commented Sep 17, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@philnik777 philnik777 marked this pull request as ready for review September 17, 2024 16:01
@philnik777 philnik777 requested a review from a team as a code owner September 17, 2024 16:01
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Sep 17, 2024
@llvmbot
Copy link
Member

llvmbot commented Sep 17, 2024

@llvm/pr-subscribers-libcxx

Author: Nikolas Klauser (philnik777)

Changes

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

1015 Files Affected:

  • (modified) libcxx/include/__cxx03/__algorithm/adjacent_find.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/all_of.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/any_of.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/binary_search.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/clamp.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/comp.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/comp_ref_type.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/copy_backward.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/copy_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/copy_move_common.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/copy_n.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/count.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/count_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/equal.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/equal_range.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/fill.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/fill_n.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/find.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/find_end.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/find_first_of.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/find_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/find_if_not.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/find_segment_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/fold.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/for_each.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/for_each_n.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/for_each_segment.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/generate.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/generate_n.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/half_positive.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/in_found_result.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/in_fun_result.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/in_in_out_result.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/in_in_result.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/in_out_out_result.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/in_out_result.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/includes.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/inplace_merge.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/is_heap.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/is_heap_until.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/is_partitioned.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/is_permutation.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/is_sorted.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/is_sorted_until.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/iter_swap.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/iterator_operations.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/lexicographical_compare.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/lexicographical_compare_three_way.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/lower_bound.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/make_heap.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/make_projected.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/max.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/max_element.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/merge.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/min.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/min_element.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/min_max_result.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/minmax.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/minmax_element.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/mismatch.h (+5-5)
  • (modified) libcxx/include/__cxx03/__algorithm/move.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/move_backward.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/next_permutation.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/none_of.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/nth_element.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/partial_sort.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/partial_sort_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/partition.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/partition_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/partition_point.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/pop_heap.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/prev_permutation.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/pstl.h (+67-67)
  • (modified) libcxx/include/__cxx03/__algorithm/push_heap.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_adjacent_find.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_all_of.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_any_of.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_binary_search.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_clamp.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_contains.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_contains_subrange.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_copy_backward.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_copy_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_copy_n.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_count.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_count_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_ends_with.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_equal.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_equal_range.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_fill.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_fill_n.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_find.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_find_end.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_find_first_of.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_find_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_find_if_not.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_find_last.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_for_each.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_for_each_n.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_generate.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_generate_n.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_includes.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_inplace_merge.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_is_heap.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_is_heap_until.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_is_partitioned.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_is_permutation.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_is_sorted.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_is_sorted_until.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_iterator_concept.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_lexicographical_compare.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_lower_bound.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_make_heap.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_max.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_max_element.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_merge.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_min.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_min_element.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_minmax.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_minmax_element.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_mismatch.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_move.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_move_backward.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_next_permutation.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_none_of.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_nth_element.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_partial_sort.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_partial_sort_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_partition.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_partition_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_partition_point.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_pop_heap.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_prev_permutation.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_push_heap.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_remove.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_remove_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_remove_copy_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_remove_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_replace.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_replace_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_replace_copy_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_replace_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_reverse.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_reverse_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_rotate.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_rotate_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_sample.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_search.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_search_n.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_set_difference.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_set_intersection.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_set_symmetric_difference.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_set_union.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_shuffle.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_sort.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_sort_heap.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_stable_partition.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_stable_sort.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_starts_with.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_swap_ranges.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_transform.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_unique.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_unique_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/ranges_upper_bound.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/remove.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/remove_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/remove_copy_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/remove_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/replace.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/replace_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/replace_copy_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/replace_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/reverse.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/reverse_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/rotate.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/rotate_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/sample.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/search.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/search_n.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/set_difference.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/set_intersection.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/set_symmetric_difference.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/set_union.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/shift_left.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/shift_right.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/shuffle.h (+6-6)
  • (modified) libcxx/include/__cxx03/__algorithm/sift_down.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/simd_utils.h (+11-11)
  • (modified) libcxx/include/__cxx03/__algorithm/sort.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/sort_heap.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/stable_partition.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/stable_sort.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/swap_ranges.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/three_way_comp_ref_type.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/transform.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/uniform_random_bit_generator_adaptor.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/unique.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/unique_copy.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/unwrap_iter.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/unwrap_range.h (+3-3)
  • (modified) libcxx/include/__cxx03/__algorithm/upper_bound.h (+3-3)
  • (modified) libcxx/include/__cxx03/__assert (+55-55)
  • (modified) libcxx/include/__cxx03/__atomic/aliases.h (+6-6)
  • (modified) libcxx/include/__cxx03/__atomic/atomic.h (+13-13)
  • (modified) libcxx/include/__cxx03/__atomic/atomic_base.h (+11-11)
  • (modified) libcxx/include/__cxx03/__atomic/atomic_flag.h (+3-3)
  • (modified) libcxx/include/__cxx03/__atomic/atomic_init.h (+3-3)
  • (modified) libcxx/include/__cxx03/__atomic/atomic_lock_free.h (+3-3)
  • (modified) libcxx/include/__cxx03/__atomic/atomic_ref.h (+8-8)
  • (modified) libcxx/include/__cxx03/__atomic/atomic_sync.h (+3-3)
  • (modified) libcxx/include/__cxx03/__atomic/check_memory_order.h (+7-7)
  • (modified) libcxx/include/__cxx03/__atomic/contention_t.h (+3-3)
  • (modified) libcxx/include/__cxx03/__atomic/cxx_atomic_impl.h (+3-3)
  • (modified) libcxx/include/__cxx03/__atomic/fence.h (+3-3)
  • (modified) libcxx/include/__cxx03/__atomic/is_always_lock_free.h (+3-3)
  • (modified) libcxx/include/__cxx03/__atomic/kill_dependency.h (+3-3)
  • (modified) libcxx/include/__cxx03/__atomic/memory_order.h (+3-3)
  • (modified) libcxx/include/__cxx03/__atomic/to_gcc_order.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/bit_cast.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/bit_ceil.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/bit_floor.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/bit_log2.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/bit_width.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/blsr.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/byteswap.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/countl.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/countr.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/endian.h (+5-5)
  • (modified) libcxx/include/__cxx03/__bit/has_single_bit.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/invert_if.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/popcount.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit/rotate.h (+3-3)
  • (modified) libcxx/include/__cxx03/__bit_reference (+3-3)
  • (modified) libcxx/include/__cxx03/__charconv/chars_format.h (+3-3)
  • (modified) libcxx/include/__cxx03/__charconv/from_chars_integral.h (+3-3)
  • (modified) libcxx/include/__cxx03/__charconv/from_chars_result.h (+3-3)
  • (modified) libcxx/include/__cxx03/__charconv/tables.h (+3-3)
  • (modified) libcxx/include/__cxx03/__charconv/to_chars.h (+3-3)
  • (modified) libcxx/include/__cxx03/__charconv/to_chars_base_10.h (+3-3)
  • (modified) libcxx/include/__cxx03/__charconv/to_chars_floating_point.h (+3-3)
  • (modified) libcxx/include/__cxx03/__charconv/to_chars_integral.h (+3-3)
  • (modified) libcxx/include/__cxx03/__charconv/to_chars_result.h (+3-3)
  • (modified) libcxx/include/__cxx03/__charconv/traits.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/calendar.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/concepts.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/convert_to_timespec.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/convert_to_tm.h (+5-5)
  • (modified) libcxx/include/__cxx03/__chrono/day.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/duration.h (+4-4)
  • (modified) libcxx/include/__cxx03/__chrono/exception.h (+5-5)
  • (modified) libcxx/include/__cxx03/__chrono/file_clock.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/formatter.h (+32-32)
  • (modified) libcxx/include/__cxx03/__chrono/hh_mm_ss.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/high_resolution_clock.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/leap_second.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/literals.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/local_info.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/month.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/month_weekday.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/monthday.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/ostream.h (+60-60)
  • (modified) libcxx/include/__cxx03/__chrono/parser_std_format_spec.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/statically_widen.h (+5-5)
  • (modified) libcxx/include/__cxx03/__chrono/steady_clock.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/sys_info.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/system_clock.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/time_point.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/time_zone.h (+7-7)
  • (modified) libcxx/include/__cxx03/__chrono/time_zone_link.h (+5-5)
  • (modified) libcxx/include/__cxx03/__chrono/tzdb.h (+7-7)
  • (modified) libcxx/include/__cxx03/__chrono/tzdb_list.h (+7-7)
  • (modified) libcxx/include/__cxx03/__chrono/weekday.h (+5-5)
  • (modified) libcxx/include/__cxx03/__chrono/year.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/year_month.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/year_month_day.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/year_month_weekday.h (+3-3)
  • (modified) libcxx/include/__cxx03/__chrono/zoned_time.h (+7-7)
  • (modified) libcxx/include/__cxx03/__compare/common_comparison_category.h (+3-3)
  • (modified) libcxx/include/__cxx03/__compare/compare_partial_order_fallback.h (+3-3)
  • (modified) libcxx/include/__cxx03/__compare/compare_strong_order_fallback.h (+3-3)
  • (modified) libcxx/include/__cxx03/__compare/compare_three_way.h (+3-3)
  • (modified) libcxx/include/__cxx03/__compare/compare_three_way_result.h (+3-3)
  • (modified) libcxx/include/__cxx03/__compare/compare_weak_order_fallback.h (+3-3)
  • (modified) libcxx/include/__cxx03/__compare/is_eq.h (+3-3)
  • (modified) libcxx/include/__cxx03/__compare/ordering.h (+3-3)
  • (modified) libcxx/include/__cxx03/__compare/partial_order.h (+3-3)
diff --git a/libcxx/include/__cxx03/__algorithm/adjacent_find.h b/libcxx/include/__cxx03/__algorithm/adjacent_find.h
index 88036db84de899..6add0f3fe2b53a 100644
--- a/libcxx/include/__cxx03/__algorithm/adjacent_find.h
+++ b/libcxx/include/__cxx03/__algorithm/adjacent_find.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_ADJACENT_FIND_H
-#define _LIBCPP___ALGORITHM_ADJACENT_FIND_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_ADJACENT_FIND_H
+#define _LIBCPP___CXX03___ALGORITHM_ADJACENT_FIND_H
 
 #include <__cxx03/__algorithm/comp.h>
 #include <__cxx03/__algorithm/iterator_operations.h>
@@ -55,4 +55,4 @@ _LIBCPP_END_NAMESPACE_STD
 
 _LIBCPP_POP_MACROS
 
-#endif // _LIBCPP___ALGORITHM_ADJACENT_FIND_H
+#endif // _LIBCPP___CXX03___ALGORITHM_ADJACENT_FIND_H
diff --git a/libcxx/include/__cxx03/__algorithm/all_of.h b/libcxx/include/__cxx03/__algorithm/all_of.h
index b32d97241506e0..fe46ee5fca43cf 100644
--- a/libcxx/include/__cxx03/__algorithm/all_of.h
+++ b/libcxx/include/__cxx03/__algorithm/all_of.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_ALL_OF_H
-#define _LIBCPP___ALGORITHM_ALL_OF_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_ALL_OF_H
+#define _LIBCPP___CXX03___ALGORITHM_ALL_OF_H
 
 #include <__cxx03/__config>
 
@@ -29,4 +29,4 @@ all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) {
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_ALL_OF_H
+#endif // _LIBCPP___CXX03___ALGORITHM_ALL_OF_H
diff --git a/libcxx/include/__cxx03/__algorithm/any_of.h b/libcxx/include/__cxx03/__algorithm/any_of.h
index bd7de96fbef40c..26bf3996e8a6f0 100644
--- a/libcxx/include/__cxx03/__algorithm/any_of.h
+++ b/libcxx/include/__cxx03/__algorithm/any_of.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_ANY_OF_H
-#define _LIBCPP___ALGORITHM_ANY_OF_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_ANY_OF_H
+#define _LIBCPP___CXX03___ALGORITHM_ANY_OF_H
 
 #include <__cxx03/__config>
 
@@ -29,4 +29,4 @@ any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) {
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_ANY_OF_H
+#endif // _LIBCPP___CXX03___ALGORITHM_ANY_OF_H
diff --git a/libcxx/include/__cxx03/__algorithm/binary_search.h b/libcxx/include/__cxx03/__algorithm/binary_search.h
index a93c62b32d7428..a72da8e3966394 100644
--- a/libcxx/include/__cxx03/__algorithm/binary_search.h
+++ b/libcxx/include/__cxx03/__algorithm/binary_search.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_BINARY_SEARCH_H
-#define _LIBCPP___ALGORITHM_BINARY_SEARCH_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_BINARY_SEARCH_H
+#define _LIBCPP___CXX03___ALGORITHM_BINARY_SEARCH_H
 
 #include <__cxx03/__algorithm/comp.h>
 #include <__cxx03/__algorithm/comp_ref_type.h>
@@ -36,4 +36,4 @@ binary_search(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __va
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_BINARY_SEARCH_H
+#endif // _LIBCPP___CXX03___ALGORITHM_BINARY_SEARCH_H
diff --git a/libcxx/include/__cxx03/__algorithm/clamp.h b/libcxx/include/__cxx03/__algorithm/clamp.h
index e5e4dbf774dc31..0e4bb0eb6b9508 100644
--- a/libcxx/include/__cxx03/__algorithm/clamp.h
+++ b/libcxx/include/__cxx03/__algorithm/clamp.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_CLAMP_H
-#define _LIBCPP___ALGORITHM_CLAMP_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_CLAMP_H
+#define _LIBCPP___CXX03___ALGORITHM_CLAMP_H
 
 #include <__cxx03/__algorithm/comp.h>
 #include <__cxx03/__assert>
@@ -41,4 +41,4 @@ clamp(_LIBCPP_LIFETIMEBOUND const _Tp& __v,
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_CLAMP_H
+#endif // _LIBCPP___CXX03___ALGORITHM_CLAMP_H
diff --git a/libcxx/include/__cxx03/__algorithm/comp.h b/libcxx/include/__cxx03/__algorithm/comp.h
index f01e395dc21ea5..0c638b4e4a651f 100644
--- a/libcxx/include/__cxx03/__algorithm/comp.h
+++ b/libcxx/include/__cxx03/__algorithm/comp.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_COMP_H
-#define _LIBCPP___ALGORITHM_COMP_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_COMP_H
+#define _LIBCPP___CXX03___ALGORITHM_COMP_H
 
 #include <__cxx03/__config>
 #include <__cxx03/__type_traits/desugars_to.h>
@@ -46,4 +46,4 @@ inline const bool __desugars_to_v<__less_tag, __less<>, _Tp, _Tp> = true;
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_COMP_H
+#endif // _LIBCPP___CXX03___ALGORITHM_COMP_H
diff --git a/libcxx/include/__cxx03/__algorithm/comp_ref_type.h b/libcxx/include/__cxx03/__algorithm/comp_ref_type.h
index 413bf30c6a64ce..ab793da0ad293c 100644
--- a/libcxx/include/__cxx03/__algorithm/comp_ref_type.h
+++ b/libcxx/include/__cxx03/__algorithm/comp_ref_type.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_COMP_REF_TYPE_H
-#define _LIBCPP___ALGORITHM_COMP_REF_TYPE_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_COMP_REF_TYPE_H
+#define _LIBCPP___CXX03___ALGORITHM_COMP_REF_TYPE_H
 
 #include <__cxx03/__assert>
 #include <__cxx03/__config>
@@ -64,4 +64,4 @@ using __comp_ref_type = _Comp&;
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_COMP_REF_TYPE_H
+#endif // _LIBCPP___CXX03___ALGORITHM_COMP_REF_TYPE_H
diff --git a/libcxx/include/__cxx03/__algorithm/copy.h b/libcxx/include/__cxx03/__algorithm/copy.h
index 6de8df3f980fea..2aa0ab78b78582 100644
--- a/libcxx/include/__cxx03/__algorithm/copy.h
+++ b/libcxx/include/__cxx03/__algorithm/copy.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_COPY_H
-#define _LIBCPP___ALGORITHM_COPY_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_COPY_H
+#define _LIBCPP___CXX03___ALGORITHM_COPY_H
 
 #include <__cxx03/__algorithm/copy_move_common.h>
 #include <__cxx03/__algorithm/for_each_segment.h>
@@ -120,4 +120,4 @@ _LIBCPP_END_NAMESPACE_STD
 
 _LIBCPP_POP_MACROS
 
-#endif // _LIBCPP___ALGORITHM_COPY_H
+#endif // _LIBCPP___CXX03___ALGORITHM_COPY_H
diff --git a/libcxx/include/__cxx03/__algorithm/copy_backward.h b/libcxx/include/__cxx03/__algorithm/copy_backward.h
index dd7ff8ada5280c..9262d13d6c1758 100644
--- a/libcxx/include/__cxx03/__algorithm/copy_backward.h
+++ b/libcxx/include/__cxx03/__algorithm/copy_backward.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_COPY_BACKWARD_H
-#define _LIBCPP___ALGORITHM_COPY_BACKWARD_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_COPY_BACKWARD_H
+#define _LIBCPP___CXX03___ALGORITHM_COPY_BACKWARD_H
 
 #include <__cxx03/__algorithm/copy_move_common.h>
 #include <__cxx03/__algorithm/iterator_operations.h>
@@ -134,4 +134,4 @@ _LIBCPP_END_NAMESPACE_STD
 
 _LIBCPP_POP_MACROS
 
-#endif // _LIBCPP___ALGORITHM_COPY_BACKWARD_H
+#endif // _LIBCPP___CXX03___ALGORITHM_COPY_BACKWARD_H
diff --git a/libcxx/include/__cxx03/__algorithm/copy_if.h b/libcxx/include/__cxx03/__algorithm/copy_if.h
index 345b12878d3333..2db0c26fb86be1 100644
--- a/libcxx/include/__cxx03/__algorithm/copy_if.h
+++ b/libcxx/include/__cxx03/__algorithm/copy_if.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_COPY_IF_H
-#define _LIBCPP___ALGORITHM_COPY_IF_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_COPY_IF_H
+#define _LIBCPP___CXX03___ALGORITHM_COPY_IF_H
 
 #include <__cxx03/__config>
 
@@ -31,4 +31,4 @@ copy_if(_InputIterator __first, _InputIterator __last, _OutputIterator __result,
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_COPY_IF_H
+#endif // _LIBCPP___CXX03___ALGORITHM_COPY_IF_H
diff --git a/libcxx/include/__cxx03/__algorithm/copy_move_common.h b/libcxx/include/__cxx03/__algorithm/copy_move_common.h
index c5983070251764..637b5a01daa75e 100644
--- a/libcxx/include/__cxx03/__algorithm/copy_move_common.h
+++ b/libcxx/include/__cxx03/__algorithm/copy_move_common.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_COPY_MOVE_COMMON_H
-#define _LIBCPP___ALGORITHM_COPY_MOVE_COMMON_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_COPY_MOVE_COMMON_H
+#define _LIBCPP___CXX03___ALGORITHM_COPY_MOVE_COMMON_H
 
 #include <__cxx03/__algorithm/iterator_operations.h>
 #include <__cxx03/__algorithm/unwrap_iter.h>
@@ -111,4 +111,4 @@ _LIBCPP_END_NAMESPACE_STD
 
 _LIBCPP_POP_MACROS
 
-#endif // _LIBCPP___ALGORITHM_COPY_MOVE_COMMON_H
+#endif // _LIBCPP___CXX03___ALGORITHM_COPY_MOVE_COMMON_H
diff --git a/libcxx/include/__cxx03/__algorithm/copy_n.h b/libcxx/include/__cxx03/__algorithm/copy_n.h
index 14f14029443359..aedb232b1bd5e3 100644
--- a/libcxx/include/__cxx03/__algorithm/copy_n.h
+++ b/libcxx/include/__cxx03/__algorithm/copy_n.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_COPY_N_H
-#define _LIBCPP___ALGORITHM_COPY_N_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_COPY_N_H
+#define _LIBCPP___CXX03___ALGORITHM_COPY_N_H
 
 #include <__cxx03/__algorithm/copy.h>
 #include <__cxx03/__config>
@@ -57,4 +57,4 @@ copy_n(_InputIterator __first, _Size __orig_n, _OutputIterator __result) {
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_COPY_N_H
+#endif // _LIBCPP___CXX03___ALGORITHM_COPY_N_H
diff --git a/libcxx/include/__cxx03/__algorithm/count.h b/libcxx/include/__cxx03/__algorithm/count.h
index b7024dc8c63180..7c1fc3e5798980 100644
--- a/libcxx/include/__cxx03/__algorithm/count.h
+++ b/libcxx/include/__cxx03/__algorithm/count.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_COUNT_H
-#define _LIBCPP___ALGORITHM_COUNT_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_COUNT_H
+#define _LIBCPP___CXX03___ALGORITHM_COUNT_H
 
 #include <__cxx03/__algorithm/iterator_operations.h>
 #include <__cxx03/__algorithm/min.h>
@@ -89,4 +89,4 @@ _LIBCPP_END_NAMESPACE_STD
 
 _LIBCPP_POP_MACROS
 
-#endif // _LIBCPP___ALGORITHM_COUNT_H
+#endif // _LIBCPP___CXX03___ALGORITHM_COUNT_H
diff --git a/libcxx/include/__cxx03/__algorithm/count_if.h b/libcxx/include/__cxx03/__algorithm/count_if.h
index eeb42052b08ae1..d333e861891763 100644
--- a/libcxx/include/__cxx03/__algorithm/count_if.h
+++ b/libcxx/include/__cxx03/__algorithm/count_if.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_COUNT_IF_H
-#define _LIBCPP___ALGORITHM_COUNT_IF_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_COUNT_IF_H
+#define _LIBCPP___CXX03___ALGORITHM_COUNT_IF_H
 
 #include <__cxx03/__config>
 #include <__cxx03/__iterator/iterator_traits.h>
@@ -32,4 +32,4 @@ count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) {
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_COUNT_IF_H
+#endif // _LIBCPP___CXX03___ALGORITHM_COUNT_IF_H
diff --git a/libcxx/include/__cxx03/__algorithm/equal.h b/libcxx/include/__cxx03/__algorithm/equal.h
index a4d0a999b18192..4e478932981e7b 100644
--- a/libcxx/include/__cxx03/__algorithm/equal.h
+++ b/libcxx/include/__cxx03/__algorithm/equal.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_EQUAL_H
-#define _LIBCPP___ALGORITHM_EQUAL_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_EQUAL_H
+#define _LIBCPP___CXX03___ALGORITHM_EQUAL_H
 
 #include <__cxx03/__algorithm/comp.h>
 #include <__cxx03/__algorithm/unwrap_iter.h>
@@ -130,4 +130,4 @@ _LIBCPP_END_NAMESPACE_STD
 
 _LIBCPP_POP_MACROS
 
-#endif // _LIBCPP___ALGORITHM_EQUAL_H
+#endif // _LIBCPP___CXX03___ALGORITHM_EQUAL_H
diff --git a/libcxx/include/__cxx03/__algorithm/equal_range.h b/libcxx/include/__cxx03/__algorithm/equal_range.h
index 9abda2bd2e36f9..4b3126a2840cf4 100644
--- a/libcxx/include/__cxx03/__algorithm/equal_range.h
+++ b/libcxx/include/__cxx03/__algorithm/equal_range.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_EQUAL_RANGE_H
-#define _LIBCPP___ALGORITHM_EQUAL_RANGE_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_EQUAL_RANGE_H
+#define _LIBCPP___CXX03___ALGORITHM_EQUAL_RANGE_H
 
 #include <__cxx03/__algorithm/comp.h>
 #include <__cxx03/__algorithm/comp_ref_type.h>
@@ -82,4 +82,4 @@ _LIBCPP_END_NAMESPACE_STD
 
 _LIBCPP_POP_MACROS
 
-#endif // _LIBCPP___ALGORITHM_EQUAL_RANGE_H
+#endif // _LIBCPP___CXX03___ALGORITHM_EQUAL_RANGE_H
diff --git a/libcxx/include/__cxx03/__algorithm/fill.h b/libcxx/include/__cxx03/__algorithm/fill.h
index 5da0f4457daa69..4aaf2744e8a585 100644
--- a/libcxx/include/__cxx03/__algorithm/fill.h
+++ b/libcxx/include/__cxx03/__algorithm/fill.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_FILL_H
-#define _LIBCPP___ALGORITHM_FILL_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_FILL_H
+#define _LIBCPP___CXX03___ALGORITHM_FILL_H
 
 #include <__cxx03/__algorithm/fill_n.h>
 #include <__cxx03/__config>
@@ -42,4 +42,4 @@ fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) {
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_FILL_H
+#endif // _LIBCPP___CXX03___ALGORITHM_FILL_H
diff --git a/libcxx/include/__cxx03/__algorithm/fill_n.h b/libcxx/include/__cxx03/__algorithm/fill_n.h
index fd548f27056a17..99b712c7b0360c 100644
--- a/libcxx/include/__cxx03/__algorithm/fill_n.h
+++ b/libcxx/include/__cxx03/__algorithm/fill_n.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_FILL_N_H
-#define _LIBCPP___ALGORITHM_FILL_N_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_FILL_N_H
+#define _LIBCPP___CXX03___ALGORITHM_FILL_N_H
 
 #include <__cxx03/__algorithm/min.h>
 #include <__cxx03/__config>
@@ -95,4 +95,4 @@ _LIBCPP_END_NAMESPACE_STD
 
 _LIBCPP_POP_MACROS
 
-#endif // _LIBCPP___ALGORITHM_FILL_N_H
+#endif // _LIBCPP___CXX03___ALGORITHM_FILL_N_H
diff --git a/libcxx/include/__cxx03/__algorithm/find.h b/libcxx/include/__cxx03/__algorithm/find.h
index 7a48a449c897bb..ff5ac9b8b1bd0a 100644
--- a/libcxx/include/__cxx03/__algorithm/find.h
+++ b/libcxx/include/__cxx03/__algorithm/find.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_FIND_H
-#define _LIBCPP___ALGORITHM_FIND_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_FIND_H
+#define _LIBCPP___CXX03___ALGORITHM_FIND_H
 
 #include <__cxx03/__algorithm/find_segment_if.h>
 #include <__cxx03/__algorithm/min.h>
@@ -178,4 +178,4 @@ _LIBCPP_END_NAMESPACE_STD
 
 _LIBCPP_POP_MACROS
 
-#endif // _LIBCPP___ALGORITHM_FIND_H
+#endif // _LIBCPP___CXX03___ALGORITHM_FIND_H
diff --git a/libcxx/include/__cxx03/__algorithm/find_end.h b/libcxx/include/__cxx03/__algorithm/find_end.h
index 34a45e2c66fae9..3fa046bd0df3ec 100644
--- a/libcxx/include/__cxx03/__algorithm/find_end.h
+++ b/libcxx/include/__cxx03/__algorithm/find_end.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_FIND_END_OF_H
-#define _LIBCPP___ALGORITHM_FIND_END_OF_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_FIND_END_OF_H
+#define _LIBCPP___CXX03___ALGORITHM_FIND_END_OF_H
 
 #include <__cxx03/__algorithm/comp.h>
 #include <__cxx03/__algorithm/iterator_operations.h>
@@ -222,4 +222,4 @@ find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_FIND_END_OF_H
+#endif // _LIBCPP___CXX03___ALGORITHM_FIND_END_OF_H
diff --git a/libcxx/include/__cxx03/__algorithm/find_first_of.h b/libcxx/include/__cxx03/__algorithm/find_first_of.h
index 05eb85fd663d27..b1b3e5f3be01e5 100644
--- a/libcxx/include/__cxx03/__algorithm/find_first_of.h
+++ b/libcxx/include/__cxx03/__algorithm/find_first_of.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_FIND_FIRST_OF_H
-#define _LIBCPP___ALGORITHM_FIND_FIRST_OF_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_FIND_FIRST_OF_H
+#define _LIBCPP___CXX03___ALGORITHM_FIND_FIRST_OF_H
 
 #include <__cxx03/__algorithm/comp.h>
 #include <__cxx03/__config>
@@ -52,4 +52,4 @@ _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _Fo
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_FIND_FIRST_OF_H
+#endif // _LIBCPP___CXX03___ALGORITHM_FIND_FIRST_OF_H
diff --git a/libcxx/include/__cxx03/__algorithm/find_if.h b/libcxx/include/__cxx03/__algorithm/find_if.h
index b0150e539f9abc..ca4139c86787c0 100644
--- a/libcxx/include/__cxx03/__algorithm/find_if.h
+++ b/libcxx/include/__cxx03/__algorithm/find_if.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_FIND_IF_H
-#define _LIBCPP___ALGORITHM_FIND_IF_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_FIND_IF_H
+#define _LIBCPP___CXX03___ALGORITHM_FIND_IF_H
 
 #include <__cxx03/__config>
 
@@ -29,4 +29,4 @@ find_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) {
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_FIND_IF_H
+#endif // _LIBCPP___CXX03___ALGORITHM_FIND_IF_H
diff --git a/libcxx/include/__cxx03/__algorithm/find_if_not.h b/libcxx/include/__cxx03/__algorithm/find_if_not.h
index 67d9a7deb2edd9..a662dfbddfbb93 100644
--- a/libcxx/include/__cxx03/__algorithm/find_if_not.h
+++ b/libcxx/include/__cxx03/__algorithm/find_if_not.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_FIND_IF_NOT_H
-#define _LIBCPP___ALGORITHM_FIND_IF_NOT_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_FIND_IF_NOT_H
+#define _LIBCPP___CXX03___ALGORITHM_FIND_IF_NOT_H
 
 #include <__cxx03/__config>
 
@@ -29,4 +29,4 @@ find_if_not(_InputIterator __first, _InputIterator __last, _Predicate __pred) {
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_FIND_IF_NOT_H
+#endif // _LIBCPP___CXX03___ALGORITHM_FIND_IF_NOT_H
diff --git a/libcxx/include/__cxx03/__algorithm/find_segment_if.h b/libcxx/include/__cxx03/__algorithm/find_segment_if.h
index a6c016234418eb..3475e9e8bdacd6 100644
--- a/libcxx/include/__cxx03/__algorithm/find_segment_if.h
+++ b/libcxx/include/__cxx03/__algorithm/find_segment_if.h
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_FIND_SEGMENT_IF_H
-#define _LIBCPP___ALGORITHM_FIND_SEGMENT_IF_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_FIND_SEGMENT_IF_H
+#define _LIBCPP___CXX03___ALGORITHM_FIND_SEGMENT_IF_H
 
 #include <__cxx03/__config>
 #include <__cxx03/__iterator/segmented_iterator.h>
@@ -59,4 +59,4 @@ __find_segment_if(_SegmentedIterator __first, _SegmentedIterator __last, _Pred _
 
 _LIBCPP_END_NAMESPACE_STD
 
-#endif // _LIBCPP___ALGORITHM_FIND_SEGMENT_IF_H
+#endif // _LIBCPP___CXX03___ALGORITHM_FIND_SEGMENT_IF_H
diff --git a/libcxx/include/__cxx03/__algorithm/fold.h b/libcxx/include/__cxx03/__algorithm/fold.h
index 7e9c745bbbdb25..5ec0d747c009cb 100644
--- a/libcxx/include/__cxx03/__algorithm/fold.h
+++ b/libcxx/include/__cxx03/__algorithm/fold.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___ALGORITHM_FOLD_H
-#define _LIBCPP___ALGORITHM_FOLD_H
+#ifndef _LIBCPP___CXX03___ALGORITHM_FOLD_H
+#define _LIBCPP___CXX03___ALGORITHM_FOLD_H
 
 #include <__cxx03/__concepts/assignable.h>
 #include <__cxx03/__concepts/convertible_to.h>
@@ -125,4 +125,4 @@ _LIBCPP_END_NAMESPACE_STD
 
 _LIBCPP_POP_MACROS
 
-#endif // _LIBCPP___ALGORITHM_FOLD_H
+#endif // _LIBCPP___CXX03___ALGORITHM_FOLD_H
diff --git a/libcxx/include/__cxx03/__algorithm/for_each.h b/libcxx/include/__cxx03/__algorithm/for_each.h
index d2b19310c60f55..a6faf805fe9cfb 100644
--- a/libcxx/include/__cxx03/__algorithm/for_each.h
+++ b/libcxx/include/__cxx03/__algorithm/for_each.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------...
[truncated]

@philnik777 philnik777 force-pushed the users/philnik777/cxx03_fix_includes branch from a5c77e5 to d5ea6d6 Compare October 30, 2024 14:59
@philnik777 philnik777 force-pushed the users/philnik777/cxx03_fix_include_guards branch from e888ef3 to df30222 Compare October 30, 2024 14:59
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.

This looks good to me in principle, however the patch itself has a few incorrect renamings. One thing you could do is use git diff --stat to confirm that all the changed files have exactly 3 lines changed in them. A few headers like the C compat headers might need additional renames, that needs to be investigated.

Base automatically changed from users/philnik777/cxx03_fix_includes to main October 31, 2024 11:10
An error occurred while trying to automatically change base from users/philnik777/cxx03_fix_includes to main October 31, 2024 11:10
@philnik777 philnik777 force-pushed the users/philnik777/cxx03_fix_include_guards branch from df30222 to 34d0b52 Compare December 4, 2024 14:58
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.

Oops, there are still many instances of _LIBCPP___CXX03_REQUIRE_

@philnik777 philnik777 force-pushed the users/philnik777/cxx03_fix_include_guards branch 2 times, most recently from 83f8c8d to bf624c9 Compare December 9, 2024 10:39
@philnik777 philnik777 force-pushed the users/philnik777/cxx03_fix_include_guards branch from bf624c9 to bea0f2b Compare December 9, 2024 11:15
Copy link
Contributor Author

philnik777 commented Dec 9, 2024

Merge activity

  • Dec 9, 11:33 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Dec 9, 11:34 AM EST: A user merged this pull request with Graphite.

@philnik777 philnik777 merged commit ce77719 into main Dec 9, 2024
59 of 61 checks passed
@philnik777 philnik777 deleted the users/philnik777/cxx03_fix_include_guards branch December 9, 2024 16:34
aheejin added a commit to emscripten-core/emscripten that referenced this pull request May 21, 2025
This updates libcxx and libcxxabi to LLVM 20.1.4:
https://github.com/llvm/llvm-project/releases/tag/llvmorg-20.1.4

Before going into each additional change of the PR, these are some
noteworthy changes from this LLVM release:

- Freezing C++03 headers
- RFC:
https://discourse.llvm.org/t/rfc-freezing-c-03-headers-in-libc/77319
  - PRs:
    - llvm/llvm-project#108999
    - llvm/llvm-project#109000
    - llvm/llvm-project#109001
    - llvm/llvm-project#109002
    - 
This copies libc++ headers of the last LLVM 19 release into a separate
directory
(https://github.com/llvm/llvm-project/tree/main/libcxx/include/__cxx03)
and redirects all C++03 workflow there. The motivation is not to fix
C++03 related changes unless they are critical bugs, and simplifies the
main headers. So the main headers are like
  ```
  #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
  #  include <__cxx03/algorithm>
  #else
  ... main header content ...
  ```

As you can see it looks like we can avoid opting into this by not
defining `_LIBCPP_USE_FROZEN_CXX03_HEADERS` at the moment. I think their
eventual goal is to remove C++03 support from the main headers but it
hasn't seem to have happened yet and I don't know what their timeline
for that is.

Adding that `__cxx03` directory increases the header size by 10MB. We
can get away not using them by not defining
`_LIBCPP_USE_FROZEN_CXX03_HEADERS` in this release, so this update does
not include that directory.

- Sharing of headers between libc++ and libc (Project Hand in Hand)
- RFC:
https://discourse.llvm.org/t/rfc-project-hand-in-hand-llvm-libc-libc-code-sharing/77701
- PR: llvm/llvm-project#91651 (More are likely
to come)

This tries to share some libc headers from libcxx. libcxx's source files
can depend on headers from `libc/shared`, `libc/src/__support`,
`libc/include/llvm-libc-macros`, and `libc/include/llvm-libc-types`. And
it turns out libcxx can also depend on `libc/hdr`, even though the
directory is not in the diagram in the RFC.

These headers can be only included from `libcxx/src` and not
`libcxx/include`, to prevent libcxx's API from changing. So these
headers don't need to be copied into `cache/`.

- Locale API reimplementation
  It doesn't seem to have an RFC, but the PRs are:
  - llvm/llvm-project#113737
  - llvm/llvm-project#115176
  - llvm/llvm-project#115752
  - llvm/llvm-project#122489

It looks this aims provide a new way to define locale API for each
platform. Currently Apple, FreeBSD, MSVCRT, and Fuschia are using the
new API and the others are still using the old one:
https://github.com/llvm/llvm-project/blob/ec28b8f9cc7f2ac187d8a617a6d08d5e56f9120e/libcxx/include/__locale_dir/locale_base_api.h#L116-L138
For our purpose, adding `if defined(__EMSCRIPTEN__)` entry to the list
of "old" list seems to work for the moment, but we may need to move to
the new way eventually later.

---

Additional changes:

- Copy `vendor/llvm/default_assertion_handler.in` to
`__assertion_handler`:
aa53648
Our previous `__assertion_handler` was copied from
`libcxx/vendor/llvm/default_assertion_handler.in`. This updates our
`__assertion_handler` to the new
`libcxx/vendor/llvm/default_assertion_handler.in`. For what this file
is, see the PR description of #22994, with which the file was added.

- Remove `libcxx/include/__cxx03` directory:
d646f6b
As I described in "Freezing C++ headers" above, C++03 headers were
copied to `include/cxx03` to be "frozen". But by not defining
`_LIBCPP_USE_FROZEN_CXX03_HEADERS` we can still use the main headers.
This new `__cxx03` header directory is almost 10M and we are not using
it in this update, this deletes it.

- Define more variables in `__config_site`:
9912236
libcxx decides to almost all configuration macros to be defined. So
before it tested whether a macro was defined/undefined, and now it
assumes it is defined and tests whether its value is 1/0.

Before llvm/llvm-project#112094
`_config_site.in` used to use `#cmakedefine`, which only defined
variables when they were enabled, but now it uses `#cmakedefine01`,
which always defines variables and assigns 1 or 0 depending on whether
the feature is enabled.

So this change adds `#define` to each variable that `_config_site.in`
has an entry of. The value assigned is 1 if it was defined in our
previous Emscripten environment and 0 if not.

- Fix Emscripten's locale:
2ae01b0
Before, the code was like
https://github.com/emscripten-core/emscripten/blob/dc1abd514b1bade135a01a4453a9ff6def0793b6/system/lib/libcxx/include/__locale_dir/locale_base_api.h#L12-L30
But now they are divided into two parts, one using the new API and the
other using old. See "Locale API reimplementation" above.

https://github.com/llvm/llvm-project/blob/ec28b8f9cc7f2ac187d8a617a6d08d5e56f9120e/libcxx/include/__locale_dir/locale_base_api.h#L116-L138
This adds Emscripten in the beginning of the "old" API list. (This has
to be the beginning; see #23414)

- Import libc headers used by libcxx:
12a4ee4,
12a4ee4
and
43c8ce4
This imports a part of libc headers into `system/lib/llvm-libc`. The
imported directories are:
  - `libc/shared`
  - `libc/src/__support`
  - `libc/include/llvm-libc-macros`
  - `libc/include/llvm-libc-types`
  - `libc/hdr`
  See "sharing of headers between libc+ and libc" above for details.
This also applies llvm/llvm-project#133999,
which is a bugfix that has not be backported, which fixes the bug of
including from a wrong directory.

- `std::uncaught_exception` -> `std::uncaught_exceptions`:
1bf4e78
`std::uncaught_exception` has been deprecated in C++17, so it generates
a warning (which we treat as an error). Replaced it with
`std::uncaught_exceptions`, which returns the number of uncaught
exceptions (but can still be used as a boolean in the test).

- Remove `ryu_constants.h` and `ryu_long_double_constants.h` from libc:
5767ac4
These are not used from libcxx and `ryu_long_double_constants.h` is huge
(12M).
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.

3 participants