| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[NFC][libc++][test] Removes C++98 support. (#92930) Libc++ has no separate C++98 support, it uses C++03 instead. This removes some obsolete c++98 markers in the test. Thanks to @StephanTLavavej for spotting this. | 2 年前 | |
[libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 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 | 4 年前 | |
[NFC][libc++][test] Removes C++98 support. (#92930) Libc++ has no separate C++98 support, it uses C++03 instead. This removes some obsolete c++98 markers in the test. Thanks to @StephanTLavavej for spotting this. | 2 年前 | |
[libc++] LWG3672: common_iterator::operator->() should return by value (#87899) ## Abstract This pull request implements LWG3672: common_iterator::operator->() should return by value. The current implementation specifies that this function should return the underlying pointer by reference (T* const&), but it would be more intuitive to return it by value (T*). ## Reference - [Draft C++ Standard: [common.iter.access]](https://eel.is/c++draft/common.iter.access) - [LWG3672](https://cplusplus.github.io/LWG/issue3672) | 2 年前 | |
[libc++] [test] Fix portability issues for MSVC (#93259) * Guard std::__make_from_tuple_impl tests with #ifdef _LIBCPP_VERSION and LIBCPP_STATIC_ASSERT. * Change _LIBCPP_CONSTEXPR_SINCE_CXX20 to TEST_CONSTEXPR_CXX20. + Other functions in variant.swap/swap.pass.cpp were already using the proper test macro. * Mark what as [[maybe_unused]] when used by TEST_LIBCPP_REQUIRE. + This updates one occurrence in libcxx/test/libcxx for consistency. * Windows _putenv_s() takes 2 arguments, not 3. + See MSVC documentation: https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/putenv-s-wputenv-s?view=msvc-170 + POSIX setenv() takes int overwrite, but Windows _putenv_s() always overwrites. * Avoid non-Standard zero-length arrays. + Followup to #74183 and #79792. * Add operator++() to unsized_it. + The Standard requires this due to [N4981][] [move.iter.requirements]/1 "The template parameter Iterator shall either meet the *Cpp17InputIterator* requirements ([input.iterators]) or model input_iterator ([iterator.concept.input])." + MSVC's STL requires this because it has a strengthened exception specification in move_iterator that inspects the underlying iterator's increment operator. * uniform_int_distribution forbids int8_t/uint8_t. + See [N4981][] [rand.req.genl]/1.5. MSVC's STL enforces this. + Note that when changing the distribution's IntType, we need to be careful to preserve the original value range of [0, max_input]. * fstreams are constructible from const fs::path::value_type* on wide systems. + See [ifstream.cons], [ofstream.cons], [fstream.cons]. * In msvc_stdlib_force_include.h, map _HAS_CXX23 to TEST_STD_VER 23 instead of 99. + On 2023-05-23, https://github.com/llvm/llvm-project/commit/71400505ca048507e827013eb1ea0bc863525cab started recognizing 23 as a distinct value. * Fix test name typo: destory_elements.pass.cpp => destroy_elements.pass.cpp [N4981]: https://wg21.link/N4981 | 2 年前 | |
[libc++][test] Add '-Wdeprecated-copy', '-Wdeprecated-copy-dtor' warnings to the test suite This is a follow up to https://reviews.llvm.org/D144694. Fixes https://github.com/llvm/llvm-project/issues/60977. Differential Revision: https://reviews.llvm.org/D144775 | 2 年前 | |
[libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 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 | 4 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 年前 | ||
| 4 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 4 年前 |