Skip to content

Commit 15412d7

Browse files
authored
[clang-tidy] Refactor: remove typos in 'AllowedTypes' option in various checks (#122957)
1 parent 0d4efa2 commit 15412d7

File tree

4 files changed

+22
-21
lines changed

4 files changed

+22
-21
lines changed

clang-tools-extra/docs/clang-tidy/checks/bugprone/assert-side-effect.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Options
2626

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

clang-tools-extra/docs/clang-tidy/checks/performance/for-range-copy.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ Options
2323

2424
.. option:: WarnOnAllAutoCopies
2525

26-
When `true`, warns on any use of `auto` as the type of the range-based for
26+
When `true`, warns on any use of ``auto`` as the type of the range-based for
2727
loop variable. Default is `false`.
2828

2929
.. option:: AllowedTypes
3030

3131
A semicolon-separated list of names of types allowed to be copied in each
32-
iteration. Regular expressions are accepted, e.g. `[Rr]ef(erence)?$` matches
33-
every type with suffix `Ref`, `ref`, `Reference` and `reference`. The default
34-
is empty. If a name in the list contains the sequence `::` it is matched
35-
against the qualified typename (i.e. `namespace::Type`, otherwise it is
36-
matched against only the type name (i.e. `Type`).
32+
iteration. Regular expressions are accepted, e.g. ``[Rr]ef(erence)?$``
33+
matches every type with suffix ``Ref``, ``ref``, ``Reference`` and
34+
``reference``. The default is empty. If a name in the list contains the
35+
sequence `::`, it is matched against the qualified type name
36+
(i.e. ``namespace::Type``), otherwise it is matched against only the
37+
type name (i.e. ``Type``).

clang-tools-extra/docs/clang-tidy/checks/performance/unnecessary-copy-initialization.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ Options
4242
.. option:: AllowedTypes
4343

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

5151
.. option:: ExcludedContainerTypes
5252

clang-tools-extra/docs/clang-tidy/checks/performance/unnecessary-value-param.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ Options
6565
.. option:: AllowedTypes
6666

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

0 commit comments

Comments
 (0)