[all-commits] [llvm/llvm-project] c273f5: [libc++][nfc] remove duplicated __to_unsigned.

mordante via All-commits all-commits at lists.llvm.org
Wed May 12 12:10:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c273f5ef7d3f5ac05f67ec899e25830cd9543e56
      https://github.com/llvm/llvm-project/commit/c273f5ef7d3f5ac05f67ec899e25830cd9543e56
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2021-05-12 (Wed, 12 May 2021)

  Changed paths:
    M libcxx/include/__ranges/size.h
    M libcxx/include/charconv
    M libcxx/include/type_traits

  Log Message:
  -----------
  [libc++][nfc] remove duplicated __to_unsigned.

Both `<type_traits>` and `<charconv>` implemented this function with
different names and a slightly different behavior. This removes the
version in `<charconv>` and improves the version in `<typetraits>`.

- The code can be used again in C++11.
-  The original claimed C++14 support, but `[[nodiscard]]` is not
   available in  C++14.
- Adds `_LIBCPP_INLINE_VISIBILITY`.

Reviewed By: zoecarver, #libc, Quuxplusone

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




More information about the All-commits mailing list