Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions clang-tools-extra/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,17 @@ Improvements to clang-tidy
New checks
^^^^^^^^^^

- New :doc:`bugprone-derived-method-shadowing-base-method
<clang-tidy/checks/bugprone/derived-method-shadowing-base-method>` check.

Finds derived class methods that shadow a (non-virtual) base class method.

- New :doc:`bugprone-invalid-enum-default-initialization
<clang-tidy/checks/bugprone/invalid-enum-default-initialization>` check.

Detects default initialization (to 0) of variables with ``enum`` type where
the enum has no enumerator with value of 0.

- New :doc:`bugprone-derived-method-shadowing-base-method
<clang-tidy/checks/bugprone/derived-method-shadowing-base-method>` check.

Finds derived class methods that shadow a (non-virtual) base class method.

- New :doc:`cppcoreguidelines-pro-bounds-avoid-unchecked-container-access
<clang-tidy/checks/cppcoreguidelines/pro-bounds-avoid-unchecked-container-access>`
check.
Expand Down Expand Up @@ -367,7 +367,7 @@ Changes in existing checks

- Improved :doc:`misc-const-correctness
<clang-tidy/checks/misc/const-correctness>` check to avoid false
positives when pointers is transferred to non-const references
positives when pointers is transferred to non-const references
and avoid false positives of function pointer and fix false
positives on return of non-const pointer.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Options

.. option:: ExcludeClasses

Semicolon-delimited list of class names for overwriting the default
exclusion list. The default is:
Semicolon-separated list of regular expressions matching class names that
overwrites the default exclusion list. The default is:
`::std::map;::std::unordered_map;::std::flat_map`.

.. option:: FixMode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ Options

.. option:: StrFormatLikeFunctions

A semicolon-separated list of (fully qualified) function names to
replace, with the requirement that the first parameter contains the
printf-style format string and the arguments to be formatted follow
immediately afterwards. Qualified member function names are supported,
but the replacement function name must be unqualified. The default value
for this option is `absl::StrFormat`.
A semicolon-separated list of regular expressions matching the
(fully qualified) names of functions to replace, with the requirement that
the first parameter contains the printf-style format string and the
arguments to be formatted follow immediately afterwards. Qualified member
function names are supported, but the replacement function name must be
unqualified. The default value is `absl::StrFormat`.

.. option:: ReplacementFormatFunction

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,25 +122,27 @@ Options

.. option:: PrintfLikeFunctions

A semicolon-separated list of (fully qualified) function names to
replace, with the requirement that the first parameter contains the
printf-style format string and the arguments to be formatted follow
immediately afterwards. Qualified member function names are supported,
but the replacement function name must be unqualified. If neither this
option nor `FprintfLikeFunctions` are set then the default value for
this option is `printf; absl::PrintF`, otherwise it is empty.
A semicolon-separated list of regular expressions matching the
(fully qualified) names of functions to replace, with the requirement
that the first parameter contains the printf-style format string and the
arguments to be formatted follow immediately afterwards. Qualified member
function names are supported, but the replacement function name must be
unqualified. If neither this option nor `FprintfLikeFunctions` are set then
the default value is `printf; absl::PrintF`, otherwise it is the empty
string.


.. option:: FprintfLikeFunctions

A semicolon-separated list of (fully qualified) function names to
replace, with the requirement that the first parameter is retained, the
second parameter contains the printf-style format string and the
arguments to be formatted follow immediately afterwards. Qualified
member function names are supported, but the replacement function name
must be unqualified. If neither this option nor `PrintfLikeFunctions`
are set then the default value for this option is `fprintf;
absl::FPrintF`, otherwise it is empty.
A semicolon-separated list of regular expressions matching the
(fully qualified) names of functions to replace, with the requirement
that the first parameter is retained, the second parameter contains the
printf-style format string and the arguments to be formatted follow
immediately afterwards. Qualified member function names are supported,
but the replacement function name must be unqualified. If neither this
option nor `PrintfLikeFunctions` are set then the default value is
`fprintf;absl::FPrintF`, otherwise it is the empty string.


.. option:: ReplacementPrintFunction

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Options

.. option:: ExcludedComparisonTypes

A semicolon-separated list of class names for which the check will ignore
comparisons of objects with default-constructed objects of the same type.
If a class is listed here, the check will not suggest using ``empty()``
instead of such comparisons for objects of that class.
Default value is: `::std::array`.
A semicolon-separated list of regular expressions matching class names for
which the check will ignore comparisons of objects with default-constructed
objects of the same type. If a class is listed here, the check will not
suggest using ``empty()`` instead of such comparisons for objects of that
class. Default value is: `::std::array`.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ Options

.. option:: StringParameterFunctions

A semicolon-separated list of (fully qualified) function/method/operator
names, with the requirement that any parameter currently accepting a
``const char*`` input should also be able to accept ``std::string``
inputs, or proper overload candidates that can do so should exist. This
can be used to configure functions such as ``fmt::format``,
``spdlog::logger::info``, or wrappers around these and similar
functions. The default value is the empty string.
A semicolon-separated list of regular expressions matching the
(fully qualified) names of function/method/operator, with the requirement
that any parameter currently accepting a ``const char*`` input should also
be able to accept ``std::string`` inputs, or proper overload candidates that
can do so should exist. This can be used to configure functions such as
``fmt::format``, ``spdlog::logger::info``, or wrappers around these and
similar functions. The default value is the empty string.
Loading