1
- ===================================================
2
- Extra Clang Tools 9 .0.0 (In-Progress) Release Notes
3
- ===================================================
1
+ ====================================================
2
+ Extra Clang Tools 10 .0.0 (In-Progress) Release Notes
3
+ ====================================================
4
4
5
5
.. contents ::
6
6
:local:
@@ -10,15 +10,15 @@ Written by the `LLVM Team <https://llvm.org/>`_
10
10
11
11
.. warning ::
12
12
13
- These are in-progress notes for the upcoming Extra Clang Tools 9 release.
13
+ These are in-progress notes for the upcoming Extra Clang Tools 10 release.
14
14
Release notes for previous releases can be found on
15
15
`the Download Page <https://releases.llvm.org/download.html >`_.
16
16
17
17
Introduction
18
18
============
19
19
20
20
This document contains the release notes for the Extra Clang Tools, part of the
21
- Clang release 9 .0.0. Here we describe the status of the Extra Clang Tools in
21
+ Clang release 10 .0.0. Here we describe the status of the Extra Clang Tools in
22
22
some detail, including major improvements from the previous release and new
23
23
feature work. All LLVM releases may be downloaded from the `LLVM releases web
24
24
site <https://llvm.org/releases/> `_.
@@ -32,8 +32,8 @@ main Clang web page, this document applies to the *next* release, not
32
32
the current one. To see the release notes for a specific release, please
33
33
see the `releases page <https://llvm.org/releases/ >`_.
34
34
35
- What's New in Extra Clang Tools 9 .0.0?
36
- ======================================
35
+ What's New in Extra Clang Tools 10 .0.0?
36
+ =======================================
37
37
38
38
Some of the major new features and improvements to Extra Clang Tools are listed
39
39
here. Generic improvements to Extra Clang Tools as a whole or to its underlying
@@ -67,187 +67,7 @@ The improvements are...
67
67
Improvements to clang-tidy
68
68
--------------------------
69
69
70
- - New OpenMP module.
71
-
72
- For checks specific to `OpenMP <https://www.openmp.org/ >`_ API.
73
-
74
- - New :doc: `abseil-duration-addition
75
- <clang-tidy/checks/abseil-duration-addition>` check.
76
-
77
- Checks for cases where addition should be performed in the ``absl::Time ``
78
- domain.
79
-
80
- - New :doc: `abseil-duration-conversion-cast
81
- <clang-tidy/checks/abseil-duration-conversion-cast>` check.
82
-
83
- Checks for casts of ``absl::Duration `` conversion functions, and recommends
84
- the right conversion function instead.
85
-
86
- - New :doc: `abseil-duration-unnecessary-conversion
87
- <clang-tidy/checks/abseil-duration-unnecessary-conversion>` check.
88
-
89
- Finds and fixes cases where ``absl::Duration `` values are being converted to
90
- numeric types and back again.
91
-
92
- - New :doc: `abseil-time-comparison
93
- <clang-tidy/checks/abseil-time-comparison>` check.
94
-
95
- Prefer comparisons in the ``absl::Time `` domain instead of the integer
96
- domain.
97
-
98
- - New :doc: `abseil-time-subtraction
99
- <clang-tidy/checks/abseil-time-subtraction>` check.
100
-
101
- Finds and fixes ``absl::Time `` subtraction expressions to do subtraction
102
- in the Time domain instead of the numeric domain.
103
-
104
- - New :doc: `android-cloexec-pipe
105
- <clang-tidy/checks/android-cloexec-pipe>` check.
106
-
107
- This check detects usage of ``pipe() ``.
108
-
109
- - New :doc: `android-cloexec-pipe2
110
- <clang-tidy/checks/android-cloexec-pipe2>` check.
111
-
112
- This checks ensures that ``pipe2() `` is called with the ``O_CLOEXEC `` flag.
113
-
114
- - New :doc: `bugprone-branch-clone
115
- <clang-tidy/checks/bugprone-branch-clone>` check.
116
-
117
- Checks for repeated branches in ``if/else if/else `` chains, consecutive
118
- repeated branches in ``switch `` statements and indentical true and false
119
- branches in conditional operators.
120
-
121
- - New :doc: `bugprone-posix-return
122
- <clang-tidy/checks/bugprone-posix-return>` check.
123
-
124
- Checks if any calls to POSIX functions (except ``posix_openpt ``) expect negative
125
- return values.
126
-
127
- - New :doc: `bugprone-unhandled-self-assignment
128
- <clang-tidy/checks/bugprone-unhandled-self-assignment>` check.
129
-
130
- Finds user-defined copy assignment operators which do not protect the code
131
- against self-assignment either by checking self-assignment explicitly or
132
- using the copy-and-swap or the copy-and-move method.
133
-
134
- - New :doc: `fuchsia-default-arguments-calls
135
- <clang-tidy/checks/fuchsia-default-arguments-calls>` check.
136
-
137
- Warns if a function or method is called with default arguments.
138
- This was previously done by `fuchsia-default-arguments check `, which has been
139
- removed.
140
-
141
- - New :doc: `fuchsia-default-arguments-declarations
142
- <clang-tidy/checks/fuchsia-default-arguments-declarations>` check.
143
-
144
- Warns if a function or method is declared with default parameters.
145
- This was previously done by `fuchsia-default-arguments check ` check, which has
146
- been removed.
147
-
148
- - New :doc: `google-objc-avoid-nsobject-new
149
- <clang-tidy/checks/google-objc-avoid-nsobject-new>` check.
150
-
151
- Checks for calls to ``+new `` or overrides of it, which are prohibited by the
152
- Google Objective-C style guide.
153
-
154
- - New :doc: `google-readability-avoid-underscore-in-googletest-name
155
- <clang-tidy/checks/google-readability-avoid-underscore-in-googletest-name>`
156
- check.
157
-
158
- Checks whether there are underscores in googletest test and test case names in
159
- test macros, which is prohibited by the Googletest FAQ.
160
-
161
- - New :doc: `llvm-prefer-isa-or-dyn-cast-in-conditionals
162
- <clang-tidy/checks/llvm-prefer-isa-or-dyn-cast-in-conditionals>` check.
163
-
164
- Looks at conditionals and finds and replaces cases of ``cast<> ``,
165
- which will assert rather than return a null pointer, and
166
- ``dyn_cast<> `` where the return value is not captured. Additionally,
167
- finds and replaces cases that match the pattern ``var &&
168
- isa<X>(var) ``, where ``var `` is evaluated twice.
169
-
170
- - New :doc: `modernize-use-trailing-return-type
171
- <clang-tidy/checks/modernize-use-trailing-return-type>` check.
172
-
173
- Rewrites function signatures to use a trailing return type.
174
-
175
- - New :doc: `objc-super-self <clang-tidy/checks/objc-super-self >` check.
176
-
177
- Finds invocations of ``-self `` on super instances in initializers of
178
- subclasses of ``NSObject `` and recommends calling a superclass initializer
179
- instead.
180
-
181
- - New :doc: `openmp-exception-escape
182
- <clang-tidy/checks/openmp-exception-escape>` check.
183
-
184
- Analyzes OpenMP Structured Blocks and checks that no exception escapes
185
- out of the Structured Block it was thrown in.
186
-
187
- - New :doc: `openmp-use-default-none
188
- <clang-tidy/checks/openmp-use-default-none>` check.
189
-
190
- Finds OpenMP directives that are allowed to contain a ``default `` clause,
191
- but either don't specify it or the clause is specified but with the kind
192
- other than ``none ``, and suggests to use the ``default(none) `` clause.
193
-
194
- - New :doc: `readability-convert-member-functions-to-static
195
- <clang-tidy/checks/readability-convert-member-functions-to-static>` check.
196
-
197
- Finds non-static member functions that can be made ``static ``.
198
-
199
- - New alias :doc: `cert-oop54-cpp
200
- <clang-tidy/checks/cert-oop54-cpp>` to
201
- :doc: `bugprone-unhandled-self-assignment
202
- <clang-tidy/checks/bugprone-unhandled-self-assignment>` was added.
203
-
204
- - New alias :doc: `cppcoreguidelines-explicit-virtual-functions
205
- <clang-tidy/checks/cppcoreguidelines-explicit-virtual-functions>` to
206
- :doc: `modernize-use-override
207
- <clang-tidy/checks/modernize-use-override>` was added.
208
-
209
- - The :doc: `bugprone-argument-comment
210
- <clang-tidy/checks/bugprone-argument-comment>` now supports
211
- `CommentBoolLiterals `, `CommentIntegerLiterals `, `CommentFloatLiterals `,
212
- `CommentUserDefiniedLiterals `, `CommentStringLiterals `,
213
- `CommentCharacterLiterals ` & `CommentNullPtrs ` options.
214
-
215
- - The :doc: `bugprone-too-small-loop-variable
216
- <clang-tidy/checks/bugprone-too-small-loop-variable>` now supports
217
- `MagnitudeBitsUpperLimit ` option. The default value was set to 16,
218
- which greatly reduces warnings related to loops which are unlikely to
219
- cause an actual functional bug.
220
-
221
- - Added `UseAssignment ` option to :doc: `cppcoreguidelines-pro-type-member-init
222
- <clang-tidy/checks/cppcoreguidelines-pro-type-member-init>`
223
-
224
- If set to true, the check will provide fix-its with literal initializers
225
- (``int i = 0; ``) instead of curly braces (``int i{}; ``).
226
-
227
- - The `fuchsia-default-arguments ` check has been removed.
228
-
229
- Warnings of function or method calls and declarations with default arguments
230
- were moved to :doc: `fuchsia-default-arguments-calls
231
- <clang-tidy/checks/fuchsia-default-arguments-calls>` and
232
- :doc: `fuchsia-default-arguments-declarations
233
- <clang-tidy/checks/fuchsia-default-arguments-declarations>` checks
234
- respectively.
235
-
236
- - The :doc: `google-runtime-int <clang-tidy/checks/google-runtime-int >`
237
- check has been disabled in Objective-C++.
238
-
239
- - The :doc: `modernize-use-override
240
- <clang-tidy/checks/modernize-use-override>` now supports `OverrideSpelling `
241
- and `FinalSpelling ` options.
242
-
243
- - The :doc: `misc-throw-by-value-catch-by-reference
244
- <clang-tidy/checks/misc-throw-by-value-catch-by-reference>` now supports
245
- `WarnOnLargeObject ` and `MaxSize ` options to warn on any large trivial
246
- object caught by value.
247
-
248
- - The `Acronyms ` and `IncludeDefaultAcronyms ` options for the
249
- :doc: `objc-property-declaration <clang-tidy/checks/objc-property-declaration >`
250
- check have been removed.
70
+ The improvements are...
251
71
252
72
Improvements to include-fixer
253
73
-----------------------------
@@ -267,5 +87,4 @@ The improvements are...
267
87
Improvements to pp-trace
268
88
------------------------
269
89
270
- - Added a new option `-callbacks ` to filter preprocessor callbacks. It replaces
271
- the `-ignore ` option.
90
+ The improvements are...
0 commit comments