@@ -97,188 +97,11 @@ New check aliases
9797Changes in existing checks
9898^^^^^^^^^^^^^^^^^^^^^^^^^^
9999
100- - Improved :doc: `altera-id-dependent-backward-branch
101- <clang-tidy/checks/altera/id-dependent-backward-branch>` check by fixing
102- crashes from invalid code.
103-
104- - Improved :doc: `bugprone-branch-clone
105- <clang-tidy/checks/bugprone/branch-clone>` check to improve detection of
106- branch clones by now detecting duplicate inner and outer if statements.
107-
108- - Improved :doc: `bugprone-casting-through-void
109- <clang-tidy/checks/bugprone/casting-through-void>` check to suggest replacing
110- the offending code with ``reinterpret_cast ``, to more clearly express intent.
111-
112- - Improved :doc: `bugprone-dangling-handle
113- <clang-tidy/checks/bugprone/dangling-handle>` check to treat `std::span ` as a
114- handle class.
115-
116- - Improved :doc: `bugprone-exception-escape
117- <clang-tidy/checks/bugprone/exception-escape>` by fixing false positives
118- when a consteval function with throw statements.
119-
120- - Improved :doc: `bugprone-forwarding-reference-overload
121- <clang-tidy/checks/bugprone/forwarding-reference-overload>` check by fixing
122- a crash when determining if an ``enable_if[_t] `` was found.
123-
124- - Improved :doc: `bugprone-optional-value-conversion
125- <clang-tidy/checks/bugprone/optional-value-conversion>` to support detecting
126- conversion directly by ``std::make_unique `` and ``std::make_shared ``.
127-
128- - Improved :doc: `bugprone-posix-return
129- <clang-tidy/checks/bugprone/posix-return>` check to support integer literals
130- as LHS and posix call as RHS of comparison.
131-
132- - Improved :doc: `bugprone-return-const-ref-from-parameter
133- <clang-tidy/checks/bugprone/return-const-ref-from-parameter>` check to
134- diagnose potential dangling references when returning a ``const & `` parameter
135- by using the conditional operator ``cond ? var1 : var2 `` and fixing false
136- positives for functions which contain lambda and ignore parameters
137- with ``[[clang::lifetimebound]] `` attribute.
138-
139- - Improved :doc: `bugprone-sizeof-expression
140- <clang-tidy/checks/bugprone/sizeof-expression>` check to find suspicious
141- usages of ``sizeof() ``, ``alignof() ``, and ``offsetof() `` when adding or
142- subtracting from a pointer directly or when used to scale a numeric value and
143- fix false positive when sizeof expression with template types.
144-
145100- Improved :doc: `bugprone-string-constructor
146101 <clang-tidy/checks/bugprone/string-constructor>` check to find suspicious
147102 calls of ``std::string `` constructor with char pointer, start position and
148103 length parameters.
149104
150- - Improved :doc: `bugprone-throw-keyword-missing
151- <clang-tidy/checks/bugprone/throw-keyword-missing>` by fixing a false positive
152- when using non-static member initializers and a constructor.
153-
154- - Improved :doc: `bugprone-unchecked-optional-access
155- <clang-tidy/checks/bugprone/unchecked-optional-access>` to support
156- `bsl::optional ` and `bdlb::NullableValue ` from
157- <https://github.com/bloomberg/bde>_.
158-
159- - Improved :doc: `bugprone-unsafe-functions
160- <clang-tidy/checks/bugprone/unsafe-functions>` check to allow specifying
161- additional functions to match.
162-
163- - Improved :doc: `bugprone-use-after-move
164- <clang-tidy/checks/bugprone/use-after-move>` to avoid triggering on
165- ``reset() `` calls on moved-from ``std::optional `` and ``std::any `` objects,
166- similarly to smart pointers.
167-
168- - Improved :doc: `cert-flp30-c <clang-tidy/checks/cert/flp30-c >` check to
169- fix false positive that floating point variable is only used in increment
170- expression.
171-
172- - Improved :doc: `cppcoreguidelines-avoid-const-or-ref-data-members
173- <clang-tidy/checks/cppcoreguidelines/avoid-const-or-ref-data-members>` check to
174- avoid false positives when detecting a templated class with inheritance.
175-
176- - Improved :doc: `cppcoreguidelines-init-variables
177- <clang-tidy/checks/cppcoreguidelines/init-variables>` check by fixing the
178- insertion location for function pointers.
179-
180- - Improved :doc: `cppcoreguidelines-prefer-member-initializer
181- <clang-tidy/checks/cppcoreguidelines/prefer-member-initializer>` check to
182- avoid false positive when member initialization depends on a structured
183- binding variable.
184-
185- - Fixed :doc: `cppcoreguidelines-pro-type-union-access
186- <clang-tidy/checks/cppcoreguidelines/pro-type-union-access>` check to
187- report a location even when the member location is not valid.
188-
189- - Improved :doc: `misc-definitions-in-headers
190- <clang-tidy/checks/misc/definitions-in-headers>` check by rewording the
191- diagnostic note that suggests adding ``inline ``.
192-
193- - Improved :doc: `misc-redundant-expression
194- <clang-tidy/checks/misc/redundant-expression>` check by extending the
195- checker to detect floating point and integer literals in redundant
196- expressions.
197-
198- - Improved :doc: `misc-unconventional-assign-operator
199- <clang-tidy/checks/misc/unconventional-assign-operator>` check to avoid
200- false positive for C++23 deducing this.
201-
202- - Improved :doc: `misc-use-internal-linkage
203- <clang-tidy/checks/misc/use-internal-linkage>` check to insert ``static ``
204- keyword before type qualifiers such as ``const `` and ``volatile `` and fix
205- false positives for function declaration without body and fix false positives
206- for C++20 export declarations and fix false positives for global scoped
207- overloaded ``operator new `` and ``operator delete ``.
208-
209- - Improved :doc: `modernize-avoid-c-arrays
210- <clang-tidy/checks/modernize/avoid-c-arrays>` check to suggest using
211- ``std::span `` as a replacement for parameters of incomplete C array type in
212- C++20 and ``std::array `` or ``std::vector `` before C++20.
213-
214- - Improved :doc: `modernize-loop-convert
215- <clang-tidy/checks/modernize/loop-convert>` check to fix false positive when
216- using loop variable in initializer of lambda capture.
217-
218- - Improved :doc: `modernize-min-max-use-initializer-list
219- <clang-tidy/checks/modernize/min-max-use-initializer-list>` check by fixing
220- a false positive when only an implicit conversion happened inside an
221- initializer list.
222-
223- - Improved :doc: `modernize-use-designated-initializers
224- <clang-tidy/checks/modernize/use-designated-initializers>` check to fix a
225- crash when a class is declared but not defined.
226-
227- - Improved :doc: `modernize-use-nullptr
228- <clang-tidy/checks/modernize/use-nullptr>` check to also recognize
229- ``NULL ``/``__null `` (but not ``0 ``) when used with a templated type.
230-
231- - Improved :doc: `modernize-use-starts-ends-with
232- <clang-tidy/checks/modernize/use-starts-ends-with>` check to handle two new
233- cases from ``rfind `` and ``compare `` to ``ends_with ``, and one new case from
234- ``substr `` to ``starts_with ``, and a small adjustment to the diagnostic message.
235-
236- - Improved :doc: `modernize-use-std-format
237- <clang-tidy/checks/modernize/use-std-format>` check to support replacing
238- member function calls too and to only expand macros starting with ``PRI ``
239- and ``__PRI `` from ``<inttypes.h> `` in the format string.
240-
241- - Improved :doc: `modernize-use-std-print
242- <clang-tidy/checks/modernize/use-std-print>` check to support replacing
243- member function calls too and to only expand macros starting with ``PRI ``
244- and ``__PRI `` from ``<inttypes.h> `` in the format string.
245-
246- - Improved :doc: `modernize-use-using
247- <clang-tidy/checks/modernize/use-using>` check by not expanding macros.
248-
249- - Improved :doc: `performance-avoid-endl
250- <clang-tidy/checks/performance/avoid-endl>` check to use ``std::endl `` as
251- placeholder when lexer cannot get source text.
252-
253- - Improved :doc: `performance-move-const-arg
254- <clang-tidy/checks/performance/move-const-arg>` check to fix a crash when
255- an argument type is declared but not defined.
256-
257- - Improved :doc: `readability-container-contains
258- <clang-tidy/checks/readability/container-contains>` check to let it work on
259- any class that has a ``contains `` method. Fix some false negatives in the
260- ``find() `` case.
261-
262- - Improved :doc: `readability-enum-initial-value
263- <clang-tidy/checks/readability/enum-initial-value>` check by only issuing
264- diagnostics for the definition of an ``enum ``, by not emitting a redundant
265- file path for anonymous enums in the diagnostic, and by fixing a typo in the
266- diagnostic.
267-
268- - Improved :doc: `readability-implicit-bool-conversion
269- <clang-tidy/checks/readability/implicit-bool-conversion>` check
270- by adding the option `UseUpperCaseLiteralSuffix ` to select the
271- case of the literal suffix in fixes and fixing false positive for implicit
272- conversion of comparison result in C23.
273-
274- - Improved :doc: `readability-redundant-smartptr-get
275- <clang-tidy/checks/readability/redundant-smartptr-get>` check to
276- remove `-> `, when redundant `get() ` is removed.
277-
278- - Improved :doc: `readability-identifier-naming
279- <clang-tidy/checks/readability/identifier-naming>` check to
280- validate ``namespace `` aliases.
281-
282105Removed checks
283106^^^^^^^^^^^^^^
284107
0 commit comments