[all-commits] [llvm/llvm-project] 997e12: [libcxx][test] the domain of == for forward iterat...

Casey Carter via All-commits all-commits at lists.llvm.org
Mon Jan 24 13:00:27 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 997e128e2a78f5a5434fc75997441ae1ee76f8a4
      https://github.com/llvm/llvm-project/commit/997e128e2a78f5a5434fc75997441ae1ee76f8a4
  Author: Casey Carter <Casey at Carter.net>
  Date:   2022-01-24 (Mon, 24 Jan 2022)

  Changed paths:
    M libcxx/test/std/ranges/range.adaptors/range.all/range.owning.view/begin_end.pass.cpp
    M libcxx/test/std/ranges/range.adaptors/range.transform/iterator/plus_minus.pass.cpp
    M libcxx/test/std/strings/basic.string/string.iterators/iterators.pass.cpp
    M libcxx/test/std/utilities/format/format.formatter/format.parse.ctx/advance_to.pass.cpp
    M libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.copy/ranges_uninitialized_copy.pass.cpp
    M libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.copy/ranges_uninitialized_copy_n.pass.cpp
    M libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.move/ranges_uninitialized_move.pass.cpp
    M libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.move/ranges_uninitialized_move_n.pass.cpp

  Log Message:
  -----------
  [libcxx][test] the domain of == for forward iterators is iterator values from the same range

* Default-initialized `basic_string` iterators are not portably in the domain of `==`.
* Avoid comparing iterators from non-equal string_views which MSVCSTL considers not to be in the domain of equality.
* Don't test invalid range `[in, out + N)`.

Also silence some truncation warnings by testing with a non-narrowing conversion.

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




More information about the All-commits mailing list