Hans Wennborg | 003a998 | 2019-07-18 11:51:05 +0000 | [diff] [blame] | 1 | ========================================= |
Tom Stellard | 33b3b1b | 2021-01-26 19:37:08 -0800 | [diff] [blame] | 2 | Libc++ 13.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 | 33b3b1b | 2021-01-26 19:37:08 -0800 | [diff] [blame] | 13 | These are in-progress notes for the upcoming libc++ 13 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 | 33b3b1b | 2021-01-26 19:37:08 -0800 | [diff] [blame] | 21 | part of the LLVM Compiler Infrastructure, release 13.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 | 33b3b1b | 2021-01-26 19:37:08 -0800 | [diff] [blame] | 35 | What's New in Libc++ 13.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 | |
| 38 | New Features |
| 39 | ------------ |
| 40 | |
Tom Stellard | 33b3b1b | 2021-01-26 19:37:08 -0800 | [diff] [blame] | 41 | - ... |
Raul Tambre | afcedea | 2020-06-19 12:43:33 +0530 | [diff] [blame] | 42 | |
Louis Dionne | 4222207 | 2018-09-06 14:46:22 +0000 | [diff] [blame] | 43 | API Changes |
| 44 | ----------- |
Martin Storsjö | e3a7197 | 2020-10-26 13:18:46 +0200 | [diff] [blame] | 45 | |
Louis Dionne | 574e2e3 | 2021-02-10 16:19:50 -0500 | [diff] [blame] | 46 | - There has been several changes in the tuple constructors provided by libc++. |
| 47 | Those changes were made as part of an effort to regularize libc++'s tuple |
| 48 | implementation, which contained several subtle bugs due to these extensions. |
| 49 | If you notice a build breakage when initializing a tuple, make sure you |
| 50 | properly initialize all the tuple elements - this is probably the culprit. |
| 51 | |
| 52 | In particular, the extension allowing tuples to be constructed from fewer |
| 53 | elements than the number of elements in the tuple (in which case the remaining |
| 54 | elements would be default-constructed) has been removed. See https://godbolt.org/z/sqozjd. |
| 55 | |
| 56 | Also, the extension allowing a tuple to be constructed from an array has been |
| 57 | removed. See https://godbolt.org/z/5esqbW. |
Louis Dionne | e48b28f | 2021-04-13 16:43:42 -0400 | [diff] [blame] | 58 | |
| 59 | - The ``std::pointer_safety`` utility and related functions are not available |
| 60 | in C++03 anymore. Furthermore, in other standard modes, it has changed from |
| 61 | a struct to a scoped enumeration, which is an ABI break. Finally, the |
| 62 | ``std::get_pointer_safety`` function was previously in the dylib, but it |
| 63 | is now defined as inline in the headers. |
| 64 | |
| 65 | While this is technically both an API and an ABI break, we do not expect |
| 66 | ``std::pointer_safety`` to have been used at all in real code, since we |
| 67 | never implemented the underlying support for garbage collection. |