@@ -73,60 +73,38 @@ private class IntegralUnderlyingUserType extends UserType {
73
73
/**
74
74
* A C/C++ fixed-width numeric type, such as `int8_t`.
75
75
*/
76
- class FixedWidthIntegralType extends UserType {
77
- FixedWidthIntegralType ( ) {
78
- this instanceof Int8_t or
79
- this instanceof Int16_t or
80
- this instanceof Int32_t or
81
- this instanceof Int64_t or
82
- this instanceof UInt8_t or
83
- this instanceof UInt16_t or
84
- this instanceof UInt32_t or
85
- this instanceof UInt64_t
86
- }
76
+ abstract private class TFixedWidthIntegralType extends IntegralUnderlyingUserType { }
77
+
78
+ class FixedWidthIntegralType extends TFixedWidthIntegralType {
79
+ FixedWidthIntegralType ( ) { this instanceof TFixedWidthIntegralType }
87
80
}
88
81
89
82
/**
90
83
* A C/C++ minimum-width numeric type, such as `int_least8_t`.
91
84
*/
92
- class MinimumWidthIntegralType extends UserType {
93
- MinimumWidthIntegralType ( ) {
94
- this instanceof Int_least8_t or
95
- this instanceof Int_least16_t or
96
- this instanceof Int_least32_t or
97
- this instanceof Int_least64_t or
98
- this instanceof UInt_least8_t or
99
- this instanceof UInt_least16_t or
100
- this instanceof UInt_least32_t or
101
- this instanceof UInt_least64_t
102
- }
85
+ abstract private class TMinimumWidthIntegralType extends IntegralUnderlyingUserType { }
86
+
87
+ class MinimumWidthIntegralType extends TMinimumWidthIntegralType {
88
+ MinimumWidthIntegralType ( ) { this instanceof TMinimumWidthIntegralType }
103
89
}
104
90
105
91
/**
106
92
* A C/C++ minimum-width numeric type, representing the fastest integer type with a
107
93
* width of at least `N` such as `int_fast8_t`.
108
94
*/
109
- class FastestMinimumWidthIntegralType extends UserType {
110
- FastestMinimumWidthIntegralType ( ) {
111
- this instanceof Int_fast8_t or
112
- this instanceof Int_fast16_t or
113
- this instanceof Int_fast32_t or
114
- this instanceof Int_fast64_t or
115
- this instanceof UInt_fast8_t or
116
- this instanceof UInt_fast16_t or
117
- this instanceof UInt_fast32_t or
118
- this instanceof UInt_fast64_t
119
- }
95
+ abstract private class TFastestMinimumWidthIntegralType extends IntegralUnderlyingUserType { }
96
+
97
+ class FastestMinimumWidthIntegralType extends TFastestMinimumWidthIntegralType {
98
+ FastestMinimumWidthIntegralType ( ) { this instanceof TFastestMinimumWidthIntegralType }
120
99
}
121
100
122
101
/**
123
102
* A C/C++ maximum-width numeric type, either `intmax_t` or `uintmax_t`.
124
103
*/
125
- class MaximumWidthIntegralType extends UserType {
126
- MaximumWidthIntegralType ( ) {
127
- this instanceof Intmax_t or
128
- this instanceof Uintmax_t
129
- }
104
+ abstract private class TMaximumWidthIntegralType extends IntegralUnderlyingUserType { }
105
+
106
+ class MaximumWidthIntegralType extends TMaximumWidthIntegralType {
107
+ MaximumWidthIntegralType ( ) { this instanceof TMaximumWidthIntegralType }
130
108
}
131
109
132
110
/**
@@ -139,7 +117,7 @@ class FixedWidthEnumType extends UserType {
139
117
/**
140
118
* The C/C++ `int8_t` type.
141
119
*/
142
- class Int8_t extends IntegralUnderlyingUserType {
120
+ class Int8_t extends TFixedWidthIntegralType {
143
121
Int8_t ( ) { this .hasGlobalOrStdName ( "int8_t" ) }
144
122
145
123
override string getAPrimaryQlClass ( ) { result = "Int8_t" }
@@ -148,7 +126,7 @@ class Int8_t extends IntegralUnderlyingUserType {
148
126
/**
149
127
* The C/C++ `int16_t` type.
150
128
*/
151
- class Int16_t extends IntegralUnderlyingUserType {
129
+ class Int16_t extends TFixedWidthIntegralType {
152
130
Int16_t ( ) { this .hasGlobalOrStdName ( "int16_t" ) }
153
131
154
132
override string getAPrimaryQlClass ( ) { result = "Int16_t" }
@@ -157,7 +135,7 @@ class Int16_t extends IntegralUnderlyingUserType {
157
135
/**
158
136
* The C/C++ `int32_t` type.
159
137
*/
160
- class Int32_t extends IntegralUnderlyingUserType {
138
+ class Int32_t extends TFixedWidthIntegralType {
161
139
Int32_t ( ) { this .hasGlobalOrStdName ( "int32_t" ) }
162
140
163
141
override string getAPrimaryQlClass ( ) { result = "Int32_t" }
@@ -166,7 +144,7 @@ class Int32_t extends IntegralUnderlyingUserType {
166
144
/**
167
145
* The C/C++ `int64_t` type.
168
146
*/
169
- class Int64_t extends IntegralUnderlyingUserType {
147
+ class Int64_t extends TFixedWidthIntegralType {
170
148
Int64_t ( ) { this .hasGlobalOrStdName ( "int64_t" ) }
171
149
172
150
override string getAPrimaryQlClass ( ) { result = "Int64_t" }
@@ -175,7 +153,7 @@ class Int64_t extends IntegralUnderlyingUserType {
175
153
/**
176
154
* The C/C++ `uint8_t` type.
177
155
*/
178
- class UInt8_t extends IntegralUnderlyingUserType {
156
+ class UInt8_t extends TFixedWidthIntegralType {
179
157
UInt8_t ( ) { this .hasGlobalOrStdName ( "uint8_t" ) }
180
158
181
159
override string getAPrimaryQlClass ( ) { result = "UInt8_t" }
@@ -184,7 +162,7 @@ class UInt8_t extends IntegralUnderlyingUserType {
184
162
/**
185
163
* The C/C++ `uint16_t` type.
186
164
*/
187
- class UInt16_t extends IntegralUnderlyingUserType {
165
+ class UInt16_t extends TFixedWidthIntegralType {
188
166
UInt16_t ( ) { this .hasGlobalOrStdName ( "uint16_t" ) }
189
167
190
168
override string getAPrimaryQlClass ( ) { result = "UInt16_t" }
@@ -193,7 +171,7 @@ class UInt16_t extends IntegralUnderlyingUserType {
193
171
/**
194
172
* The C/C++ `uint32_t` type.
195
173
*/
196
- class UInt32_t extends IntegralUnderlyingUserType {
174
+ class UInt32_t extends TFixedWidthIntegralType {
197
175
UInt32_t ( ) { this .hasGlobalOrStdName ( "uint32_t" ) }
198
176
199
177
override string getAPrimaryQlClass ( ) { result = "UInt32_t" }
@@ -202,7 +180,7 @@ class UInt32_t extends IntegralUnderlyingUserType {
202
180
/**
203
181
* The C/C++ `uint64_t` type.
204
182
*/
205
- class UInt64_t extends IntegralUnderlyingUserType {
183
+ class UInt64_t extends TFixedWidthIntegralType {
206
184
UInt64_t ( ) { this .hasGlobalOrStdName ( "uint64_t" ) }
207
185
208
186
override string getAPrimaryQlClass ( ) { result = "UInt64_t" }
@@ -211,7 +189,7 @@ class UInt64_t extends IntegralUnderlyingUserType {
211
189
/**
212
190
* The C/C++ `int_least8_t` type.
213
191
*/
214
- class Int_least8_t extends IntegralUnderlyingUserType {
192
+ class Int_least8_t extends TMinimumWidthIntegralType {
215
193
Int_least8_t ( ) { this .hasGlobalOrStdName ( "int_least8_t" ) }
216
194
217
195
override string getAPrimaryQlClass ( ) { result = "Int_least8_t" }
@@ -220,7 +198,7 @@ class Int_least8_t extends IntegralUnderlyingUserType {
220
198
/**
221
199
* The C/C++ `int_least16_t` type.
222
200
*/
223
- class Int_least16_t extends IntegralUnderlyingUserType {
201
+ class Int_least16_t extends TMinimumWidthIntegralType {
224
202
Int_least16_t ( ) { this .hasGlobalOrStdName ( "int_least16_t" ) }
225
203
226
204
override string getAPrimaryQlClass ( ) { result = "Int_least16_t" }
@@ -229,7 +207,7 @@ class Int_least16_t extends IntegralUnderlyingUserType {
229
207
/**
230
208
* The C/C++ `int_least32_t` type.
231
209
*/
232
- class Int_least32_t extends IntegralUnderlyingUserType {
210
+ class Int_least32_t extends TMinimumWidthIntegralType {
233
211
Int_least32_t ( ) { this .hasGlobalOrStdName ( "int_least32_t" ) }
234
212
235
213
override string getAPrimaryQlClass ( ) { result = "Int_least32_t" }
@@ -238,7 +216,7 @@ class Int_least32_t extends IntegralUnderlyingUserType {
238
216
/**
239
217
* The C/C++ `int_least64_t` type.
240
218
*/
241
- class Int_least64_t extends IntegralUnderlyingUserType {
219
+ class Int_least64_t extends TMinimumWidthIntegralType {
242
220
Int_least64_t ( ) { this .hasGlobalOrStdName ( "int_least64_t" ) }
243
221
244
222
override string getAPrimaryQlClass ( ) { result = "Int_least64_t" }
@@ -247,7 +225,7 @@ class Int_least64_t extends IntegralUnderlyingUserType {
247
225
/**
248
226
* The C/C++ `uint_least8_t` type.
249
227
*/
250
- class UInt_least8_t extends IntegralUnderlyingUserType {
228
+ class UInt_least8_t extends TMinimumWidthIntegralType {
251
229
UInt_least8_t ( ) { this .hasGlobalOrStdName ( "uint_least8_t" ) }
252
230
253
231
override string getAPrimaryQlClass ( ) { result = "UInt_least8_t" }
@@ -256,7 +234,7 @@ class UInt_least8_t extends IntegralUnderlyingUserType {
256
234
/**
257
235
* The C/C++ `uint_least16_t` type.
258
236
*/
259
- class UInt_least16_t extends IntegralUnderlyingUserType {
237
+ class UInt_least16_t extends TMinimumWidthIntegralType {
260
238
UInt_least16_t ( ) { this .hasGlobalOrStdName ( "uint_least16_t" ) }
261
239
262
240
override string getAPrimaryQlClass ( ) { result = "UInt_least16_t" }
@@ -265,7 +243,7 @@ class UInt_least16_t extends IntegralUnderlyingUserType {
265
243
/**
266
244
* The C/C++ `uint_least32_t` type.
267
245
*/
268
- class UInt_least32_t extends IntegralUnderlyingUserType {
246
+ class UInt_least32_t extends TMinimumWidthIntegralType {
269
247
UInt_least32_t ( ) { this .hasGlobalOrStdName ( "uint_least32_t" ) }
270
248
271
249
override string getAPrimaryQlClass ( ) { result = "UInt_least32_t" }
@@ -274,7 +252,7 @@ class UInt_least32_t extends IntegralUnderlyingUserType {
274
252
/**
275
253
* The C/C++ `uint_least64_t` type.
276
254
*/
277
- class UInt_least64_t extends IntegralUnderlyingUserType {
255
+ class UInt_least64_t extends TMinimumWidthIntegralType {
278
256
UInt_least64_t ( ) { this .hasGlobalOrStdName ( "uint_least64_t" ) }
279
257
280
258
override string getAPrimaryQlClass ( ) { result = "UInt_least64_t" }
@@ -283,7 +261,7 @@ class UInt_least64_t extends IntegralUnderlyingUserType {
283
261
/**
284
262
* The C/C++ `int_fast8_t` type.
285
263
*/
286
- class Int_fast8_t extends IntegralUnderlyingUserType {
264
+ class Int_fast8_t extends TFastestMinimumWidthIntegralType {
287
265
Int_fast8_t ( ) { this .hasGlobalOrStdName ( "int_fast8_t" ) }
288
266
289
267
override string getAPrimaryQlClass ( ) { result = "Int_fast8_t" }
@@ -292,7 +270,7 @@ class Int_fast8_t extends IntegralUnderlyingUserType {
292
270
/**
293
271
* The C/C++ `int_fast16_t` type.
294
272
*/
295
- class Int_fast16_t extends IntegralUnderlyingUserType {
273
+ class Int_fast16_t extends TFastestMinimumWidthIntegralType {
296
274
Int_fast16_t ( ) { this .hasGlobalOrStdName ( "int_fast16_t" ) }
297
275
298
276
override string getAPrimaryQlClass ( ) { result = "Int_fast16_t" }
@@ -301,7 +279,7 @@ class Int_fast16_t extends IntegralUnderlyingUserType {
301
279
/**
302
280
* The C/C++ `int_fast32_t` type.
303
281
*/
304
- class Int_fast32_t extends IntegralUnderlyingUserType {
282
+ class Int_fast32_t extends TFastestMinimumWidthIntegralType {
305
283
Int_fast32_t ( ) { this .hasGlobalOrStdName ( "int_fast32_t" ) }
306
284
307
285
override string getAPrimaryQlClass ( ) { result = "Int_fast32_t" }
@@ -310,7 +288,7 @@ class Int_fast32_t extends IntegralUnderlyingUserType {
310
288
/**
311
289
* The C/C++ `int_fast64_t` type.
312
290
*/
313
- class Int_fast64_t extends IntegralUnderlyingUserType {
291
+ class Int_fast64_t extends TFastestMinimumWidthIntegralType {
314
292
Int_fast64_t ( ) { this .hasGlobalOrStdName ( "int_fast64_t" ) }
315
293
316
294
override string getAPrimaryQlClass ( ) { result = "Int_fast64_t" }
@@ -319,7 +297,7 @@ class Int_fast64_t extends IntegralUnderlyingUserType {
319
297
/**
320
298
* The C/C++ `uint_fast8_t` type.
321
299
*/
322
- class UInt_fast8_t extends IntegralUnderlyingUserType {
300
+ class UInt_fast8_t extends TFastestMinimumWidthIntegralType {
323
301
UInt_fast8_t ( ) { this .hasGlobalOrStdName ( "uint_fast8_t" ) }
324
302
325
303
override string getAPrimaryQlClass ( ) { result = "UInt_fast8_t" }
@@ -328,7 +306,7 @@ class UInt_fast8_t extends IntegralUnderlyingUserType {
328
306
/**
329
307
* The C/C++ `uint_fast16_t` type.
330
308
*/
331
- class UInt_fast16_t extends IntegralUnderlyingUserType {
309
+ class UInt_fast16_t extends TFastestMinimumWidthIntegralType {
332
310
UInt_fast16_t ( ) { this .hasGlobalOrStdName ( "uint_fast16_t" ) }
333
311
334
312
override string getAPrimaryQlClass ( ) { result = "UInt_fast16_t" }
@@ -337,7 +315,7 @@ class UInt_fast16_t extends IntegralUnderlyingUserType {
337
315
/**
338
316
* The C/C++ `uint_fast32_t` type.
339
317
*/
340
- class UInt_fast32_t extends IntegralUnderlyingUserType {
318
+ class UInt_fast32_t extends TFastestMinimumWidthIntegralType {
341
319
UInt_fast32_t ( ) { this .hasGlobalOrStdName ( "uint_fast32_t" ) }
342
320
343
321
override string getAPrimaryQlClass ( ) { result = "UInt_fast32_t" }
@@ -346,7 +324,7 @@ class UInt_fast32_t extends IntegralUnderlyingUserType {
346
324
/**
347
325
* The C/C++ `uint_fast64_t` type.
348
326
*/
349
- class UInt_fast64_t extends IntegralUnderlyingUserType {
327
+ class UInt_fast64_t extends TFastestMinimumWidthIntegralType {
350
328
UInt_fast64_t ( ) { this .hasGlobalOrStdName ( "uint_fast64_t" ) }
351
329
352
330
override string getAPrimaryQlClass ( ) { result = "UInt_fast64_t" }
@@ -355,7 +333,7 @@ class UInt_fast64_t extends IntegralUnderlyingUserType {
355
333
/**
356
334
* The C/C++ `intmax_t` type.
357
335
*/
358
- class Intmax_t extends IntegralUnderlyingUserType {
336
+ class Intmax_t extends TMaximumWidthIntegralType {
359
337
Intmax_t ( ) { this .hasGlobalOrStdName ( "intmax_t" ) }
360
338
361
339
override string getAPrimaryQlClass ( ) { result = "Intmax_t" }
@@ -364,7 +342,7 @@ class Intmax_t extends IntegralUnderlyingUserType {
364
342
/**
365
343
* The C/C++ `uintmax_t` type.
366
344
*/
367
- class Uintmax_t extends IntegralUnderlyingUserType {
345
+ class Uintmax_t extends TMaximumWidthIntegralType {
368
346
Uintmax_t ( ) { this .hasGlobalOrStdName ( "uintmax_t" ) }
369
347
370
348
override string getAPrimaryQlClass ( ) { result = "Uintmax_t" }
0 commit comments