[all-commits] [llvm/llvm-project] ae2ae8: [libc++][test] Refactor SmallBasicString uses in r...

Joseph Loser via All-commits all-commits at lists.llvm.org
Sat Jun 11 13:01:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae2ae84ffed3662fda4c516f6e9d62a7f780b169
      https://github.com/llvm/llvm-project/commit/ae2ae84ffed3662fda4c516f6e9d62a7f780b169
  Author: Joe Loser <joeloser93 at gmail.com>
  Date:   2022-06-11 (Sat, 11 Jun 2022)

  Changed paths:
    M libcxx/test/std/ranges/range.adaptors/range.lazy.split/ctor.copy_move.pass.cpp
    M libcxx/test/std/ranges/range.adaptors/range.lazy.split/ctor.range.pass.cpp
    M libcxx/test/std/ranges/range.adaptors/range.lazy.split/general.pass.cpp
    M libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.outer/deref.pass.cpp
    M libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.outer/increment.pass.cpp
    R libcxx/test/std/ranges/range.adaptors/range.lazy.split/small_string.h
    M libcxx/test/std/ranges/range.adaptors/range.lazy.split/types.h

  Log Message:
  -----------
  [libc++][test] Refactor SmallBasicString uses in range.lazy.split tests

The tests for `std::ranges::lazy_split_view` heavily use a wrapper class around
`std::string` because `std::string` was not `constexpr` until recently. Where
possible, remove the wrapper class and extra functionality no longer needed.
Remove `libcxx/test/std/ranges/range.adaptors/range.lazy.split/small_string.h`
and inline its one use remaining in
`libcxx/test/std/ranges/range.adaptors/range.lazy.split/general.pass.cpp`.

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




More information about the All-commits mailing list