File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ In C++ a default initialization is performed if a variable is initialized with
1010initializer list or in other implicit ways, and no value is specified at the
1111initialization. In such cases the value 0 is used for the initialization.
1212This 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
1414invalid value (if the program expects that it contains only the listed
1515enumerator 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
You can’t perform that action at this time.
0 commit comments