summaryrefslogtreecommitdiff
path: root/libcxx/test/std/strings/string.view/string.view.deduct/range.pass.cpp
AgeCommit message (Collapse)Author
2023-09-01[libc++] Apply clang formatting to all string unit testsBrendan Emery
This applies clang-format to the std::string unit tests in preparation for landing https://reviews.llvm.org/D140550. Differential Revision: https://reviews.llvm.org/D140612
2022-08-18[libc++] Make <ranges> non-experimentalLouis Dionne
When we ship LLVM 16, <ranges> won't be considered experimental anymore. We might as well do this sooner rather than later. Differential Revision: https://reviews.llvm.org/D132151
2022-08-02[libc++] Implement P2499R0 (`string_view` range constructor should be ↵Igor Zhukov
`explicit`) Reviewed By: #libc, philnik, Mordante Spies: Mordante, jloser, philnik, libcxx-commits Differential Revision: https://reviews.llvm.org/D130785
2022-03-13[libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI.Joe Loser
All supported compilers that support C++20 now support concepts. So, remove `_LIB_LIBCPP_HAS_NO_CONCEPTS` in favor of `_LIBCPP_STD_VER > 17`. Similarly in the tests, remove `// UNSUPPORTED: libcpp-no-concepts`. Differential Revision: https://reviews.llvm.org/D121528
2022-02-15[libc++] Guard much of std::ranges under _LIBCPP_HAS_NO_INCOMPLETE_RANGES.Arthur O'Dwyer
The logic here is that we are disabling *only* things in `std::ranges::`. Everything in `std::` is permitted, including `default_sentinel`, `contiguous_iterator`, `common_iterator`, `projected`, `swappable`, and so on. Then, we include anything from `std::ranges::` that is required in order to make those things work: `ranges::swap`, `ranges::swap_ranges`, `input_range`, `ranges::begin`, `ranges::iter_move`, and so on. But then that's all. Everything else (including notably all of the "views" and the `std::views` namespace itself) is still locked up behind `_LIBCPP_HAS_NO_INCOMPLETE_RANGES`. Differential Revision: https://reviews.llvm.org/D118736
2021-12-01[libc++] Implement P1989R2: range constructor for string_viewJoe Loser
Implement P1989R2 which adds a range constructor for `string_view`. Adjust `operator/=` in `path` to avoid atomic constraints caching issue getting provoked from this PR. Add defaulted template argument to `string_view`'s "sufficient overloads" to avoid mangling issues in `clang-cl` builds. It is a MSVC mangling bug that this works around. Differential Revision: https://reviews.llvm.org/D113161