[all-commits] [llvm/llvm-project] bf95a0: [libc++][test] Avoid C++23 Core features that MSVC...

Stephan T. Lavavej via All-commits all-commits at lists.llvm.org
Mon Nov 27 07:24:37 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf95a0cd2073b6f5bd2c00bc645be00d38bf49a6
      https://github.com/llvm/llvm-project/commit/bf95a0cd2073b6f5bd2c00bc645be00d38bf49a6
  Author: Stephan T. Lavavej <stl at nuwen.net>
  Date:   2023-11-27 (Mon, 27 Nov 2023)

  Changed paths:
    M libcxx/test/std/containers/views/mdspan/CustomTestLayouts.h
    M libcxx/test/std/containers/views/mdspan/mdspan/CustomTestAccessors.h
    M libcxx/test/std/containers/views/mdspan/mdspan/ctor.dh_array.pass.cpp
    M libcxx/test/std/containers/views/mdspan/mdspan/ctor.dh_extents.pass.cpp
    M libcxx/test/std/containers/views/mdspan/mdspan/ctor.dh_integers.pass.cpp
    M libcxx/test/std/containers/views/mdspan/mdspan/ctor.dh_map.pass.cpp
    M libcxx/test/std/containers/views/mdspan/mdspan/ctor.dh_map_acc.pass.cpp
    M libcxx/test/std/containers/views/mdspan/mdspan/ctor.dh_span.pass.cpp
    M libcxx/test/std/containers/views/mdspan/mdspan/swap.pass.cpp
    M libcxx/test/std/utilities/expected/expected.expected/observers/has_value.pass.cpp
    M libcxx/test/std/utilities/expected/expected.void/monadic/and_then.pass.cpp
    M libcxx/test/std/utilities/expected/expected.void/monadic/transform.pass.cpp

  Log Message:
  -----------
  [libc++][test] Avoid C++23 Core features that MSVC lacks (#73438)

Found while running libc++'s test suite with MSVC's STL, where we use
both Clang and MSVC's compiler.

libc++'s test suite has started using some C++23 Core Language features
that MSVC hasn't implemented yet. When avoiding these features costs
just a tiny bit of syntax, I would like to ask libc++ to consider making
that change in the interest of practical portability, at least until
MSVC catches up. If there's no desire to do so, then I could skip the
affected tests, but that would make me a slightly sad kitty.




More information about the All-commits mailing list