[all-commits] [llvm/llvm-project] 475bd1: [libc++][NFC] Refactor return type enable_ifs to d...

philnik777 via All-commits all-commits at lists.llvm.org
Tue Aug 15 12:19:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 475bd19ee8e42e68635b9770d5725461b7300914
      https://github.com/llvm/llvm-project/commit/475bd19ee8e42e68635b9770d5725461b7300914
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2023-08-15 (Tue, 15 Aug 2023)

  Changed paths:
    M libcxx/include/__algorithm/copy_n.h
    M libcxx/include/__algorithm/half_positive.h
    M libcxx/include/__atomic/atomic.h
    M libcxx/include/__atomic/cxx_atomic_impl.h
    M libcxx/include/__chrono/duration.h
    M libcxx/include/__chrono/time_point.h
    M libcxx/include/__filesystem/path.h
    M libcxx/include/__filesystem/u8path.h
    M libcxx/include/__functional/bind.h
    M libcxx/include/__iterator/next.h
    M libcxx/include/__iterator/prev.h
    M libcxx/include/__memory/shared_ptr.h
    M libcxx/include/__memory/unique_ptr.h
    M libcxx/include/__random/discard_block_engine.h
    M libcxx/include/__random/independent_bits_engine.h
    M libcxx/include/__random/linear_congruential_engine.h
    M libcxx/include/__random/mersenne_twister_engine.h
    M libcxx/include/__random/shuffle_order_engine.h
    M libcxx/include/__random/subtract_with_carry_engine.h
    M libcxx/include/__system_error/error_code.h
    M libcxx/include/__system_error/error_condition.h
    M libcxx/include/__type_traits/is_swappable.h
    M libcxx/include/__utility/convert_to_integral.h
    M libcxx/include/__utility/pair.h
    M libcxx/include/__utility/swap.h
    M libcxx/include/cmath
    M libcxx/include/complex
    M libcxx/include/ostream
    M libcxx/include/regex
    M libcxx/include/set
    M libcxx/include/valarray
    M libcxx/include/vector

  Log Message:
  -----------
  [libc++][NFC] Refactor return type enable_ifs to defaulted template arguments

This brings most of the enable_ifs in libc++ to the same style. It also has the nice side-effect of reducing the size of names of these symbols, since the depedent return type is shorter.

Reviewed By: #libc, ldionne

Spies: ldionne, libcxx-commits

Differential Revision: https://reviews.llvm.org/D157736




More information about the All-commits mailing list