[all-commits] [llvm/llvm-project] 64595f: [libcxx][type_traits] add tests for is_signed and ...

tmatheson-arm via All-commits all-commits at lists.llvm.org
Tue Mar 16 09:37:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64595f9b84fa77a130085260b1b4e26a2756dce8
      https://github.com/llvm/llvm-project/commit/64595f9b84fa77a130085260b1b4e26a2756dce8
  Author: Tomas Matheson <tomas.matheson at arm.com>
  Date:   2021-03-16 (Tue, 16 Mar 2021)

  Changed paths:
    M libcxx/include/type_traits
    M libcxx/test/std/utilities/meta/meta.unary/meta.unary.comp/is_arithmetic.pass.cpp
    M libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_signed.pass.cpp
    M libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_unsigned.pass.cpp

  Log Message:
  -----------
  [libcxx][type_traits] add tests for is_signed and is_unsigned

In previous versions of clang, __is_signed and __is_unsigned builtins did not
correspond to is_signed and is_unsigned behaviour for enums.  The builtins were
fixed in D67897 and D98104.

* Disable the fast path of is_unsigned for clang versions < 13

* Add more tests for is_signed, is_unsigned and is_arithmetic

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




More information about the All-commits mailing list