1
- typedef signed char int8_t ; // COMPLIANT: exception, typedefs are permitted
2
- typedef unsigned char uint8_t ; // COMPLIANT: exception, typedefs are permitted
1
+ typedef signed char int8_t ; // COMPLIANT: exception, typedefs are permitted
2
+ typedef unsigned char uint8_t ; // COMPLIANT: exception, typedefs are permitted
3
3
4
4
typedef signed short int16_t ; // COMPLIANT: exception, typedefs are permitted
5
5
typedef unsigned short uint16_t ; // COMPLIANT: exception, typedefs are permitted
6
6
7
- typedef signed int int32_t ; // COMPLIANT: exception, typedefs are permitted
8
- typedef unsigned int uint32_t ; // COMPLIANT: exception, typedefs are permitted
7
+ typedef signed int int32_t ; // COMPLIANT: exception, typedefs are permitted
8
+ typedef unsigned int uint32_t ; // COMPLIANT: exception, typedefs are permitted
9
9
10
- typedef signed long int64_t ; // COMPLIANT: exception, typedefs are permitted
11
- typedef unsigned long uint64_t ; // COMPLIANT: exception, typedefs are permitted
10
+ typedef signed long int64_t ; // COMPLIANT: exception, typedefs are permitted
11
+ typedef unsigned long uint64_t ; // COMPLIANT: exception, typedefs are permitted
12
12
13
13
typedef signed long long
14
- int4_t ; // NON_COMPLIANT: typedef does not have its indicated size
14
+ int4_t ; // NON_COMPLIANT: typedef does not have its indicated size
15
15
typedef unsigned long long
16
16
uint4_t ; // NON_COMPLIANT: typedef does not have its indicated size
17
17
@@ -28,38 +28,38 @@ typedef int
28
28
29
29
int // COMPLIANT: exception, main's return type can be plain int
30
30
main (int argc , // COMPLIANT: exception, argc's type can be plain int
31
- char * argv []) { // COMPLIANT: char is not a basic numeric type
31
+ char * argv []) { // COMPLIANT: char is not a basic numeric type
32
32
33
- char c1 = 1 ; // COMPLIANT: char is not a basic numeric type
34
- signed char c2 = 1 ; // NON_COMPLIANT: use typedef int8_t
35
- unsigned char c3 = 1 ; // NON_COMPLIANT: use typedef uint8_t
36
- int8_t c4 = 1 ; // COMPLIANT: typedef used instead
33
+ char c1 = 1 ; // COMPLIANT: char is not a basic numeric type
34
+ signed char c2 = 1 ; // NON_COMPLIANT: use typedef int8_t
35
+ unsigned char c3 = 1 ; // NON_COMPLIANT: use typedef uint8_t
36
+ int8_t c4 = 1 ; // COMPLIANT: typedef used instead
37
37
38
- short s1 = 1 ; // NON_COMPLIANT: short is a basic numeric type
39
- signed short s2 = 1 ; // NON_COMPLIANT: use typedef int16_t
40
- unsigned short s3 = 1 ; // NON_COMPLIANT: use typedef uint16_t
41
- int16_t s4 = 1 ; // COMPLIANT: typedef used instead
38
+ short s1 = 1 ; // NON_COMPLIANT: short is a basic numeric type
39
+ signed short s2 = 1 ; // NON_COMPLIANT: use typedef int16_t
40
+ unsigned short s3 = 1 ; // NON_COMPLIANT: use typedef uint16_t
41
+ int16_t s4 = 1 ; // COMPLIANT: typedef used instead
42
42
43
- int i1 = 1 ; // NON_COMPLIANT: int is a basic numeric type
44
- signed int i2 = 1 ; // NON_COMPLIANT: use typedef int32_t
45
- unsigned int i3 = 1 ; // NON_COMPLIANT: use typedef uint32_t
46
- int32_t i4 = 1 ; // COMPLIANT: typedef used instead
43
+ int i1 = 1 ; // NON_COMPLIANT: int is a basic numeric type
44
+ signed int i2 = 1 ; // NON_COMPLIANT: use typedef int32_t
45
+ unsigned int i3 = 1 ; // NON_COMPLIANT: use typedef uint32_t
46
+ int32_t i4 = 1 ; // COMPLIANT: typedef used instead
47
47
48
- long l1 = 1 ; // NON_COMPLIANT: int is a basic numeric type
49
- signed long l2 = 1 ; // NON_COMPLIANT: use typedef int64_t
50
- unsigned long l3 = 1 ; // NON_COMPLIANT: use typedef uint64_t
51
- int64_t l4 = 1 ; // COMPLIANT: typedef used instead
48
+ long l1 = 1 ; // NON_COMPLIANT: int is a basic numeric type
49
+ signed long l2 = 1 ; // NON_COMPLIANT: use typedef int64_t
50
+ unsigned long l3 = 1 ; // NON_COMPLIANT: use typedef uint64_t
51
+ int64_t l4 = 1 ; // COMPLIANT: typedef used instead
52
52
53
53
long long ll1 = 1 ; // NON_COMPLIANT: int is a basic numeric type
54
54
signed long long ll2 = 1 ; // NON_COMPLIANT: use typedef int64_t
55
55
unsigned long long ll3 = 1 ; // NON_COMPLIANT: use typedef uint64_t
56
56
int64_t ll4 = 1 ; // COMPLIANT: typedef used instead
57
57
58
58
float f1 = 1 ; // NON_COMPLIANT: float is a basic numeric type, use a typedef
59
- float32_t f2 = 1 ; // COMPLIANT: typedef used instead
59
+ float32_t f2 = 1 ; // COMPLIANT: typedef used instead
60
60
61
- double d1 = 1 ; // NON_COMPLIANT: int is a basic numeric type
62
- float64_t d2 = 1 ; // COMPLIANT: typedef used instead
61
+ double d1 = 1 ; // NON_COMPLIANT: int is a basic numeric type
62
+ float64_t d2 = 1 ; // COMPLIANT: typedef used instead
63
63
64
64
long double ld1 = 1 ; // NON_COMPLIANT: int is a basic numeric type
65
65
float128_t ld2 = 1 ; // COMPLIANT: typedef used instead
0 commit comments