1======================================== 2Clang 13.0.0 (In-Progress) Release Notes 3======================================== 4 5.. contents:: 6 :local: 7 :depth: 2 8 9Written by the `LLVM Team <https://llvm.org/>`_ 10 11.. warning:: 12 13 These are in-progress notes for the upcoming Clang 13 release. 14 Release notes for previous releases can be found on 15 `the Download Page <https://releases.llvm.org/download.html>`_. 16 17Introduction 18============ 19 20This document contains the release notes for the Clang C/C++/Objective-C 21frontend, part of the LLVM Compiler Infrastructure, release 13.0.0. Here we 22describe the status of Clang in some detail, including major 23improvements from the previous release and new feature work. For the 24general LLVM release notes, see `the LLVM 25documentation <https://llvm.org/docs/ReleaseNotes.html>`_. All LLVM 26releases may be downloaded from the `LLVM releases web 27site <https://llvm.org/releases/>`_. 28 29For more information about Clang or LLVM, including information about the 30latest release, please see the `Clang Web Site <https://clang.llvm.org>`_ or the 31`LLVM Web Site <https://llvm.org>`_. 32 33Note that if you are reading this file from a Git checkout or the 34main Clang web page, this document applies to the *next* release, not 35the current one. To see the release notes for a specific release, please 36see the `releases page <https://llvm.org/releases/>`_. 37 38What's New in Clang 13.0.0? 39=========================== 40 41Some of the major new features and improvements to Clang are listed 42here. Generic improvements to Clang as a whole or to its underlying 43infrastructure are described first, followed by language-specific 44sections with improvements to Clang's support for those languages. 45 46Major New Features 47------------------ 48 49- ... 50 51Improvements to Clang's diagnostics 52^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 53 54- ... 55 56Non-comprehensive list of changes in this release 57------------------------------------------------- 58 59- ... 60 61New Compiler Flags 62------------------ 63 64- ... 65 66Deprecated Compiler Flags 67------------------------- 68 69- ... 70 71Modified Compiler Flags 72----------------------- 73 74- -Wshadow now also checks for shadowed structured bindings 75 76Removed Compiler Flags 77------------------------- 78 79- The clang-cl ``/fallback`` flag, which made clang-cl invoke Microsoft Visual 80 C++ on files it couldn't compile itself, has been removed. 81 82- ``-Wreturn-std-move-in-c++11``, which checked whether an entity is affected by 83 `CWG1579 <https://wg21.link/CWG1579>`_ to become implicitly movable, has been 84 removed. 85 86New Pragmas in Clang 87-------------------- 88 89- ... 90 91Attribute Changes in Clang 92-------------------------- 93 94- ... 95 96Windows Support 97--------------- 98 99C Language Changes in Clang 100--------------------------- 101 102- ... 103 104C++ Language Changes in Clang 105----------------------------- 106 107- ... 108 109C++1z Feature Support 110^^^^^^^^^^^^^^^^^^^^^ 111... 112 113Objective-C Language Changes in Clang 114------------------------------------- 115 116OpenCL C Language Changes in Clang 117---------------------------------- 118 119... 120 121ABI Changes in Clang 122-------------------- 123 124OpenMP Support in Clang 125----------------------- 126 127- ... 128 129CUDA Support in Clang 130--------------------- 131 132- ... 133 134X86 Support in Clang 135-------------------- 136 137- ... 138 139Internal API Changes 140-------------------- 141 142These are major API changes that have happened since the 12.0.0 release of 143Clang. If upgrading an external codebase that uses Clang as a library, 144this section should help get you past the largest hurdles of upgrading. 145 146- ... 147 148Build System Changes 149-------------------- 150 151These are major changes to the build system that have happened since the 12.0.0 152release of Clang. Users of the build system should adjust accordingly. 153 154- ... 155 156AST Matchers 157------------ 158 159- ... 160 161clang-format 162------------ 163 164- Option ``SpacesInLineCommentPrefix`` has been added to control the 165 number of spaces in a line comments prefix. 166 167- Option ``SortIncludes`` has been updated from a ``bool`` to an 168 ``enum`` with backwards compatibility. In addition to the previous 169 ``true``/``false`` states (now ``CaseInsensitive``/``Never``), a third 170 state has been added (``CaseSensitive``) which causes an alphabetical sort 171 with case used as a tie-breaker. 172 173 .. code-block:: c++ 174 175 // Never (previously false) 176 #include "B/A.h" 177 #include "A/B.h" 178 #include "a/b.h" 179 #include "A/b.h" 180 #include "B/a.h" 181 182 // CaseInsensitive (previously true) 183 #include "A/B.h" 184 #include "A/b.h" 185 #include "B/A.h" 186 #include "B/a.h" 187 #include "a/b.h" 188 189 // CaseSensitive 190 #include "A/B.h" 191 #include "A/b.h" 192 #include "a/b.h" 193 #include "B/A.h" 194 #include "B/a.h" 195 196- ``BasedOnStyle: InheritParentConfig`` allows to use the ``.clang-format`` of 197 the parent directories to overwrite only parts of it. 198 199- Option ``IndentAccessModifiers`` has been added to be able to give access 200 modifiers their own indentation level inside records. 201 202libclang 203-------- 204 205- ... 206 207Static Analyzer 208--------------- 209 210- ... 211 212.. _release-notes-ubsan: 213 214Undefined Behavior Sanitizer (UBSan) 215------------------------------------ 216 217Core Analysis Improvements 218========================== 219 220- ... 221 222New Issues Found 223================ 224 225- ... 226 227Python Binding Changes 228---------------------- 229 230The following methods have been added: 231 232- ... 233 234Significant Known Problems 235========================== 236 237Additional Information 238====================== 239 240A wide variety of additional information is available on the `Clang web 241page <https://clang.llvm.org/>`_. The web page contains versions of the 242API documentation which are up-to-date with the Git version of 243the source code. You can access versions of these documents specific to 244this release by going into the "``clang/docs/``" directory in the Clang 245tree. 246 247If you have any questions or comments about Clang, please feel free to 248contact us via the `mailing 249list <https://lists.llvm.org/mailman/listinfo/cfe-dev>`_. 250