Skip to content

Commit 245d7b9

Browse files
committed
fixed documentation issues
1 parent c7615e0 commit 245d7b9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang-tools-extra/docs/clang-tidy/checks/bugprone/invalid-enum-default-initialization.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ In C++ a default initialization is performed if a variable is initialized with
1010
initializer list or in other implicit ways, and no value is specified at the
1111
initialization. In such cases the value 0 is used for the initialization.
1212
This also applies to enumerations even if it does not have an enumerator with
13-
value 0. In this way a variable with the enum type may contain initially an
13+
value 0. In this way a variable with the ``enum`` type may contain initially an
1414
invalid value (if the program expects that it contains only the listed
1515
enumerator values).
1616

17-
The checker emits a warning only if an enum variable is default-initialized
18-
(contrary to not initialized) and the enum type does not have an enumerator with
19-
value of 0. The enum type can be scoped or non-scoped enum. Unions are not
20-
handled by the check (if it contains a member of enum type).
17+
The check emits a warning only if an ``enum`` variable is default-initialized
18+
(contrary to not initialized) and the ``enum`` does not have an enumerator with
19+
value of 0. The type can be a scoped or non-scoped ``enum``. Unions are not
20+
handled by the check (if it contains a member of enumeration type).
2121

2222
.. code-block:: c++
2323

0 commit comments

Comments
 (0)