[clang-tidy] Refactor: remove typos in 'AllowedTypes' option in various checks (#122957)

This commit is contained in:
Baranov Victor
2025-01-29 20:30:56 +03:00
committed by GitHub
parent 0d4efa2725
commit 15412d735a
4 changed files with 22 additions and 21 deletions

View File

@@ -26,8 +26,8 @@ Options
A semicolon-separated list of the names of functions or methods to be
considered as not having side-effects. Regular expressions are accepted,
e.g. `[Rr]ef(erence)?$` matches every type with suffix `Ref`, `ref`,
`Reference` and `reference`. The default is empty. If a name in the list
contains the sequence `::` it is matched against the qualified typename
(i.e. `namespace::Type`, otherwise it is matched against only
the type name (i.e. `Type`).
e.g. ``[Rr]ef(erence)?$`` matches every type with suffix ``Ref``, ``ref``,
``Reference`` and ``reference``. The default is empty. If a name in the list
contains the sequence `::` it is matched against the qualified type name
(i.e. ``namespace::Type``), otherwise it is matched against only
the type name (i.e. ``Type``).

View File

@@ -23,14 +23,15 @@ Options
.. option:: WarnOnAllAutoCopies
When `true`, warns on any use of `auto` as the type of the range-based for
When `true`, warns on any use of ``auto`` as the type of the range-based for
loop variable. Default is `false`.
.. option:: AllowedTypes
A semicolon-separated list of names of types allowed to be copied in each
iteration. Regular expressions are accepted, e.g. `[Rr]ef(erence)?$` matches
every type with suffix `Ref`, `ref`, `Reference` and `reference`. The default
is empty. If a name in the list contains the sequence `::` it is matched
against the qualified typename (i.e. `namespace::Type`, otherwise it is
matched against only the type name (i.e. `Type`).
iteration. Regular expressions are accepted, e.g. ``[Rr]ef(erence)?$``
matches every type with suffix ``Ref``, ``ref``, ``Reference`` and
``reference``. The default is empty. If a name in the list contains the
sequence `::`, it is matched against the qualified type name
(i.e. ``namespace::Type``), otherwise it is matched against only the
type name (i.e. ``Type``).

View File

@@ -42,11 +42,11 @@ Options
.. option:: AllowedTypes
A semicolon-separated list of names of types allowed to be initialized by
copying. Regular expressions are accepted, e.g. `[Rr]ef(erence)?$` matches
every type with suffix `Ref`, `ref`, `Reference` and `reference`. The default
is empty. If a name in the list contains the sequence `::` it is matched
against the qualified typename (i.e. `namespace::Type`, otherwise it is
matched against only the type name (i.e. `Type`).
copying. Regular expressions are accepted, e.g. ``[Rr]ef(erence)?$`` matches
every type with suffix ``Ref``, ``ref``, ``Reference`` and ``reference``.
The default is empty. If a name in the list contains the sequence `::`, it
is matched against the qualified type name (i.e. ``namespace::Type``),
otherwise it is matched against only the type name (i.e. ``Type``).
.. option:: ExcludedContainerTypes

View File

@@ -65,8 +65,8 @@ Options
.. option:: AllowedTypes
A semicolon-separated list of names of types allowed to be passed by value.
Regular expressions are accepted, e.g. `[Rr]ef(erence)?$` matches every type
with suffix `Ref`, `ref`, `Reference` and `reference`. The default is
empty. If a name in the list contains the sequence `::` it is matched against
the qualified typename (i.e. `namespace::Type`, otherwise it is matched
against only the type name (i.e. `Type`).
Regular expressions are accepted, e.g. ``[Rr]ef(erence)?$`` matches every
type with suffix ``Ref``, ``ref``, ``Reference`` and ``reference``. The
default is empty. If a name in the list contains the sequence `::`, it is
matched against the qualified type name (i.e. ``namespace::Type``),
otherwise it is matched against only the type name (i.e. ``Type``).