[all-commits] [llvm/llvm-project] 4c1985: [libc++] Rename _LIBCPP_INLINE_VISIBILITY to _LIBC...

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Dec 4 07:25:29 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c198542226223f6a5c5511a1f89b37d15ee10b9
      https://github.com/llvm/llvm-project/commit/4c198542226223f6a5c5511a1f89b37d15ee10b9
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2023-12-04 (Mon, 04 Dec 2023)

  Changed paths:
    M libcxx/.clang-format
    M libcxx/docs/Contributing.rst
    M libcxx/docs/DesignDocs/VisibilityMacros.rst
    M libcxx/include/__algorithm/any_of.h
    M libcxx/include/__algorithm/binary_search.h
    M libcxx/include/__algorithm/comp_ref_type.h
    M libcxx/include/__algorithm/copy.h
    M libcxx/include/__algorithm/copy_if.h
    M libcxx/include/__algorithm/copy_n.h
    M libcxx/include/__algorithm/count_if.h
    M libcxx/include/__algorithm/fill.h
    M libcxx/include/__algorithm/fill_n.h
    M libcxx/include/__algorithm/find.h
    M libcxx/include/__algorithm/find_first_of.h
    M libcxx/include/__algorithm/find_if.h
    M libcxx/include/__algorithm/find_if_not.h
    M libcxx/include/__algorithm/for_each_n.h
    M libcxx/include/__algorithm/generate.h
    M libcxx/include/__algorithm/generate_n.h
    M libcxx/include/__algorithm/half_positive.h
    M libcxx/include/__algorithm/inplace_merge.h
    M libcxx/include/__algorithm/is_heap.h
    M libcxx/include/__algorithm/is_sorted.h
    M libcxx/include/__algorithm/iter_swap.h
    M libcxx/include/__algorithm/lexicographical_compare.h
    M libcxx/include/__algorithm/max.h
    M libcxx/include/__algorithm/merge.h
    M libcxx/include/__algorithm/min.h
    M libcxx/include/__algorithm/minmax.h
    M libcxx/include/__algorithm/mismatch.h
    M libcxx/include/__algorithm/move_backward.h
    M libcxx/include/__algorithm/next_permutation.h
    M libcxx/include/__algorithm/none_of.h
    M libcxx/include/__algorithm/partial_sort.h
    M libcxx/include/__algorithm/partial_sort_copy.h
    M libcxx/include/__algorithm/partition.h
    M libcxx/include/__algorithm/prev_permutation.h
    M libcxx/include/__algorithm/remove_copy.h
    M libcxx/include/__algorithm/remove_copy_if.h
    M libcxx/include/__algorithm/replace.h
    M libcxx/include/__algorithm/replace_copy.h
    M libcxx/include/__algorithm/replace_copy_if.h
    M libcxx/include/__algorithm/replace_if.h
    M libcxx/include/__algorithm/reverse.h
    M libcxx/include/__algorithm/reverse_copy.h
    M libcxx/include/__algorithm/rotate.h
    M libcxx/include/__algorithm/rotate_copy.h
    M libcxx/include/__algorithm/sample.h
    M libcxx/include/__algorithm/search.h
    M libcxx/include/__algorithm/shift_left.h
    M libcxx/include/__algorithm/shift_right.h
    M libcxx/include/__algorithm/stable_partition.h
    M libcxx/include/__algorithm/swap_ranges.h
    M libcxx/include/__algorithm/transform.h
    M libcxx/include/__bit/blsr.h
    M libcxx/include/__bit/countl.h
    M libcxx/include/__bit/popcount.h
    M libcxx/include/__chrono/duration.h
    M libcxx/include/__chrono/time_point.h
    M libcxx/include/__config
    M libcxx/include/__exception/nested_exception.h
    M libcxx/include/__filesystem/copy_options.h
    M libcxx/include/__filesystem/directory_entry.h
    M libcxx/include/__filesystem/directory_options.h
    M libcxx/include/__filesystem/file_status.h
    M libcxx/include/__filesystem/operations.h
    M libcxx/include/__filesystem/path.h
    M libcxx/include/__filesystem/path_iterator.h
    M libcxx/include/__filesystem/perm_options.h
    M libcxx/include/__filesystem/perms.h
    M libcxx/include/__filesystem/recursive_directory_iterator.h
    M libcxx/include/__filesystem/u8path.h
    M libcxx/include/__functional/binary_negate.h
    M libcxx/include/__functional/bind.h
    M libcxx/include/__functional/binder1st.h
    M libcxx/include/__functional/binder2nd.h
    M libcxx/include/__functional/default_searcher.h
    M libcxx/include/__functional/function.h
    M libcxx/include/__functional/mem_fn.h
    M libcxx/include/__functional/mem_fun_ref.h
    M libcxx/include/__functional/operations.h
    M libcxx/include/__functional/pointer_to_binary_function.h
    M libcxx/include/__functional/pointer_to_unary_function.h
    M libcxx/include/__functional/reference_wrapper.h
    M libcxx/include/__functional/unary_negate.h
    M libcxx/include/__fwd/get.h
    M libcxx/include/__hash_table
    M libcxx/include/__iterator/access.h
    M libcxx/include/__iterator/data.h
    M libcxx/include/__iterator/distance.h
    M libcxx/include/__iterator/empty.h
    M libcxx/include/__iterator/front_insert_iterator.h
    M libcxx/include/__iterator/insert_iterator.h
    M libcxx/include/__iterator/istream_iterator.h
    M libcxx/include/__iterator/istreambuf_iterator.h
    M libcxx/include/__iterator/next.h
    M libcxx/include/__iterator/ostream_iterator.h
    M libcxx/include/__iterator/ostreambuf_iterator.h
    M libcxx/include/__iterator/prev.h
    M libcxx/include/__iterator/reverse_access.h
    M libcxx/include/__iterator/reverse_iterator.h
    M libcxx/include/__iterator/size.h
    M libcxx/include/__locale
    M libcxx/include/__locale_dir/locale_base_api/bsd_locale_fallbacks.h
    M libcxx/include/__locale_dir/locale_base_api/locale_guard.h
    M libcxx/include/__memory/addressof.h
    M libcxx/include/__memory/allocator.h
    M libcxx/include/__memory/allocator_arg_t.h
    M libcxx/include/__memory/allocator_destructor.h
    M libcxx/include/__memory/allocator_traits.h
    M libcxx/include/__memory/auto_ptr.h
    M libcxx/include/__memory/destruct_n.h
    M libcxx/include/__memory/pointer_traits.h
    M libcxx/include/__memory/raw_storage_iterator.h
    M libcxx/include/__memory/shared_ptr.h
    M libcxx/include/__memory/temporary_buffer.h
    M libcxx/include/__memory/unique_ptr.h
    M libcxx/include/__node_handle
    M libcxx/include/__numeric/accumulate.h
    M libcxx/include/__numeric/adjacent_difference.h
    M libcxx/include/__numeric/exclusive_scan.h
    M libcxx/include/__numeric/gcd_lcm.h
    M libcxx/include/__numeric/inclusive_scan.h
    M libcxx/include/__numeric/inner_product.h
    M libcxx/include/__numeric/iota.h
    M libcxx/include/__numeric/midpoint.h
    M libcxx/include/__numeric/partial_sum.h
    M libcxx/include/__numeric/reduce.h
    M libcxx/include/__numeric/transform_exclusive_scan.h
    M libcxx/include/__numeric/transform_inclusive_scan.h
    M libcxx/include/__numeric/transform_reduce.h
    M libcxx/include/__random/bernoulli_distribution.h
    M libcxx/include/__random/binomial_distribution.h
    M libcxx/include/__random/cauchy_distribution.h
    M libcxx/include/__random/chi_squared_distribution.h
    M libcxx/include/__random/clamp_to_integral.h
    M libcxx/include/__random/discard_block_engine.h
    M libcxx/include/__random/discrete_distribution.h
    M libcxx/include/__random/exponential_distribution.h
    M libcxx/include/__random/extreme_value_distribution.h
    M libcxx/include/__random/fisher_f_distribution.h
    M libcxx/include/__random/gamma_distribution.h
    M libcxx/include/__random/geometric_distribution.h
    M libcxx/include/__random/independent_bits_engine.h
    M libcxx/include/__random/linear_congruential_engine.h
    M libcxx/include/__random/lognormal_distribution.h
    M libcxx/include/__random/mersenne_twister_engine.h
    M libcxx/include/__random/negative_binomial_distribution.h
    M libcxx/include/__random/normal_distribution.h
    M libcxx/include/__random/piecewise_constant_distribution.h
    M libcxx/include/__random/piecewise_linear_distribution.h
    M libcxx/include/__random/poisson_distribution.h
    M libcxx/include/__random/random_device.h
    M libcxx/include/__random/seed_seq.h
    M libcxx/include/__random/shuffle_order_engine.h
    M libcxx/include/__random/student_t_distribution.h
    M libcxx/include/__random/subtract_with_carry_engine.h
    M libcxx/include/__random/uniform_real_distribution.h
    M libcxx/include/__random/weibull_distribution.h
    M libcxx/include/__string/char_traits.h
    M libcxx/include/__thread/this_thread.h
    M libcxx/include/__thread/thread.h
    M libcxx/include/__thread/timed_backoff_policy.h
    M libcxx/include/__threading_support
    M libcxx/include/__tree
    M libcxx/include/__type_traits/integral_constant.h
    M libcxx/include/__type_traits/invoke.h
    M libcxx/include/__type_traits/is_constant_evaluated.h
    M libcxx/include/__type_traits/is_swappable.h
    M libcxx/include/__utility/cmp.h
    M libcxx/include/__utility/convert_to_integral.h
    M libcxx/include/__utility/exchange.h
    M libcxx/include/__utility/integer_sequence.h
    M libcxx/include/__utility/rel_ops.h
    M libcxx/include/__utility/swap.h
    M libcxx/include/__utility/to_underlying.h
    M libcxx/include/any
    M libcxx/include/array
    M libcxx/include/barrier
    M libcxx/include/bitset
    M libcxx/include/cmath
    M libcxx/include/codecvt
    M libcxx/include/complex
    M libcxx/include/condition_variable
    M libcxx/include/experimental/__memory
    M libcxx/include/experimental/propagate_const
    M libcxx/include/ext/__hash
    M libcxx/include/ext/hash_map
    M libcxx/include/ext/hash_set
    M libcxx/include/forward_list
    M libcxx/include/fstream
    M libcxx/include/future
    M libcxx/include/initializer_list
    M libcxx/include/iomanip
    M libcxx/include/ios
    M libcxx/include/iosfwd
    M libcxx/include/istream
    M libcxx/include/latch
    M libcxx/include/limits
    M libcxx/include/list
    M libcxx/include/locale
    M libcxx/include/map
    M libcxx/include/mutex
    M libcxx/include/new
    M libcxx/include/optional
    M libcxx/include/ostream
    M libcxx/include/queue
    M libcxx/include/regex
    M libcxx/include/scoped_allocator
    M libcxx/include/semaphore
    M libcxx/include/set
    M libcxx/include/span
    M libcxx/include/sstream
    M libcxx/include/stack
    M libcxx/include/stdexcept
    M libcxx/include/stdlib.h
    M libcxx/include/streambuf
    M libcxx/include/string_view
    M libcxx/include/strstream
    M libcxx/include/tuple
    M libcxx/include/typeindex
    M libcxx/include/typeinfo
    M libcxx/include/unordered_map
    M libcxx/include/unordered_set
    M libcxx/include/valarray
    M libcxx/include/variant
    M libcxx/include/wchar.h
    M libcxx/src/condition_variable_destructor.cpp
    M libcxx/src/hash.cpp
    M libcxx/src/include/atomic_support.h
    M libcxx/src/include/sso_allocator.h
    M libcxx/src/mutex_destructor.cpp
    M libcxx/src/support/win32/thread_win32.cpp
    M libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/noncopyable_return_type.pass.cpp

  Log Message:
  -----------
  [libc++] Rename _LIBCPP_INLINE_VISIBILITY to _LIBCPP_HIDE_FROM_ABI (#74095)

In preparation for running clang-format on the whole code base, we are
also removing mentions of the legacy _LIBCPP_INLINE_VISIBILITY macro in
favor of the newer _LIBCPP_HIDE_FROM_ABI.

We're still leaving the definition of _LIBCPP_INLINE_VISIBILITY to avoid
creating needless breakage in case some older patches are checked-in
with mentions of the old macro. After we branch for LLVM 18, we can do
another pass to clean up remaining uses of the macro that might have
gotten introduced by mistake (if any) and remove the macro itself at the
same time. This is just a minor convenience to smooth out the transition
as much as possible.

See
https://discourse.llvm.org/t/rfc-clang-formatting-all-of-libc-once-and-for-all
for the clang-format proposal.




More information about the All-commits mailing list