@@ -57,7 +57,7 @@ The improvements are...
57
57
Improvements to clang-query
58
58
---------------------------
59
59
60
- - ...
60
+ The improvements are ...
61
61
62
62
Improvements to clang-rename
63
63
----------------------------
@@ -109,14 +109,7 @@ Improvements to clang-tidy
109
109
- New :doc: `android-cloexec-pipe2
110
110
<clang-tidy/checks/android-cloexec-pipe2>` check.
111
111
112
- This checks ensures that ``pipe2() `` is called with the O_CLOEXEC flag.
113
-
114
- - New :doc: `bugprone-unhandled-self-assignment
115
- <clang-tidy/checks/bugprone-unhandled-self-assignment>` check.
116
-
117
- Finds user-defined copy assignment operators which do not protect the code
118
- against self-assignment either by checking self-assignment explicitly or
119
- using the copy-and-swap or the copy-and-move method.
112
+ This checks ensures that ``pipe2() `` is called with the ``O_CLOEXEC `` flag.
120
113
121
114
- New :doc: `bugprone-branch-clone
122
115
<clang-tidy/checks/bugprone-branch-clone>` check.
@@ -131,39 +124,78 @@ Improvements to clang-tidy
131
124
Checks if any calls to POSIX functions (except ``posix_openpt ``) expect negative
132
125
return values.
133
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
134
- New :doc: `fuchsia-default-arguments-calls
135
135
<clang-tidy/checks/fuchsia-default-arguments-calls>` check.
136
136
137
137
Warns if a function or method is called with default arguments.
138
138
This was previously done by `fuchsia-default-arguments check `, which has been
139
139
removed.
140
140
141
- - New :doc: `fuchsia-default-arguments-calls
142
- <clang-tidy/checks/fuchsia-default-arguments-calls >` check.
141
+ - New :doc: `fuchsia-default-arguments-declarations
142
+ <clang-tidy/checks/fuchsia-default-arguments-declarations >` check.
143
143
144
144
Warns if a function or method is declared with default parameters.
145
145
This was previously done by `fuchsia-default-arguments check ` check, which has
146
146
been removed.
147
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
+
148
154
- New :doc: `google-readability-avoid-underscore-in-googletest-name
149
155
<clang-tidy/checks/google-readability-avoid-underscore-in-googletest-name>`
150
156
check.
151
157
152
158
Checks whether there are underscores in googletest test and test case names in
153
159
test macros, which is prohibited by the Googletest FAQ.
154
160
155
- - New :doc: `google-objc-avoid-nsobject-new
156
- <clang-tidy/checks/google-objc-avoid-nsobject-new >` check.
161
+ - New :doc: `llvm-prefer-isa-or-dyn-cast-in-conditionals
162
+ <clang-tidy/checks/llvm-prefer-isa-or-dyn-cast-in-conditionals >` check.
157
163
158
- Checks for calls to ``+new `` or overrides of it, which are prohibited by the
159
- Google Objective-C style guide.
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.
160
174
161
175
- New :doc: `objc-super-self <clang-tidy/checks/objc-super-self >` check.
162
176
163
177
Finds invocations of ``-self `` on super instances in initializers of
164
178
subclasses of ``NSObject `` and recommends calling a superclass initializer
165
179
instead.
166
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
+
167
199
- New alias :doc: `cert-oop54-cpp
168
200
<clang-tidy/checks/cert-oop54-cpp>` to
169
201
:doc: `bugprone-unhandled-self-assignment
@@ -186,70 +218,41 @@ Improvements to clang-tidy
186
218
which greatly reduces warnings related to loops which are unlikely to
187
219
cause an actual functional bug.
188
220
189
- - The ‘fuchsia-default-arguments’ check has been removed.
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.
190
228
191
229
Warnings of function or method calls and declarations with default arguments
192
230
were moved to :doc: `fuchsia-default-arguments-calls
193
231
<clang-tidy/checks/fuchsia-default-arguments-calls>` and
194
- :doc: `fuchsia-default-arguments-calls
195
- <clang-tidy/checks/fuchsia-default-arguments-calls>` checks respectively.
232
+ :doc: `fuchsia-default-arguments-declarations
233
+ <clang-tidy/checks/fuchsia-default-arguments-declarations>` checks
234
+ respectively.
196
235
197
236
- The :doc: `google-runtime-int <clang-tidy/checks/google-runtime-int >`
198
237
check has been disabled in Objective-C++.
199
238
200
- - The `Acronyms ` and `IncludeDefaultAcronyms ` options for the
201
- :doc: `objc-property-declaration <clang-tidy/checks/objc-property-declaration >`
202
- check have been removed.
203
-
204
239
- The :doc: `modernize-use-override
205
240
<clang-tidy/checks/modernize-use-override>` now supports `OverrideSpelling `
206
241
and `FinalSpelling ` options.
207
242
208
- - New :doc: `llvm-prefer-isa-or-dyn-cast-in-conditionals
209
- <clang-tidy/checks/llvm-prefer-isa-or-dyn-cast-in-conditionals>` check.
210
-
211
- Looks at conditionals and finds and replaces cases of ``cast<> ``,
212
- which will assert rather than return a null pointer, and
213
- ``dyn_cast<> `` where the return value is not captured. Additionally,
214
- finds and replaces cases that match the pattern ``var &&
215
- isa<X>(var) ``, where ``var `` is evaluated twice.
216
-
217
- - New :doc: `modernize-use-trailing-return-type
218
- <clang-tidy/checks/modernize-use-trailing-return-type>` check.
219
-
220
- Rewrites function signatures to use a trailing return type.
221
-
222
243
- The :doc: `misc-throw-by-value-catch-by-reference
223
244
<clang-tidy/checks/misc-throw-by-value-catch-by-reference>` now supports
224
245
`WarnOnLargeObject ` and `MaxSize ` options to warn on any large trivial
225
246
object caught by value.
226
247
227
- - Added `UseAssignment ` option to :doc: `cppcoreguidelines-pro-type-member-init
228
- <clang-tidy/checks/cppcoreguidelines-pro-type-member-init>`
229
-
230
- If set to true, the check will provide fix-its with literal initializers
231
- (``int i = 0; ``) instead of curly braces (``int i{}; ``).
232
-
233
- - New :doc: `readability-convert-member-functions-to-static
234
- <clang-tidy/checks/readability-convert-member-functions-to-static>` check.
235
-
236
- Finds non-static member functions that can be made ``static ``.
248
+ - The `Acronyms ` and `IncludeDefaultAcronyms ` options for the
249
+ :doc: `objc-property-declaration <clang-tidy/checks/objc-property-declaration >`
250
+ check have been removed.
237
251
238
252
Improvements to include-fixer
239
253
-----------------------------
240
254
241
- - New :doc: `openmp-exception-escape
242
- <clang-tidy/checks/openmp-exception-escape>` check.
243
-
244
- Analyzes OpenMP Structured Blocks and checks that no exception escapes
245
- out of the Structured Block it was thrown in.
246
-
247
- - New :doc: `openmp-use-default-none
248
- <clang-tidy/checks/openmp-use-default-none>` check.
249
-
250
- Finds OpenMP directives that are allowed to contain a ``default `` clause,
251
- but either don't specify it or the clause is specified but with the kind
252
- other than ``none ``, and suggests to use the ``default(none) `` clause.
255
+ The improvements are...
253
256
254
257
Improvements to clang-include-fixer
255
258
-----------------------------------
0 commit comments