1 | // RUN: %check_clang_tidy %s readability-enum-initial-value %t |
---|---|
2 | |
3 | enum class EError { |
4 | // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: inital values in enum 'EError' are not consistent |
5 | EError_a = 1, |
6 | EError_b, |
7 | // CHECK-FIXES: EError_b = 2, |
8 | EError_c = 3, |
9 | }; |
10 | |
11 | enum class ENone { |
12 | ENone_a, |
13 | ENone_b, |
14 | EENone_c, |
15 | }; |
16 | |
17 | enum class EFirst { |
18 | EFirst_a = 1, |
19 | EFirst_b, |
20 | EFirst_c, |
21 | }; |
22 | |
23 | enum class EAll { |
24 | EAll_a = 1, |
25 | EAll_b = 2, |
26 | EAll_c = 3, |
27 | }; |
28 |