File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1313
1414namespace clang ::tidy::bugprone {
1515
16- // / Detect default initialization (to 0) of variables with `enum` type where
16+ // / Detects default initialization (to 0) of variables with `enum` type where
1717// / the enum has no enumerator with value of 0.
1818// /
1919// / For the user-facing documentation see:
Original file line number Diff line number Diff line change @@ -113,6 +113,12 @@ New checks
113113 pointer and store it as class members without handle the copy and move
114114 constructors and the assignments.
115115
116+ - New :doc: `bugprone-invalid-enum-default-initialization
117+ <clang-tidy/checks/bugprone/invalid-enum-default-initialization>` check.
118+
119+ Detects default initialization (to 0) of variables with ``enum `` type where
120+ the enum has no enumerator with value of 0.
121+
116122- New :doc: `bugprone-unintended-char-ostream-output
117123 <clang-tidy/checks/bugprone/unintended-char-ostream-output>` check.
118124
@@ -125,12 +131,6 @@ New checks
125131 Finds potentially erroneous calls to ``reset `` method on smart pointers when
126132 the pointee type also has a ``reset `` method.
127133
128- - New :doc: `bugprone-invalid-enum-default-initialization
129- <clang-tidy/checks/bugprone/invalid-enum-default-initialization>` check.
130-
131- Detect default initialization (to 0) of variables with ``enum `` type where
132- the enum has no enumerator with value of 0.
133-
134134New check aliases
135135^^^^^^^^^^^^^^^^^
136136
Original file line number Diff line number Diff line change 33bugprone-invalid-enum-default-initialization
44============================================
55
6- Detect default initialization (to 0) of variables with ``enum `` type where
6+ Detects default initialization (to 0) of variables with ``enum `` type where
77the enum has no enumerator with value of 0.
88
99In C++ a default initialization is performed if a variable is initialized with
You can’t perform that action at this time.
0 commit comments