@@ -39,18 +39,34 @@ struct AlignFlags {
39
39
}
40
40
};
41
41
// / 'auto'
42
- constexpr static const AlignFlags AlignFlags_AUTO = AlignFlags{ /* .bits = */ (uint8_t )0 };
42
+ constexpr static const AlignFlags AlignFlags_AUTO = AlignFlags{
43
+ /* .bits = */ (uint8_t )0
44
+ };
43
45
// / 'normal'
44
- constexpr static const AlignFlags AlignFlags_NORMAL = AlignFlags{ /* .bits = */ (uint8_t )1 };
46
+ constexpr static const AlignFlags AlignFlags_NORMAL = AlignFlags{
47
+ /* .bits = */ (uint8_t )1
48
+ };
45
49
// / 'start'
46
- constexpr static const AlignFlags AlignFlags_START = AlignFlags{ /* .bits = */ (uint8_t )(1 << 1 ) };
50
+ constexpr static const AlignFlags AlignFlags_START = AlignFlags{
51
+ /* .bits = */ (uint8_t )(1 << 1 )
52
+ };
47
53
// / 'end'
48
- constexpr static const AlignFlags AlignFlags_END = AlignFlags{ /* .bits = */ (uint8_t )(1 << 2 ) };
49
- constexpr static const AlignFlags AlignFlags_ALIAS = AlignFlags{ /* .bits = */ (uint8_t )(AlignFlags_END).bits };
54
+ constexpr static const AlignFlags AlignFlags_END = AlignFlags{
55
+ /* .bits = */ (uint8_t )(1 << 2 )
56
+ };
57
+ constexpr static const AlignFlags AlignFlags_ALIAS = AlignFlags{
58
+ /* .bits = */ (uint8_t )(AlignFlags_END).bits
59
+ };
50
60
// / 'flex-start'
51
- constexpr static const AlignFlags AlignFlags_FLEX_START = AlignFlags{ /* .bits = */ (uint8_t )(1 << 3 ) };
52
- constexpr static const AlignFlags AlignFlags_MIXED = AlignFlags{ /* .bits = */ (uint8_t )(((1 << 4 ) | (AlignFlags_FLEX_START).bits ) | (AlignFlags_END).bits ) };
53
- constexpr static const AlignFlags AlignFlags_MIXED_SELF = AlignFlags{ /* .bits = */ (uint8_t )(((1 << 5 ) | (AlignFlags_FLEX_START).bits ) | (AlignFlags_END).bits ) };
61
+ constexpr static const AlignFlags AlignFlags_FLEX_START = AlignFlags{
62
+ /* .bits = */ (uint8_t )(1 << 3 )
63
+ };
64
+ constexpr static const AlignFlags AlignFlags_MIXED = AlignFlags{
65
+ /* .bits = */ (uint8_t )(((1 << 4 ) | (AlignFlags_FLEX_START).bits ) | (AlignFlags_END).bits )
66
+ };
67
+ constexpr static const AlignFlags AlignFlags_MIXED_SELF = AlignFlags{
68
+ /* .bits = */ (uint8_t )(((1 << 5 ) | (AlignFlags_FLEX_START).bits ) | (AlignFlags_END).bits )
69
+ };
54
70
55
71
struct DebugFlags {
56
72
uint32_t bits;
@@ -84,7 +100,9 @@ struct DebugFlags {
84
100
}
85
101
};
86
102
// / Flag with the topmost bit set of the u32
87
- constexpr static const DebugFlags DebugFlags_BIGGEST_ALLOWED = DebugFlags{ /* .bits = */ (uint32_t )(1 << 31 ) };
103
+ constexpr static const DebugFlags DebugFlags_BIGGEST_ALLOWED = DebugFlags{
104
+ /* .bits = */ (uint32_t )(1 << 31 )
105
+ };
88
106
89
107
struct LargeFlags {
90
108
uint64_t bits;
@@ -118,8 +136,12 @@ struct LargeFlags {
118
136
}
119
137
};
120
138
// / Flag with a very large shift that usually would be narrowed.
121
- constexpr static const LargeFlags LargeFlags_LARGE_SHIFT = LargeFlags{ /* .bits = */ (uint64_t )(1ull << 44 ) };
122
- constexpr static const LargeFlags LargeFlags_INVERTED = LargeFlags{ /* .bits = */ (uint64_t )~(LargeFlags_LARGE_SHIFT).bits };
139
+ constexpr static const LargeFlags LargeFlags_LARGE_SHIFT = LargeFlags{
140
+ /* .bits = */ (uint64_t )(1ull << 44 )
141
+ };
142
+ constexpr static const LargeFlags LargeFlags_INVERTED = LargeFlags{
143
+ /* .bits = */ (uint64_t )~(LargeFlags_LARGE_SHIFT).bits
144
+ };
123
145
124
146
struct OutOfLine {
125
147
uint32_t _0;
@@ -152,9 +174,15 @@ struct OutOfLine {
152
174
return *this ;
153
175
}
154
176
};
155
- constexpr static const OutOfLine OutOfLine_A = OutOfLine{ /* ._0 = */ (uint32_t )1 };
156
- constexpr static const OutOfLine OutOfLine_B = OutOfLine{ /* ._0 = */ (uint32_t )2 };
157
- constexpr static const OutOfLine OutOfLine_AB = OutOfLine{ /* ._0 = */ (uint32_t )((OutOfLine_A)._0 | (OutOfLine_B)._0 ) };
177
+ constexpr static const OutOfLine OutOfLine_A = OutOfLine{
178
+ /* ._0 = */ (uint32_t )1
179
+ };
180
+ constexpr static const OutOfLine OutOfLine_B = OutOfLine{
181
+ /* ._0 = */ (uint32_t )2
182
+ };
183
+ constexpr static const OutOfLine OutOfLine_AB = OutOfLine{
184
+ /* ._0 = */ (uint32_t )((OutOfLine_A)._0 | (OutOfLine_B)._0 )
185
+ };
158
186
159
187
extern " C" {
160
188
0 commit comments