| Issue |
107590
|
| Summary |
[clang-tidy] Duplicate readability-enum-initial-value for forward-declared enum
|
| Labels |
clang-tidy
|
| Assignees |
|
| Reporter |
chrchr-github
|
~~~c++
enum E : int;
enum E : int {
E0,
E1 = 1,
E2
};
~~~
~~~
<source>:1:1: warning: inital values in enum 'E' are not consistent, consider explicit initialization of all, none or only the first enumerator [readability-enum-initial-value]
1 | enum E : int;
| ^
2 |
3 | enum E : int {
4 | E0,
|
| = 0
5 | E1 = 1,
6 | E2
|
| = 2
<source>:3:1: warning: inital values in enum 'E' are not consistent, consider explicit initialization of all, none or only the first enumerator [readability-enum-initial-value]
3 | enum E : int {
| ^
4 | E0,
~~~
https://godbolt.org/z/shvvTffPz
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs