blob: 2f5c82e352a9e85f2ea65a60208b9a865ca0b2d7 [file] [log] [blame]
Hans Wennborg60d06bf2016-07-18 18:05:19 +00001=======================================
Hans Wennborg1fe469a2019-01-16 10:57:02 +00002Clang 9.0.0 (In-Progress) Release Notes
Hans Wennborg60d06bf2016-07-18 18:05:19 +00003=======================================
Sean Silvafe251442012-12-23 01:19:35 +00004
5.. contents::
6 :local:
7 :depth: 2
8
Hans Wennborg0aa0d912018-09-10 08:51:25 +00009Written by the `LLVM Team <https://llvm.org/>`_
Sean Silvafe251442012-12-23 01:19:35 +000010
11.. warning::
12
Hans Wennborg1fe469a2019-01-16 10:57:02 +000013 These are in-progress notes for the upcoming Clang 9 release.
Hans Wennborg189f1f32017-02-09 23:26:34 +000014 Release notes for previous releases can be found on
Hans Wennborg0aa0d912018-09-10 08:51:25 +000015 `the Download Page <https://releases.llvm.org/download.html>`_.
Sean Silvafe251442012-12-23 01:19:35 +000016
17Introduction
18============
19
20This document contains the release notes for the Clang C/C++/Objective-C
Hans Wennborg1fe469a2019-01-16 10:57:02 +000021frontend, part of the LLVM Compiler Infrastructure, release 9.0.0. Here we
Sean Silvafe251442012-12-23 01:19:35 +000022describe 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
Hans Wennborg0aa0d912018-09-10 08:51:25 +000025documentation <https://llvm.org/docs/ReleaseNotes.html>`_. All LLVM
Sean Silvafe251442012-12-23 01:19:35 +000026releases may be downloaded from the `LLVM releases web
Hans Wennborg0aa0d912018-09-10 08:51:25 +000027site <https://llvm.org/releases/>`_.
Sean Silvafe251442012-12-23 01:19:35 +000028
Hans Wennborgd878ca82017-08-30 18:35:44 +000029For more information about Clang or LLVM, including information about the
Hans Wennborg0aa0d912018-09-10 08:51:25 +000030latest release, please see the `Clang Web Site <https://clang.llvm.org>`_ or the
31`LLVM Web Site <https://llvm.org>`_.
Sean Silvafe251442012-12-23 01:19:35 +000032
33Note that if you are reading this file from a Subversion 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
Hans Wennborg0aa0d912018-09-10 08:51:25 +000036see the `releases page <https://llvm.org/releases/>`_.
Sean Silvafe251442012-12-23 01:19:35 +000037
Hans Wennborg1fe469a2019-01-16 10:57:02 +000038What's New in Clang 9.0.0?
Hans Wennborg60d06bf2016-07-18 18:05:19 +000039==========================
Sean Silvafe251442012-12-23 01:19:35 +000040
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
Hans Wennborg1fe469a2019-01-16 10:57:02 +000049- ...
Rafael Espindola34970692013-12-12 16:07:11 +000050
Sean Silvafe251442012-12-23 01:19:35 +000051Improvements to Clang's diagnostics
52^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53
Hans Wennborg1fe469a2019-01-16 10:57:02 +000054- ...
Roman Lebedev61061d62018-04-07 10:39:21 +000055
Erich Keaneb0c78092017-07-26 18:04:45 +000056Non-comprehensive list of changes in this release
57-------------------------------------------------
58
Hans Wennborg1fe469a2019-01-16 10:57:02 +000059- ...
Alex Lorenzd8ec4312017-12-14 19:22:02 +000060
Ilya Biryukov88aef522018-12-05 18:32:05 +000061
Sean Silvafe251442012-12-23 01:19:35 +000062New Compiler Flags
63------------------
64
Hans Wennborg7b852ea2018-01-03 15:49:39 +000065- ...
Aaron Ballman2b3bc4c2017-10-21 16:45:08 +000066
Joerg Sonnenbergerc9199682017-07-01 21:36:21 +000067Deprecated Compiler Flags
68-------------------------
69
70The following options are deprecated and ignored. They will be removed in
71future versions of Clang.
72
Hans Wennborgfbb21e02017-07-19 14:14:07 +000073- ...
Joerg Sonnenbergerc9199682017-07-01 21:36:21 +000074
Yuka Takahashiba900ab2018-03-07 11:34:02 +000075Modified Compiler Flags
76-----------------------
77
Hans Wennborg1fe469a2019-01-16 10:57:02 +000078- ...
Yuka Takahashiba900ab2018-03-07 11:34:02 +000079
Tyler Nowickidb2668a2014-06-18 00:51:32 +000080New Pragmas in Clang
Eugene Zelenkoad5684a2018-05-15 21:45:01 +000081--------------------
Tyler Nowickidb2668a2014-06-18 00:51:32 +000082
Hans Wennborg1fe469a2019-01-16 10:57:02 +000083- ...
Paul Robinsonf9ede1c2016-07-18 17:19:12 +000084
85Attribute Changes in Clang
86--------------------------
87
Hans Wennborgfbb21e02017-07-19 14:14:07 +000088- ...
Paul Robinsonf9ede1c2016-07-18 17:19:12 +000089
Hans Wennborg02dc0002014-08-05 00:21:23 +000090Windows Support
91---------------
92
Nico Weber1dbff9a2018-07-18 11:55:03 +000093- ...
Hans Wennborg02dc0002014-08-05 00:21:23 +000094
95
Renato Golinf2fcddb2013-12-13 09:27:34 +000096C Language Changes in Clang
97---------------------------
98
Hans Wennborg60d06bf2016-07-18 18:05:19 +000099- ...
Pirama Arumuga Nainarc85c8532016-06-21 16:09:30 +0000100
Renato Golinf2fcddb2013-12-13 09:27:34 +0000101...
102
Sean Silvafe251442012-12-23 01:19:35 +0000103C11 Feature Support
104^^^^^^^^^^^^^^^^^^^
105
106...
107
108C++ Language Changes in Clang
109-----------------------------
110
Hans Wennborg7b852ea2018-01-03 15:49:39 +0000111- ...
Richard Smith8eb53c82016-05-05 18:40:37 +0000112
113C++1z Feature Support
Sean Silvafe251442012-12-23 01:19:35 +0000114^^^^^^^^^^^^^^^^^^^^^
115
116...
117
118Objective-C Language Changes in Clang
119-------------------------------------
120
121...
122
Erik Schnetter489700d2013-11-11 06:36:33 +0000123OpenCL C Language Changes in Clang
124----------------------------------
125
Bill Wendling0a794a4b2013-11-20 10:13:37 +0000126...
Erik Schnetter489700d2013-11-11 06:36:33 +0000127
Richard Smith6822bd72018-10-26 19:26:45 +0000128ABI Changes in Clang
129--------------------
130
Hans Wennborg1fe469a2019-01-16 10:57:02 +0000131- ...
Richard Smith6822bd72018-10-26 19:26:45 +0000132
Alexey Bataev44b67502016-05-31 11:17:08 +0000133OpenMP Support in Clang
Shoaib Meenai5be71fa2019-03-04 21:19:53 +0000134-----------------------
Alexey Bataev44b67502016-05-31 11:17:08 +0000135
Alexey Bataevc2dc4d42019-02-05 20:38:36 +0000136- Added emission of the debug information for NVPTX target devices.
Alexey Bataev44b67502016-05-31 11:17:08 +0000137
Jonas Hahnfeld8da9c2a2018-04-20 13:04:54 +0000138CUDA Support in Clang
139---------------------
140
Alexey Bataevc2dc4d42019-02-05 20:38:36 +0000141- Added emission of the debug information for the device code.
Jonas Hahnfeld8da9c2a2018-04-20 13:04:54 +0000142
Sean Silvafe251442012-12-23 01:19:35 +0000143Internal API Changes
144--------------------
145
Hans Wennborg1fe469a2019-01-16 10:57:02 +0000146These are major API changes that have happened since the 8.0.0 release of
Sean Silvafe251442012-12-23 01:19:35 +0000147Clang. If upgrading an external codebase that uses Clang as a library,
148this section should help get you past the largest hurdles of upgrading.
149
Shoaib Meenai5be71fa2019-03-04 21:19:53 +0000150Build System Changes
151--------------------
152
153These are major changes to the build system that have happened since the 8.0.0
154release of Clang. Users of the build system should adjust accordingly.
155
156- In 8.0.0 and below, the install-clang-headers target would install clang's
157 resource directory headers. This installation is now performed by the
158 install-clang-resource-headers target. Users of the old install-clang-headers
Shoaib Meenai20e7c0c2019-03-11 18:53:57 +0000159 target should switch to the new install-clang-resource-headers target. The
160 install-clang-headers target now installs clang's API headers (corresponding
161 to its libraries), which is consistent with the install-llvm-headers target.
Shoaib Meenai5be71fa2019-03-04 21:19:53 +0000162
Vedant Kumar5fb00e42016-07-27 23:01:55 +0000163- ...
Richard Smitha0334a92015-05-14 00:22:12 +0000164
Aaron Ballmancdc43af2015-09-17 13:47:22 +0000165AST Matchers
166------------
Aaron Ballmancdc43af2015-09-17 13:47:22 +0000167
Hans Wennborg7b852ea2018-01-03 15:49:39 +0000168- ...
Sylvestre Ledru72e3fa72017-03-14 09:43:55 +0000169
170clang-format
171------------
172
Paul Hoad701a0d72019-03-20 20:49:43 +0000173- Added new option `PPDIS_BeforeHash` (in configuration: `BeforeHash`) to
Paul Hoad7c6ce352019-03-20 21:02:12 +0000174 `IndentPPDirectives` which indents preprocessor directives before the hash.
Sylvestre Ledruc9410392017-12-05 09:23:47 +0000175
Ted Kremenek3a2291b2013-04-24 07:33:52 +0000176libclang
177--------
178
Leonard Chan009f9e82019-01-24 00:11:35 +0000179- When `CINDEXTEST_INCLUDE_ATTRIBUTED_TYPES` is not provided when making a
180 CXType, the equivalent type of the AttributedType is returned instead of the
181 modified type if the user does not want attribute sugar. The equivalent type
182 represents the minimally-desugared type which the AttributedType is
183 canonically equivalent to.
Ted Kremenek3a2291b2013-04-24 07:33:52 +0000184
Sylvestre Ledruea49d3a2016-08-06 20:23:54 +0000185
Anna Zaksb6219a92013-04-25 23:14:38 +0000186Static Analyzer
Ted Kremenek004e8232013-04-26 00:01:34 +0000187---------------
Anna Zaksb6219a92013-04-25 23:14:38 +0000188
Hans Wennborg7b852ea2018-01-03 15:49:39 +0000189- ...
Roman Lebedev88b56ca2017-11-30 09:18:35 +0000190
Bill Wendling0a794a4b2013-11-20 10:13:37 +0000191...
Ted Kremenek004e8232013-04-26 00:01:34 +0000192
Roman Lebedevb69ba222018-07-30 18:58:30 +0000193.. _release-notes-ubsan:
194
Vedant Kumar840c2c72017-06-13 02:52:31 +0000195Undefined Behavior Sanitizer (UBSan)
196------------------------------------
197
Hans Wennborg1fe469a2019-01-16 10:57:02 +0000198- ...
Roman Lebedevbd1c0872019-01-15 09:44:25 +0000199
Ted Kremenek004e8232013-04-26 00:01:34 +0000200Core Analysis Improvements
201==========================
202
Bill Wendling61f44cc2013-06-04 06:17:46 +0000203- ...
Ted Kremenek004e8232013-04-26 00:01:34 +0000204
205New Issues Found
206================
207
Bill Wendling61f44cc2013-06-04 06:17:46 +0000208- ...
Anna Zaksb6219a92013-04-25 23:14:38 +0000209
Sean Silvafe251442012-12-23 01:19:35 +0000210Python Binding Changes
211----------------------
212
213The following methods have been added:
214
215- ...
216
217Significant Known Problems
218==========================
219
220Additional Information
221======================
222
223A wide variety of additional information is available on the `Clang web
Hans Wennborg0aa0d912018-09-10 08:51:25 +0000224page <https://clang.llvm.org/>`_. The web page contains versions of the
Sean Silvafe251442012-12-23 01:19:35 +0000225API documentation which are up-to-date with the Subversion version of
226the source code. You can access versions of these documents specific to
227this release by going into the "``clang/docs/``" directory in the Clang
228tree.
229
230If you have any questions or comments about Clang, please feel free to
231contact us via the `mailing
Hans Wennborg0aa0d912018-09-10 08:51:25 +0000232list <https://lists.llvm.org/mailman/listinfo/cfe-dev>`_.