[all-commits] [llvm/llvm-project] 9e35e6: [libc++] [ranges] Simplify our idiom for testing n...

Quuxplusone via All-commits all-commits at lists.llvm.org
Thu Jan 6 11:21:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e35e61aa435708ffe9361f768e8b0568b94bb30
      https://github.com/llvm/llvm-project/commit/9e35e61aa435708ffe9361f768e8b0568b94bb30
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2022-01-06 (Thu, 06 Jan 2022)

  Changed paths:
    M libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.advance/special_function.compile.pass.cpp
    M libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/special_function.compile.pass.cpp
    M libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/special_function.compile.pass.cpp
    A libcxx/test/support/is_niebloid.h
    R libcxx/test/support/test_standard_function.h

  Log Message:
  -----------
  [libc++] [ranges] Simplify our idiom for testing niebloid-ness.

In the test files, replace the old-style tests with a simple static_assert,
matching the current style as depicted in e.g.
`ranges_uninitialized_default_construct.pass.cpp`.

Preserve `is_function_like` (but renamed to `is_niebloid`) at
ldionne's request. The removal of this test helper will happen
in D116570 if at all.

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




More information about the All-commits mailing list