Skip to content

Commit 5dd86ab

Browse files
committed
clang-tidy release notes: Split and order changes by type
Patch by Eugene Zelenko! llvm-svn: 366408
1 parent 33a4336 commit 5dd86ab

File tree

1 file changed

+61
-58
lines changed

1 file changed

+61
-58
lines changed

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 61 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The improvements are...
5757
Improvements to clang-query
5858
---------------------------
5959

60-
- ...
60+
The improvements are...
6161

6262
Improvements to clang-rename
6363
----------------------------
@@ -109,14 +109,7 @@ Improvements to clang-tidy
109109
- New :doc:`android-cloexec-pipe2
110110
<clang-tidy/checks/android-cloexec-pipe2>` check.
111111

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.
120113

121114
- New :doc:`bugprone-branch-clone
122115
<clang-tidy/checks/bugprone-branch-clone>` check.
@@ -131,39 +124,78 @@ Improvements to clang-tidy
131124
Checks if any calls to POSIX functions (except ``posix_openpt``) expect negative
132125
return values.
133126

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+
134134
- New :doc:`fuchsia-default-arguments-calls
135135
<clang-tidy/checks/fuchsia-default-arguments-calls>` check.
136136

137137
Warns if a function or method is called with default arguments.
138138
This was previously done by `fuchsia-default-arguments check`, which has been
139139
removed.
140140

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.
143143

144144
Warns if a function or method is declared with default parameters.
145145
This was previously done by `fuchsia-default-arguments check` check, which has
146146
been removed.
147147

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+
148154
- New :doc:`google-readability-avoid-underscore-in-googletest-name
149155
<clang-tidy/checks/google-readability-avoid-underscore-in-googletest-name>`
150156
check.
151157

152158
Checks whether there are underscores in googletest test and test case names in
153159
test macros, which is prohibited by the Googletest FAQ.
154160

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.
157163

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.
160174

161175
- New :doc:`objc-super-self <clang-tidy/checks/objc-super-self>` check.
162176

163177
Finds invocations of ``-self`` on super instances in initializers of
164178
subclasses of ``NSObject`` and recommends calling a superclass initializer
165179
instead.
166180

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+
167199
- New alias :doc:`cert-oop54-cpp
168200
<clang-tidy/checks/cert-oop54-cpp>` to
169201
:doc:`bugprone-unhandled-self-assignment
@@ -186,70 +218,41 @@ Improvements to clang-tidy
186218
which greatly reduces warnings related to loops which are unlikely to
187219
cause an actual functional bug.
188220

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.
190228

191229
Warnings of function or method calls and declarations with default arguments
192230
were moved to :doc:`fuchsia-default-arguments-calls
193231
<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.
196235

197236
- The :doc:`google-runtime-int <clang-tidy/checks/google-runtime-int>`
198237
check has been disabled in Objective-C++.
199238

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-
204239
- The :doc:`modernize-use-override
205240
<clang-tidy/checks/modernize-use-override>` now supports `OverrideSpelling`
206241
and `FinalSpelling` options.
207242

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-
222243
- The :doc:`misc-throw-by-value-catch-by-reference
223244
<clang-tidy/checks/misc-throw-by-value-catch-by-reference>` now supports
224245
`WarnOnLargeObject` and `MaxSize` options to warn on any large trivial
225246
object caught by value.
226247

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.
237251

238252
Improvements to include-fixer
239253
-----------------------------
240254

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...
253256

254257
Improvements to clang-include-fixer
255258
-----------------------------------

0 commit comments

Comments
 (0)