|
2 | 2 | #include <stdint.h> |
3 | 3 |
|
4 | 4 | void Invalid() { |
5 | | - // CHECK-MESSAGES: :[[@LINE+2]]:14: warning: The constant -128 is being utilized. Consider using std::numeric_limits<int8_t>::min() instead [readability-use-numeric-limits] |
| 5 | + // CHECK-MESSAGES: :[[@LINE+2]]:14: warning: the constant '-128' is being utilized; consider using 'std::numeric_limits<int8_t>::min()' instead [readability-use-numeric-limits] |
6 | 6 | // CHECK-FIXES: int8_t a = std::numeric_limits<int8_t>::min(); |
7 | 7 | int8_t a = -128; |
8 | 8 |
|
9 | | - // CHECK-MESSAGES: :[[@LINE+2]]:14: warning: The constant 127 is being utilized. Consider using std::numeric_limits<int8_t>::max() instead [readability-use-numeric-limits] |
| 9 | + // CHECK-MESSAGES: :[[@LINE+2]]:14: warning: the constant '127' is being utilized; consider using 'std::numeric_limits<int8_t>::max()' instead [readability-use-numeric-limits] |
10 | 10 | // CHECK-FIXES: int8_t b = std::numeric_limits<int8_t>::max(); |
11 | 11 | int8_t b = +127; |
12 | 12 |
|
13 | | - // CHECK-MESSAGES: :[[@LINE+2]]:14: warning: The constant 127 is being utilized. Consider using std::numeric_limits<int8_t>::max() instead [readability-use-numeric-limits] |
| 13 | + // CHECK-MESSAGES: :[[@LINE+2]]:14: warning: the constant '127' is being utilized; consider using 'std::numeric_limits<int8_t>::max()' instead [readability-use-numeric-limits] |
14 | 14 | // CHECK-FIXES: int8_t c = std::numeric_limits<int8_t>::max(); |
15 | 15 | int8_t c = 127; |
16 | 16 |
|
17 | | - // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: The constant -32768 is being utilized. Consider using std::numeric_limits<int16_t>::min() instead [readability-use-numeric-limits] |
| 17 | + // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: the constant '-32768' is being utilized; consider using 'std::numeric_limits<int16_t>::min()' instead [readability-use-numeric-limits] |
18 | 18 | // CHECK-FIXES: int16_t d = std::numeric_limits<int16_t>::min(); |
19 | 19 | int16_t d = -32768; |
20 | 20 |
|
21 | | - // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: The constant 32767 is being utilized. Consider using std::numeric_limits<int16_t>::max() instead [readability-use-numeric-limits] |
| 21 | + // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: the constant '32767' is being utilized; consider using 'std::numeric_limits<int16_t>::max()' instead [readability-use-numeric-limits] |
22 | 22 | // CHECK-FIXES: int16_t e = std::numeric_limits<int16_t>::max(); |
23 | 23 | int16_t e = +32767; |
24 | 24 |
|
25 | | - // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: The constant 32767 is being utilized. Consider using std::numeric_limits<int16_t>::max() instead [readability-use-numeric-limits] |
| 25 | + // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: the constant '32767' is being utilized; consider using 'std::numeric_limits<int16_t>::max()' instead [readability-use-numeric-limits] |
26 | 26 | // CHECK-FIXES: int16_t f = std::numeric_limits<int16_t>::max(); |
27 | 27 | int16_t f = 32767; |
28 | 28 |
|
29 | | - // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: The constant -2147483648 is being utilized. Consider using std::numeric_limits<int32_t>::min() instead [readability-use-numeric-limits] |
| 29 | + // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: the constant '-2147483648' is being utilized; consider using 'std::numeric_limits<int32_t>::min()' instead [readability-use-numeric-limits] |
30 | 30 | // CHECK-FIXES: int32_t g = std::numeric_limits<int32_t>::min(); |
31 | 31 | int32_t g = -2147483648; |
32 | 32 |
|
33 | | - // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: The constant 2147483647 is being utilized. Consider using std::numeric_limits<int32_t>::max() instead [readability-use-numeric-limits] |
| 33 | + // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: the constant '2147483647' is being utilized; consider using 'std::numeric_limits<int32_t>::max()' instead [readability-use-numeric-limits] |
34 | 34 | // CHECK-FIXES: int32_t h = std::numeric_limits<int32_t>::max(); |
35 | 35 | int32_t h = +2147483647; |
36 | 36 |
|
37 | | - // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: The constant 2147483647 is being utilized. Consider using std::numeric_limits<int32_t>::max() instead [readability-use-numeric-limits] |
| 37 | + // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: the constant '2147483647' is being utilized; consider using 'std::numeric_limits<int32_t>::max()' instead [readability-use-numeric-limits] |
38 | 38 | // CHECK-FIXES: int32_t i = std::numeric_limits<int32_t>::max(); |
39 | 39 | int32_t i = 2147483647; |
40 | 40 |
|
41 | | - // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: The constant -9223372036854775808 is being utilized. Consider using std::numeric_limits<int64_t>::min() instead [readability-use-numeric-limits] |
| 41 | + // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: the constant '-9223372036854775808' is being utilized; consider using 'std::numeric_limits<int64_t>::min()' instead [readability-use-numeric-limits] |
42 | 42 | // CHECK-FIXES: int64_t j = std::numeric_limits<int64_t>::min(); |
43 | 43 | int64_t j = -9223372036854775808; |
44 | 44 |
|
45 | | - // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: The constant 9223372036854775807 is being utilized. Consider using std::numeric_limits<int64_t>::max() instead [readability-use-numeric-limits] |
| 45 | + // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: the constant '9223372036854775807' is being utilized; consider using 'std::numeric_limits<int64_t>::max()' instead [readability-use-numeric-limits] |
46 | 46 | // CHECK-FIXES: int64_t k = std::numeric_limits<int64_t>::max(); |
47 | 47 | int64_t k = +9223372036854775807; |
48 | 48 |
|
49 | | - // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: The constant 9223372036854775807 is being utilized. Consider using std::numeric_limits<int64_t>::max() instead [readability-use-numeric-limits] |
| 49 | + // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: the constant '9223372036854775807' is being utilized; consider using 'std::numeric_limits<int64_t>::max()' instead [readability-use-numeric-limits] |
50 | 50 | // CHECK-FIXES: int64_t l = std::numeric_limits<int64_t>::max(); |
51 | 51 | int64_t l = 9223372036854775807; |
52 | 52 |
|
53 | | - // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: The constant 255 is being utilized. Consider using std::numeric_limits<uint8_t>::max() instead [readability-use-numeric-limits] |
| 53 | + // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: the constant '255' is being utilized; consider using 'std::numeric_limits<uint8_t>::max()' instead [readability-use-numeric-limits] |
54 | 54 | // CHECK-FIXES: uint8_t m = std::numeric_limits<uint8_t>::max(); |
55 | 55 | uint8_t m = 255; |
56 | 56 |
|
57 | | - // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: The constant 255 is being utilized. Consider using std::numeric_limits<uint8_t>::max() instead [readability-use-numeric-limits] |
| 57 | + // CHECK-MESSAGES: :[[@LINE+2]]:15: warning: the constant '255' is being utilized; consider using 'std::numeric_limits<uint8_t>::max()' instead [readability-use-numeric-limits] |
58 | 58 | // CHECK-FIXES: uint8_t n = std::numeric_limits<uint8_t>::max(); |
59 | 59 | uint8_t n = +255; |
60 | 60 |
|
61 | | - // CHECK-MESSAGES: :[[@LINE+2]]:16: warning: The constant 65535 is being utilized. Consider using std::numeric_limits<uint16_t>::max() instead [readability-use-numeric-limits] |
| 61 | + // CHECK-MESSAGES: :[[@LINE+2]]:16: warning: the constant '65535' is being utilized; consider using 'std::numeric_limits<uint16_t>::max()' instead [readability-use-numeric-limits] |
62 | 62 | // CHECK-FIXES: uint16_t o = std::numeric_limits<uint16_t>::max(); |
63 | 63 | uint16_t o = 65535; |
64 | 64 |
|
65 | | - // CHECK-MESSAGES: :[[@LINE+2]]:16: warning: The constant 65535 is being utilized. Consider using std::numeric_limits<uint16_t>::max() instead [readability-use-numeric-limits] |
| 65 | + // CHECK-MESSAGES: :[[@LINE+2]]:16: warning: the constant '65535' is being utilized; consider using 'std::numeric_limits<uint16_t>::max()' instead [readability-use-numeric-limits] |
66 | 66 | // CHECK-FIXES: uint16_t p = std::numeric_limits<uint16_t>::max(); |
67 | 67 | uint16_t p = +65535; |
68 | 68 |
|
69 | | - // CHECK-MESSAGES: :[[@LINE+2]]:16: warning: The constant 4294967295 is being utilized. Consider using std::numeric_limits<uint32_t>::max() instead [readability-use-numeric-limits] |
| 69 | + // CHECK-MESSAGES: :[[@LINE+2]]:16: warning: the constant '4294967295' is being utilized; consider using 'std::numeric_limits<uint32_t>::max()' instead [readability-use-numeric-limits] |
70 | 70 | // CHECK-FIXES: uint32_t q = std::numeric_limits<uint32_t>::max(); |
71 | 71 | uint32_t q = 4294967295; |
72 | 72 |
|
73 | | - // CHECK-MESSAGES: :[[@LINE+2]]:16: warning: The constant 4294967295 is being utilized. Consider using std::numeric_limits<uint32_t>::max() instead [readability-use-numeric-limits] |
| 73 | + // CHECK-MESSAGES: :[[@LINE+2]]:16: warning: the constant '4294967295' is being utilized; consider using 'std::numeric_limits<uint32_t>::max()' instead [readability-use-numeric-limits] |
74 | 74 | // CHECK-FIXES: uint32_t r = std::numeric_limits<uint32_t>::max(); |
75 | 75 | uint32_t r = +4294967295; |
76 | 76 |
|
77 | | - // CHECK-MESSAGES: :[[@LINE+2]]:16: warning: The constant 18446744073709551615 is being utilized. Consider using std::numeric_limits<uint64_t>::max() instead [readability-use-numeric-limits] |
| 77 | + // CHECK-MESSAGES: :[[@LINE+2]]:16: warning: the constant '18446744073709551615' is being utilized; consider using 'std::numeric_limits<uint64_t>::max()' instead [readability-use-numeric-limits] |
78 | 78 | // CHECK-FIXES: uint64_t s = std::numeric_limits<uint64_t>::max(); |
79 | 79 | uint64_t s = 18446744073709551615; |
80 | 80 |
|
81 | | - // CHECK-MESSAGES: :[[@LINE+2]]:16: warning: The constant 18446744073709551615 is being utilized. Consider using std::numeric_limits<uint64_t>::max() instead [readability-use-numeric-limits] |
| 81 | + // CHECK-MESSAGES: :[[@LINE+2]]:16: warning: the constant '18446744073709551615' is being utilized; consider using 'std::numeric_limits<uint64_t>::max()' instead [readability-use-numeric-limits] |
82 | 82 | // CHECK-FIXES: uint64_t t = std::numeric_limits<uint64_t>::max(); |
83 | 83 | uint64_t t = +18446744073709551615; |
84 | 84 | } |
|
0 commit comments