[all-commits] [llvm/llvm-project] 580f60: [libc++][NFC] Merge is{, _nothrow, _trivially}{, _cop...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Mon Mar 18 00:30:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 580f60484e193b4f7f853ea34cc35f4a3240dfa7
      https://github.com/llvm/llvm-project/commit/580f60484e193b4f7f853ea34cc35f4a3240dfa7
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2024-03-18 (Mon, 18 Mar 2024)

  Changed paths:
    M libcxx/include/CMakeLists.txt
    M libcxx/include/__algorithm/copy_backward.h
    M libcxx/include/__algorithm/copy_move_common.h
    M libcxx/include/__algorithm/equal_range.h
    M libcxx/include/__algorithm/lexicographical_compare_three_way.h
    M libcxx/include/__algorithm/move.h
    M libcxx/include/__algorithm/move_backward.h
    M libcxx/include/__algorithm/partial_sort.h
    M libcxx/include/__algorithm/pop_heap.h
    M libcxx/include/__algorithm/push_heap.h
    M libcxx/include/__algorithm/rotate.h
    M libcxx/include/__algorithm/sort_heap.h
    M libcxx/include/__algorithm/stable_sort.h
    M libcxx/include/__algorithm/unwrap_iter.h
    M libcxx/include/__algorithm/upper_bound.h
    M libcxx/include/__atomic/atomic_base.h
    M libcxx/include/__concepts/swappable.h
    M libcxx/include/__exception/nested_exception.h
    M libcxx/include/__expected/expected.h
    M libcxx/include/__functional/bind_front.h
    M libcxx/include/__functional/function.h
    M libcxx/include/__functional/hash.h
    M libcxx/include/__functional/not_fn.h
    M libcxx/include/__hash_table
    M libcxx/include/__iterator/cpp17_iterator_concepts.h
    M libcxx/include/__iterator/reverse_iterator.h
    M libcxx/include/__mdspan/mdspan.h
    M libcxx/include/__memory/allocator_traits.h
    M libcxx/include/__memory/compressed_pair.h
    M libcxx/include/__memory/shared_ptr.h
    M libcxx/include/__memory/uninitialized_algorithms.h
    M libcxx/include/__memory/unique_ptr.h
    M libcxx/include/__mutex/mutex.h
    M libcxx/include/__ranges/iota_view.h
    M libcxx/include/__ranges/movable_box.h
    M libcxx/include/__ranges/zip_view.h
    M libcxx/include/__split_buffer
    M libcxx/include/__tree
    M libcxx/include/__type_traits/is_assignable.h
    M libcxx/include/__type_traits/is_constructible.h
    R libcxx/include/__type_traits/is_copy_assignable.h
    R libcxx/include/__type_traits/is_copy_constructible.h
    R libcxx/include/__type_traits/is_default_constructible.h
    M libcxx/include/__type_traits/is_implicitly_default_constructible.h
    R libcxx/include/__type_traits/is_move_assignable.h
    R libcxx/include/__type_traits/is_move_constructible.h
    M libcxx/include/__type_traits/is_nothrow_assignable.h
    M libcxx/include/__type_traits/is_nothrow_constructible.h
    R libcxx/include/__type_traits/is_nothrow_copy_assignable.h
    R libcxx/include/__type_traits/is_nothrow_copy_constructible.h
    R libcxx/include/__type_traits/is_nothrow_default_constructible.h
    R libcxx/include/__type_traits/is_nothrow_move_assignable.h
    R libcxx/include/__type_traits/is_nothrow_move_constructible.h
    M libcxx/include/__type_traits/is_swappable.h
    M libcxx/include/__type_traits/is_trivially_assignable.h
    M libcxx/include/__type_traits/is_trivially_constructible.h
    R libcxx/include/__type_traits/is_trivially_copy_assignable.h
    R libcxx/include/__type_traits/is_trivially_copy_constructible.h
    R libcxx/include/__type_traits/is_trivially_default_constructible.h
    R libcxx/include/__type_traits/is_trivially_move_assignable.h
    R libcxx/include/__type_traits/is_trivially_move_constructible.h
    M libcxx/include/__type_traits/noexcept_move_assign_container.h
    M libcxx/include/__utility/exception_guard.h
    M libcxx/include/__utility/exchange.h
    M libcxx/include/__utility/move.h
    M libcxx/include/__utility/pair.h
    M libcxx/include/__utility/small_buffer.h
    M libcxx/include/__utility/swap.h
    M libcxx/include/any
    M libcxx/include/array
    M libcxx/include/forward_list
    M libcxx/include/libcxx.imp
    M libcxx/include/list
    M libcxx/include/module.modulemap
    M libcxx/include/optional
    M libcxx/include/string
    M libcxx/include/tuple
    M libcxx/include/type_traits
    M libcxx/include/variant
    M libcxx/include/vector

  Log Message:
  -----------
  [libc++][NFC] Merge is{,_nothrow,_trivially}{,_copy,_move,_default}{_assignable,_constructible} (#85308)

These headers have become very small by using compiler builtins, often
containing only two declarations. This merges these headers, since
there doesn't seem to be much of a benefit keeping them separate.

Specifically, `is_{,_nothrow,_trivially}{assignable,constructible}` are
kept and the `copy`, `move` and `default` versions of these type traits
are moved in to the respective headers.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list