File: ReleaseNotes.rst

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (249 lines) | stat: -rw-r--r-- 8,369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
====================================================
Extra Clang Tools |release| |ReleaseNotesTitle|
====================================================

.. contents::
   :local:
   :depth: 3

Written by the `LLVM Team <https://llvm.org/>`_

.. only:: PreRelease

  .. warning::
     These are in-progress notes for the upcoming Extra Clang Tools |version| release.
     Release notes for previous releases can be found on
     `the Download Page <https://releases.llvm.org/download.html>`_.

Introduction
============

This document contains the release notes for the Extra Clang Tools, part of the
Clang release |release|. Here we describe the status of the Extra Clang Tools in
some detail, including major improvements from the previous release and new
feature work. All LLVM releases may be downloaded from the `LLVM releases web
site <https://llvm.org/releases/>`_.

For more information about Clang or LLVM, including information about
the latest release, please see the `Clang Web Site <https://clang.llvm.org>`_ or
the `LLVM Web Site <https://llvm.org>`_.

Note that if you are reading this file from a Git checkout or the
main Clang web page, this document applies to the *next* release, not
the current one. To see the release notes for a specific release, please
see the `releases page <https://llvm.org/releases/>`_.

What's New in Extra Clang Tools |release|?
==========================================

Some of the major new features and improvements to Extra Clang Tools are listed
here. Generic improvements to Extra Clang Tools as a whole or to its underlying
infrastructure are described first, followed by tool-specific sections.

Major New Features
------------------

...

Improvements to clangd
----------------------

Inlay hints
^^^^^^^^^^^

Diagnostics
^^^^^^^^^^^

Semantic Highlighting
^^^^^^^^^^^^^^^^^^^^^

Compile flags
^^^^^^^^^^^^^

Hover
^^^^^

Code completion
^^^^^^^^^^^^^^^

Signature help
^^^^^^^^^^^^^^

Cross-references
^^^^^^^^^^^^^^^^

Objective-C
^^^^^^^^^^^

Miscellaneous
^^^^^^^^^^^^^

Improvements to clang-doc
-------------------------

- The default executor was changed to standalone to match other tools.

Improvements to clang-query
---------------------------

The improvements are...

Improvements to clang-rename
----------------------------

The improvements are...

Improvements to clang-tidy
--------------------------

- Change to Python 3 in the shebang of `add_new_check.py` and `rename_check.py`,
  as the existing code is not compatible with Python 2.

- Fix a minor bug in `add_new_check.py` to only traverse subdirectories
  when updating the list of checks in the documentation.

- Deprecate the global configuration file option `AnalyzeTemporaryDtors`,
  which is no longer in use. The option will be fully removed in
  :program:`clang-tidy` version 18.

New checks
^^^^^^^^^^

- New :doc:`bugprone-suspicious-realloc-usage
  <clang-tidy/checks/bugprone/suspicious-realloc-usage>` check.

  Finds usages of ``realloc`` where the return value is assigned to the
  same expression as passed to the first argument.

- New :doc:`cppcoreguidelines-avoid-const-or-ref-data-members
  <clang-tidy/checks/cppcoreguidelines/avoid-const-or-ref-data-members>` check.

  Warns when a struct or class uses const or reference (lvalue or rvalue) data members.

- New :doc:`cppcoreguidelines-avoid-do-while
  <clang-tidy/checks/cppcoreguidelines/avoid-do-while>` check.

  Warns when using ``do-while`` loops.

- New :doc:`cppcoreguidelines-avoid-reference-coroutine-parameters
  <clang-tidy/checks/cppcoreguidelines/avoid-reference-coroutine-parameters>` check.

  Warns on coroutines that accept reference parameters.

- New :doc:`misc-use-anonymous-namespace
  <clang-tidy/checks/misc/use-anonymous-namespace>` check.

  Warns when using ``static`` function or variables at global scope, and suggests
  moving them into an anonymous namespace.

- New :doc:`bugprone-standalone-empty <clang-tidy/checks/bugprone/standalone-empty>` check.

  Warns when `empty()` is used on a range and the result is ignored. Suggests `clear()`
  if it is an existing member function.

New check aliases
^^^^^^^^^^^^^^^^^

- New alias :doc:`cert-msc54-cpp
  <clang-tidy/checks/cert/msc54-cpp>` to
  :doc:`bugprone-signal-handler
  <clang-tidy/checks/bugprone/signal-handler>` was added.


Changes in existing checks
^^^^^^^^^^^^^^^^^^^^^^^^^^

- Fixed a false positive in :doc:`bugprone-assignment-in-if-condition
  <clang-tidy/checks/bugprone/assignment-in-if-condition>` check when there
  was an assignement in a lambda found in the condition of an ``if``.

- Improved :doc:`bugprone-signal-handler
  <clang-tidy/checks/bugprone/signal-handler>` check. Partial
  support for C++14 signal handler rules was added. Bug report generation was
  improved.

- Fixed a false positive in :doc:`cppcoreguidelines-pro-type-member-init
  <clang-tidy/checks/cppcoreguidelines/pro-type-member-init>` when warnings
  would be emitted for uninitialized members of an anonymous union despite
  there being an initializer for one of the other members.

- Fixed false positives in :doc:`google-objc-avoid-throwing-exception
  <clang-tidy/checks/google/objc-avoid-throwing-exception>` check for exceptions
  thrown by code emitted from macros in system headers.

- Improved :doc:`misc-redundant-expression <clang-tidy/checks/misc/redundant-expression>`
  check.

  The check now skips concept definitions since redundant expressions still make sense
  inside them.

- Improved :doc:`modernize-loop-convert <clang-tidy/checks/modernize/loop-convert>`
  to check for container functions ``begin``/``end`` etc on base classes of the container
  type, instead of only as direct members of the container type itself.

- Improved :doc:`modernize-use-emplace <clang-tidy/checks/modernize/use-emplace>`
  check.

  The check now supports detecting inefficient invocations of ``push`` and
  ``push_front`` on STL-style containers and replacing them with ``emplace``
  or ``emplace_front``.

  The check now supports detecting alias cases of ``push_back`` ``push`` and
  ``push_front`` on STL-style containers and replacing them with ``emplace_back``,
  ``emplace`` or ``emplace_front``.

- Improved :doc:`modernize-use-equals-default <clang-tidy/checks/modernize/use-equals-default>`
  check.

  The check now skips unions/union-like classes since in this case a default constructor
  with empty body is not equivalent to the explicitly defaulted one, variadic constructors
  since they cannot be explicitly defaulted. The check also skips copy assignment operators
  with nonstandard return types, template constructors, private/protected default constructors
  for C++17 or earlier. The automatic fixit has been adjusted to avoid adding superfluous
  semicolon. The check is restricted to C++11 or later.

- Change the default behavior of :doc:`readability-avoid-const-params-in-decls
  <clang-tidy/checks/readability/avoid-const-params-in-decls>` to not
  warn about `const` value parameters of declarations inside macros.

- Fixed crashes in :doc:`readability-braces-around-statements
  <clang-tidy/checks/readability/braces-around-statements>` and
  :doc:`readability-simplify-boolean-expr <clang-tidy/checks/readability/simplify-boolean-expr>`
  when using a C++23 ``if consteval`` statement.

- Change the behavior of :doc:`readability-const-return-type
  <clang-tidy/checks/readability/const-return-type>` to not
  warn about `const` return types in overridden functions since the derived
  class cannot always choose to change the function signature.

- Change the default behavior of :doc:`readability-const-return-type
  <clang-tidy/checks/readability/const-return-type>` to not
  warn about `const` value parameters of declarations inside macros.

- Support removing ``c_str`` calls from ``std::string_view`` constructor calls in
  :doc:`readability-redundant-string-cstr <clang-tidy/checks/readability/redundant-string-cstr>`
  check.

Removed checks
^^^^^^^^^^^^^^

Improvements to include-fixer
-----------------------------

The improvements are...

Improvements to clang-include-fixer
-----------------------------------

The improvements are...

Improvements to modularize
--------------------------

The improvements are...

Improvements to pp-trace
------------------------

Clang-tidy Visual Studio plugin
-------------------------------