Hans Wennborg | 003a998 | 2019-07-18 11:51:05 +0000 | [diff] [blame] | 1 | ========================================= |
Tom Stellard | f375292 | 2022-07-26 19:43:55 -0700 | [diff] [blame] | 2 | Libc++ 16.0.0 (In-Progress) Release Notes |
Hans Wennborg | 003a998 | 2019-07-18 11:51:05 +0000 | [diff] [blame] | 3 | ========================================= |
Louis Dionne | 4222207 | 2018-09-06 14:46:22 +0000 | [diff] [blame] | 4 | |
| 5 | .. contents:: |
| 6 | :local: |
| 7 | :depth: 2 |
| 8 | |
Hans Wennborg | 3329a84 | 2018-09-10 08:57:12 +0000 | [diff] [blame] | 9 | Written by the `Libc++ Team <https://libcxx.llvm.org>`_ |
Louis Dionne | 4222207 | 2018-09-06 14:46:22 +0000 | [diff] [blame] | 10 | |
| 11 | .. warning:: |
| 12 | |
Tom Stellard | f375292 | 2022-07-26 19:43:55 -0700 | [diff] [blame] | 13 | These are in-progress notes for the upcoming libc++ 16 release. |
Louis Dionne | 4222207 | 2018-09-06 14:46:22 +0000 | [diff] [blame] | 14 | Release notes for previous releases can be found on |
Hans Wennborg | 3329a84 | 2018-09-10 08:57:12 +0000 | [diff] [blame] | 15 | `the Download Page <https://releases.llvm.org/download.html>`_. |
Louis Dionne | 4222207 | 2018-09-06 14:46:22 +0000 | [diff] [blame] | 16 | |
| 17 | Introduction |
| 18 | ============ |
| 19 | |
| 20 | This document contains the release notes for the libc++ C++ Standard Library, |
Tom Stellard | f375292 | 2022-07-26 19:43:55 -0700 | [diff] [blame] | 21 | part of the LLVM Compiler Infrastructure, release 16.0.0. Here we describe the |
Louis Dionne | 4222207 | 2018-09-06 14:46:22 +0000 | [diff] [blame] | 22 | status of libc++ in some detail, including major improvements from the previous |
| 23 | release and new feature work. For the general LLVM release notes, see `the LLVM |
Hans Wennborg | 3329a84 | 2018-09-10 08:57:12 +0000 | [diff] [blame] | 24 | documentation <https://llvm.org/docs/ReleaseNotes.html>`_. All LLVM releases may |
| 25 | be downloaded from the `LLVM releases web site <https://llvm.org/releases/>`_. |
Louis Dionne | 4222207 | 2018-09-06 14:46:22 +0000 | [diff] [blame] | 26 | |
| 27 | For more information about libc++, please see the `Libc++ Web Site |
Hans Wennborg | 3329a84 | 2018-09-10 08:57:12 +0000 | [diff] [blame] | 28 | <https://libcxx.llvm.org>`_ or the `LLVM Web Site <https://llvm.org>`_. |
Louis Dionne | 4222207 | 2018-09-06 14:46:22 +0000 | [diff] [blame] | 29 | |
Hans Wennborg | fc14f4e | 2020-01-15 10:02:56 +0100 | [diff] [blame] | 30 | Note that if you are reading this file from a Git checkout or the |
Louis Dionne | 4222207 | 2018-09-06 14:46:22 +0000 | [diff] [blame] | 31 | main Libc++ web page, this document applies to the *next* release, not |
| 32 | the current one. To see the release notes for a specific release, please |
Hans Wennborg | 3329a84 | 2018-09-10 08:57:12 +0000 | [diff] [blame] | 33 | see the `releases page <https://llvm.org/releases/>`_. |
Louis Dionne | 4222207 | 2018-09-06 14:46:22 +0000 | [diff] [blame] | 34 | |
Tom Stellard | f375292 | 2022-07-26 19:43:55 -0700 | [diff] [blame] | 35 | What's New in Libc++ 16.0.0? |
Hans Wennborg | 003a998 | 2019-07-18 11:51:05 +0000 | [diff] [blame] | 36 | ============================ |
Louis Dionne | 4222207 | 2018-09-06 14:46:22 +0000 | [diff] [blame] | 37 | |
Nikolas Klauser | 4f4a9bd | 2022-06-17 20:20:48 +0200 | [diff] [blame] | 38 | Implemented Papers |
| 39 | ------------------ |
Igor Zhukov | a925f62 | 2022-08-02 12:46:31 +0200 | [diff] [blame] | 40 | - P2499R0 - ``string_view`` range constructor should be ``explicit`` |
Nikolas Klauser | 73015c1 | 2022-08-13 13:52:35 +0200 | [diff] [blame] | 41 | - P2417R2 - A more constexpr bitset |
Igor Zhukov | 57ea60e | 2022-08-21 22:21:08 +0700 | [diff] [blame] | 42 | - P2445R1 - ``std::forward_like`` |
Igor Zhukov | 85a3363 | 2022-09-03 18:49:50 +0700 | [diff] [blame] | 43 | - P2273R3 - Making ``std::unique_ptr`` constexpr |
Louis Dionne | 4222207 | 2018-09-06 14:46:22 +0000 | [diff] [blame] | 44 | |
Louis Dionne | 1ce86ad | 2022-07-21 12:48:14 -0400 | [diff] [blame] | 45 | Improvements and New Features |
| 46 | ----------------------------- |
Tom Honermann | 8a07d8c | 2022-09-10 10:16:20 -0400 | [diff] [blame] | 47 | - Declarations of ``std::c8rtomb()`` and ``std::mbrtoc8()`` from P0482R6 are |
| 48 | now provided when implementations in the global namespace are provided by |
| 49 | the C library. |
Nikolas Klauser | 4f4a9bd | 2022-06-17 20:20:48 +0200 | [diff] [blame] | 50 | |
Louis Dionne | 1ce86ad | 2022-07-21 12:48:14 -0400 | [diff] [blame] | 51 | Deprecations and Removals |
| 52 | ------------------------- |
Mark de Wever | f6df9e8 | 2022-08-20 10:34:26 +0200 | [diff] [blame] | 53 | - Several incidental transitive includes have been removed from libc++. Those |
| 54 | includes are removed based on the language version used. Incidental transitive |
| 55 | inclusions of the following headers have been removed: |
| 56 | |
| 57 | - C++20: ``chrono`` |
| 58 | - C++2b: ``algorithm``, ``array``, ``atomic``, ``bit``, ``chrono``, |
Mark de Wever | 79d5e6a | 2022-09-07 18:52:41 +0200 | [diff] [blame] | 59 | ``climits``, ``cmath``, ``compare``, ``concepts``, ``cstdarg``, ``cstdlib``, |
Mark de Wever | f6df9e8 | 2022-08-20 10:34:26 +0200 | [diff] [blame] | 60 | ``cstring``, ``ctime``, ``exception``, ``functional``, |
| 61 | ``initializer_list``, ``iosfwd``, ``iterator``, ``memory``, ``new``, |
| 62 | ``optional``, ``ratio``, ``stdexcept``, ``tuple``, ``typeinfo``, |
| 63 | ``unordered_map``, ``utility``, ``variant``, ``vector``. |
| 64 | |
| 65 | Users can also remove all incidental transitive includes by defining |
| 66 | ``_LIBCPP_REMOVE_TRANSITIVE_INCLUDES`` regardless of the language version |
| 67 | in use. Note that in the future, libc++ reserves the right to remove |
| 68 | incidental transitive includes more aggressively, in particular regardless |
| 69 | of the language version in use. |
| 70 | |
Louis Dionne | 12507ef | 2022-03-07 09:00:17 -0500 | [diff] [blame] | 71 | |
Louis Dionne | 1ce86ad | 2022-07-21 12:48:14 -0400 | [diff] [blame] | 72 | Upcoming Deprecations and Removals |
| 73 | ---------------------------------- |
| 74 | |
Adrian Vogelsgesang | 55e0c49 | 2022-07-31 16:12:42 -0700 | [diff] [blame] | 75 | API Changes |
| 76 | ----------- |
| 77 | - The comparison operators on ``thread::id`` are now defined as free-standing |
| 78 | functions instead of as hidden friends, in conformance with the C++ standard. |
| 79 | Also see `issue 56187 <https://github.com/llvm/llvm-project/issues/56187>`_. |
| 80 | |
Nikolas Klauser | 3e7bca1 | 2022-08-19 15:41:56 +0200 | [diff] [blame] | 81 | - ``_LIBCPP_ENABLE_NODISCARD`` and ``_LIBCPP_DISABLE_NODISCARD_AFTER_CXX17`` are no longer respected. |
| 82 | Any standards-required ``[[nodiscard]]`` applications in C++20 are now always enabled. Any extended applications |
Nikolas Klauser | bbb1361 | 2022-09-01 12:02:58 +0200 | [diff] [blame] | 83 | are now enabled by default and can be disabled by defining ``_LIBCPP_DISABLE_NODISCARD_EXT``. |
Nikolas Klauser | 3e7bca1 | 2022-08-19 15:41:56 +0200 | [diff] [blame] | 84 | |
Louis Dionne | 1ce86ad | 2022-07-21 12:48:14 -0400 | [diff] [blame] | 85 | ABI Affecting Changes |
| 86 | --------------------- |
Joe Loser | 8fcb1d9 | 2021-10-28 15:38:02 -0400 | [diff] [blame] | 87 | |
Louis Dionne | 14918c8 | 2021-10-18 13:58:31 -0400 | [diff] [blame] | 88 | Build System Changes |
| 89 | -------------------- |