1=========================================== 2Clang |release| |ReleaseNotesTitle| 3=========================================== 4 5.. contents:: 6 :local: 7 :depth: 2 8 9Written by the `LLVM Team <https://llvm.org/>`_ 10 11.. only:: PreRelease 12 13 .. warning:: 14 These are in-progress notes for the upcoming Clang |version| release. 15 Release notes for previous releases can be found on 16 `the Download Page <https://releases.llvm.org/download.html>`_. 17 18Introduction 19============ 20 21This document contains the release notes for the Clang C/C++/Objective-C 22frontend, part of the LLVM Compiler Infrastructure, release |release|. Here we 23describe the status of Clang in some detail, including major 24improvements from the previous release and new feature work. For the 25general LLVM release notes, see `the LLVM 26documentation <https://llvm.org/docs/ReleaseNotes.html>`_. All LLVM 27releases may be downloaded from the `LLVM releases web 28site <https://llvm.org/releases/>`_. 29 30For more information about Clang or LLVM, including information about the 31latest release, please see the `Clang Web Site <https://clang.llvm.org>`_ or the 32`LLVM Web Site <https://llvm.org>`_. 33 34Note that if you are reading this file from a Git checkout or the 35main Clang web page, this document applies to the *next* release, not 36the current one. To see the release notes for a specific release, please 37see the `releases page <https://llvm.org/releases/>`_. 38 39What's New in Clang |release|? 40============================== 41 42Some of the major new features and improvements to Clang are listed 43here. Generic improvements to Clang as a whole or to its underlying 44infrastructure are described first, followed by language-specific 45sections with improvements to Clang's support for those languages. 46 47Major New Features 48------------------ 49 50- ... 51 52Improvements to Clang's diagnostics 53^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 54 55Non-comprehensive list of changes in this release 56------------------------------------------------- 57 58New Compiler Flags 59------------------ 60 61Deprecated Compiler Flags 62------------------------- 63 64Modified Compiler Flags 65----------------------- 66 67Removed Compiler Flags 68------------------------- 69 70- -Wweak-template-vtables, which was deprecated in the previous release and no 71 longer had any effect, has been removed. 72 73New Pragmas in Clang 74-------------------- 75 76- ... 77 78Attribute Changes in Clang 79-------------------------- 80 81Windows Support 82--------------- 83 84C Language Changes in Clang 85--------------------------- 86 87C++ Language Changes in Clang 88----------------------------- 89 90- ... 91 92C++20 Feature Support 93^^^^^^^^^^^^^^^^^^^^^ 94 95C++2b Feature Support 96^^^^^^^^^^^^^^^^^^^^^ 97 98CUDA Language Changes in Clang 99------------------------------ 100 101Objective-C Language Changes in Clang 102------------------------------------- 103 104OpenCL C Language Changes in Clang 105---------------------------------- 106 107... 108 109ABI Changes in Clang 110-------------------- 111 112OpenMP Support in Clang 113----------------------- 114 115- ``clang-nvlink-wrapper`` tool introduced to support linking of cubin files 116 archived in an archive. See :doc:`ClangNvlinkWrapper`. 117- ``clang-linker-wrapper`` tool introduced to support linking using a new OpenMP 118 target offloading method. See :doc:`ClangLinkerWrapper`. 119- Support for a new driver for OpenMP target offloading has been added as an 120 opt-in feature. The new driver can be selected using ``-fopenmp-new-driver`` 121 with clang. Device-side LTO can also be enabled using the new driver by 122 passing ``-foffload-lto=`` as well. The new driver supports the following 123 features: 124 - Linking AMDGPU and NVPTX offloading targets. 125 - Static linking using archive files. 126 - Device-side LTO. 127 128CUDA Support in Clang 129--------------------- 130 131- ... 132 133X86 Support in Clang 134-------------------- 135 136DWARF Support in Clang 137---------------------- 138 139Arm and AArch64 Support in Clang 140-------------------------------- 141 142Floating Point Support in Clang 143------------------------------- 144 145Internal API Changes 146-------------------- 147 148Build System Changes 149-------------------- 150 151AST Matchers 152------------ 153 154clang-format 155------------ 156 157libclang 158-------- 159 160- ... 161 162Static Analyzer 163--------------- 164 165- ... 166 167.. _release-notes-ubsan: 168 169Undefined Behavior Sanitizer (UBSan) 170------------------------------------ 171 172Core Analysis Improvements 173========================== 174 175- ... 176 177New Issues Found 178================ 179 180- ... 181 182Python Binding Changes 183---------------------- 184 185The following methods have been added: 186 187- ... 188 189Significant Known Problems 190========================== 191 192Additional Information 193====================== 194 195A wide variety of additional information is available on the `Clang web 196page <https://clang.llvm.org/>`_. The web page contains versions of the 197API documentation which are up-to-date with the Git version of 198the source code. You can access versions of these documents specific to 199this release by going into the "``clang/docs/``" directory in the Clang 200tree. 201 202If you have any questions or comments about Clang, please feel free to 203contact us via the `mailing 204list <https://lists.llvm.org/mailman/listinfo/cfe-dev>`_. 205