Class: AdLint::Cc1::VoidType
- Inherits:
-
Type
- Object
- Type
- AdLint::Cc1::VoidType
show all
- Defined in:
- lib/adlint/cc1/type.rb
Instance Attribute Summary
Attributes inherited from Type
#declarations, #name, #type_table
Instance Method Summary
collapse
-
#_arithmetic_type_with_array(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_bitfield(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_char(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_double(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_enum(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_extended_big_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_float(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_function(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_long(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_long_double(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_long_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_long_long(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_long_long_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_pointer(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_short(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_short_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_signed(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_signed_char(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_signed_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_signed_long(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_signed_long_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_signed_long_long(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_signed_long_long_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_signed_short(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_signed_short_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_struct(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_undeclared(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_union(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_unresolved(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_unsigned(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_unsigned_char(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_unsigned_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_unsigned_long(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_unsigned_long_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_unsigned_long_long(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_unsigned_long_long_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_unsigned_short(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_unsigned_short_int(lhs_type, rhs_type = self) ⇒ Object
-
#_arithmetic_type_with_void(lhs_type, rhs_type = self) ⇒ Object
-
#arbitrary_value ⇒ Object
-
#argument_promoted_type ⇒ Object
-
#arithmetic_type_with(type) ⇒ Object
-
#array? ⇒ Boolean
-
#base_type ⇒ Object
-
#bit_alignment ⇒ Object
-
#bit_size ⇒ Object
-
#bitfield? ⇒ Boolean
-
#brief_image ⇒ Object
-
#coerce_array_value(val) ⇒ Object
-
#coerce_composite_value(val) ⇒ Object
-
#coerce_scalar_value(val) ⇒ Object
-
#coercible?(to_type) ⇒ Boolean
-
#compatible?(to_type) ⇒ Boolean
-
#const? ⇒ Boolean
-
#convertible?(to_type) ⇒ Boolean
-
#corresponding_signed_type ⇒ Object
-
#corresponding_unsigned_type ⇒ Object
-
#dup ⇒ Object
-
#enum? ⇒ Boolean
-
#enumerators ⇒ Object
-
#explicitly_signed? ⇒ Boolean
-
#floating? ⇒ Boolean
-
#function? ⇒ Boolean
-
#have_va_list? ⇒ Boolean
-
#id ⇒ Object
-
#image ⇒ Object
-
#impl_length ⇒ Object
-
#incomplete? ⇒ Boolean
-
#initialize(type_tbl) ⇒ VoidType
constructor
A new instance of VoidType.
-
#integer? ⇒ Boolean
-
#integer_conversion_rank ⇒ Object
-
#integer_promoted_type ⇒ Object
-
#length ⇒ Object
-
#location ⇒ Object
-
#max ⇒ Object
-
#member_named(name) ⇒ Object
-
#members ⇒ Object
-
#min ⇒ Object
-
#named? ⇒ Boolean
-
#nil_value ⇒ Object
-
#parameter_types ⇒ Object
-
#parameter_value ⇒ Object
-
#pointer? ⇒ Boolean
-
#qualified? ⇒ Boolean
-
#real_type ⇒ Object
-
#restrict? ⇒ Boolean
-
#return_type ⇒ Object
-
#return_value ⇒ Object
-
#same_as?(type) ⇒ Boolean
-
#scalar? ⇒ Boolean
-
#signed? ⇒ Boolean
-
#standard? ⇒ Boolean
-
#struct? ⇒ Boolean
-
#undeclared? ⇒ Boolean
-
#undefined_value ⇒ Object
-
#union? ⇒ Boolean
-
#unqualify ⇒ Object
-
#unresolved? ⇒ Boolean
-
#user? ⇒ Boolean
-
#void? ⇒ Boolean
-
#volatile? ⇒ Boolean
-
#zero_value ⇒ Object
Methods inherited from Type
#==, #aligned_bit_size, #aligned_byte_size, #byte_alignment, #byte_size, #composite?, #inspect, #length=, #more_cv_qualified?, #parameter?, #unsigned?
#char_alignment, #char_as_unsigned_char?, #char_size, #code_ptr_alignment, #code_ptr_size, #data_ptr_alignment, #data_ptr_size, #double_alignment, #double_size, #float_alignment, #float_size, #int_alignment, #int_size, #long_alignment, #long_double_alignment, #long_double_size, #long_long_alignment, #long_long_size, #long_size, #short_alignment, #short_size, #standard_types
#arithmetic, #logical_right_shift?
Methods included from Visitable
#accept
Constructor Details
#initialize(type_tbl) ⇒ VoidType
Returns a new instance of VoidType.
1913
1914
1915
|
# File 'lib/adlint/cc1/type.rb', line 1913
def initialize(type_tbl)
super(type_tbl, "void")
end
|
Instance Method Details
#_arithmetic_type_with_array(lhs_type, rhs_type = self) ⇒ Object
2385
2386
2387
2388
|
# File 'lib/adlint/cc1/type.rb', line 2385
def _arithmetic_type_with_array(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_bitfield(lhs_type, rhs_type = self) ⇒ Object
2366
2367
2368
2369
2370
2371
|
# File 'lib/adlint/cc1/type.rb', line 2366
def _arithmetic_type_with_bitfield(lhs_type, rhs_type = self)
lhs_type.integer_promoted_type end
|
#_arithmetic_type_with_char(lhs_type, rhs_type = self) ⇒ Object
2172
2173
2174
2175
2176
2177
|
# File 'lib/adlint/cc1/type.rb', line 2172
def _arithmetic_type_with_char(lhs_type, rhs_type = self)
lhs_type.integer_promoted_type end
|
#_arithmetic_type_with_double(lhs_type, rhs_type = self) ⇒ Object
2353
2354
2355
2356
2357
|
# File 'lib/adlint/cc1/type.rb', line 2353
def _arithmetic_type_with_double(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_enum(lhs_type, rhs_type = self) ⇒ Object
2373
2374
2375
2376
2377
|
# File 'lib/adlint/cc1/type.rb', line 2373
def _arithmetic_type_with_enum(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_extended_big_int(lhs_type, rhs_type = self) ⇒ Object
2400
2401
2402
2403
2404
2405
|
# File 'lib/adlint/cc1/type.rb', line 2400
def _arithmetic_type_with_extended_big_int(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_float(lhs_type, rhs_type = self) ⇒ Object
2347
2348
2349
2350
2351
|
# File 'lib/adlint/cc1/type.rb', line 2347
def _arithmetic_type_with_float(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_function(lhs_type, rhs_type = self) ⇒ Object
2167
2168
2169
2170
|
# File 'lib/adlint/cc1/type.rb', line 2167
def _arithmetic_type_with_function(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_int(lhs_type, rhs_type = self) ⇒ Object
2235
2236
2237
2238
2239
|
# File 'lib/adlint/cc1/type.rb', line 2235
def _arithmetic_type_with_int(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_long(lhs_type, rhs_type = self) ⇒ Object
2266
2267
2268
2269
2270
|
# File 'lib/adlint/cc1/type.rb', line 2266
def _arithmetic_type_with_long(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_long_double(lhs_type, rhs_type = self) ⇒ Object
2359
2360
2361
2362
2363
2364
|
# File 'lib/adlint/cc1/type.rb', line 2359
def _arithmetic_type_with_long_double(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_long_int(lhs_type, rhs_type = self) ⇒ Object
2286
2287
2288
2289
2290
|
# File 'lib/adlint/cc1/type.rb', line 2286
def _arithmetic_type_with_long_int(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_long_long(lhs_type, rhs_type = self) ⇒ Object
2306
2307
2308
2309
2310
|
# File 'lib/adlint/cc1/type.rb', line 2306
def _arithmetic_type_with_long_long(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_long_long_int(lhs_type, rhs_type = self) ⇒ Object
2326
2327
2328
2329
2330
2331
|
# File 'lib/adlint/cc1/type.rb', line 2326
def _arithmetic_type_with_long_long_int(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_pointer(lhs_type, rhs_type = self) ⇒ Object
2379
2380
2381
2382
2383
|
# File 'lib/adlint/cc1/type.rb', line 2379
def _arithmetic_type_with_pointer(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_short(lhs_type, rhs_type = self) ⇒ Object
2193
2194
2195
2196
2197
2198
|
# File 'lib/adlint/cc1/type.rb', line 2193
def _arithmetic_type_with_short(lhs_type, rhs_type = self)
lhs_type.integer_promoted_type end
|
#_arithmetic_type_with_short_int(lhs_type, rhs_type = self) ⇒ Object
2214
2215
2216
2217
2218
2219
|
# File 'lib/adlint/cc1/type.rb', line 2214
def _arithmetic_type_with_short_int(lhs_type, rhs_type = self)
lhs_type.integer_promoted_type end
|
#_arithmetic_type_with_signed(lhs_type, rhs_type = self) ⇒ Object
2241
2242
2243
2244
2245
|
# File 'lib/adlint/cc1/type.rb', line 2241
def _arithmetic_type_with_signed(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_signed_char(lhs_type, rhs_type = self) ⇒ Object
2179
2180
2181
2182
2183
2184
|
# File 'lib/adlint/cc1/type.rb', line 2179
def _arithmetic_type_with_signed_char(lhs_type, rhs_type = self)
lhs_type.integer_promoted_type end
|
#_arithmetic_type_with_signed_int(lhs_type, rhs_type = self) ⇒ Object
2247
2248
2249
2250
2251
|
# File 'lib/adlint/cc1/type.rb', line 2247
def _arithmetic_type_with_signed_int(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_signed_long(lhs_type, rhs_type = self) ⇒ Object
2272
2273
2274
2275
2276
2277
|
# File 'lib/adlint/cc1/type.rb', line 2272
def _arithmetic_type_with_signed_long(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_signed_long_int(lhs_type, rhs_type = self) ⇒ Object
2292
2293
2294
2295
2296
2297
|
# File 'lib/adlint/cc1/type.rb', line 2292
def _arithmetic_type_with_signed_long_int(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_signed_long_long(lhs_type, rhs_type = self) ⇒ Object
2312
2313
2314
2315
2316
2317
|
# File 'lib/adlint/cc1/type.rb', line 2312
def _arithmetic_type_with_signed_long_long(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_signed_long_long_int(lhs_type, rhs_type = self) ⇒ Object
2333
2334
2335
2336
2337
2338
|
# File 'lib/adlint/cc1/type.rb', line 2333
def _arithmetic_type_with_signed_long_long_int(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_signed_short(lhs_type, rhs_type = self) ⇒ Object
2200
2201
2202
2203
2204
2205
|
# File 'lib/adlint/cc1/type.rb', line 2200
def _arithmetic_type_with_signed_short(lhs_type, rhs_type = self)
lhs_type.integer_promoted_type end
|
#_arithmetic_type_with_signed_short_int(lhs_type, rhs_type = self) ⇒ Object
2221
2222
2223
2224
2225
2226
|
# File 'lib/adlint/cc1/type.rb', line 2221
def _arithmetic_type_with_signed_short_int(lhs_type, rhs_type = self)
lhs_type.integer_promoted_type end
|
#_arithmetic_type_with_struct(lhs_type, rhs_type = self) ⇒ Object
2390
2391
2392
2393
|
# File 'lib/adlint/cc1/type.rb', line 2390
def _arithmetic_type_with_struct(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_undeclared(lhs_type, rhs_type = self) ⇒ Object
2154
2155
2156
|
# File 'lib/adlint/cc1/type.rb', line 2154
def _arithmetic_type_with_undeclared(lhs_type, rhs_type = self)
rhs_type.arithmetic_type_with(lhs_type)
end
|
#_arithmetic_type_with_union(lhs_type, rhs_type = self) ⇒ Object
2395
2396
2397
2398
|
# File 'lib/adlint/cc1/type.rb', line 2395
def _arithmetic_type_with_union(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_unresolved(lhs_type, rhs_type = self) ⇒ Object
2158
2159
2160
|
# File 'lib/adlint/cc1/type.rb', line 2158
def _arithmetic_type_with_unresolved(lhs_type, rhs_type = self)
rhs_type.arithmetic_type_with(lhs_type)
end
|
#_arithmetic_type_with_unsigned(lhs_type, rhs_type = self) ⇒ Object
2253
2254
2255
2256
2257
|
# File 'lib/adlint/cc1/type.rb', line 2253
def _arithmetic_type_with_unsigned(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_unsigned_char(lhs_type, rhs_type = self) ⇒ Object
2186
2187
2188
2189
2190
2191
|
# File 'lib/adlint/cc1/type.rb', line 2186
def _arithmetic_type_with_unsigned_char(lhs_type, rhs_type = self)
lhs_type.integer_promoted_type end
|
#_arithmetic_type_with_unsigned_int(lhs_type, rhs_type = self) ⇒ Object
2259
2260
2261
2262
2263
2264
|
# File 'lib/adlint/cc1/type.rb', line 2259
def _arithmetic_type_with_unsigned_int(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_unsigned_long(lhs_type, rhs_type = self) ⇒ Object
2279
2280
2281
2282
2283
2284
|
# File 'lib/adlint/cc1/type.rb', line 2279
def _arithmetic_type_with_unsigned_long(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_unsigned_long_int(lhs_type, rhs_type = self) ⇒ Object
2299
2300
2301
2302
2303
2304
|
# File 'lib/adlint/cc1/type.rb', line 2299
def _arithmetic_type_with_unsigned_long_int(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_unsigned_long_long(lhs_type, rhs_type = self) ⇒ Object
2319
2320
2321
2322
2323
2324
|
# File 'lib/adlint/cc1/type.rb', line 2319
def _arithmetic_type_with_unsigned_long_long(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_unsigned_long_long_int(lhs_type, rhs_type = self) ⇒ Object
2340
2341
2342
2343
2344
2345
|
# File 'lib/adlint/cc1/type.rb', line 2340
def _arithmetic_type_with_unsigned_long_long_int(lhs_type, rhs_type = self)
lhs_type end
|
#_arithmetic_type_with_unsigned_short(lhs_type, rhs_type = self) ⇒ Object
2207
2208
2209
2210
2211
2212
|
# File 'lib/adlint/cc1/type.rb', line 2207
def _arithmetic_type_with_unsigned_short(lhs_type, rhs_type = self)
lhs_type.integer_promoted_type end
|
#_arithmetic_type_with_unsigned_short_int(lhs_type, rhs_type = self) ⇒ Object
2228
2229
2230
2231
2232
2233
|
# File 'lib/adlint/cc1/type.rb', line 2228
def _arithmetic_type_with_unsigned_short_int(lhs_type, rhs_type = self)
lhs_type.integer_promoted_type end
|
#_arithmetic_type_with_void(lhs_type, rhs_type = self) ⇒ Object
2162
2163
2164
2165
|
# File 'lib/adlint/cc1/type.rb', line 2162
def _arithmetic_type_with_void(lhs_type, rhs_type = self)
lhs_type end
|
#arbitrary_value ⇒ Object
2109
2110
2111
|
# File 'lib/adlint/cc1/type.rb', line 2109
def arbitrary_value
ScalarValue.of_nil(logical_right_shift?) end
|
2145
2146
2147
|
# File 'lib/adlint/cc1/type.rb', line 2145
def argument_promoted_type
self end
|
#arithmetic_type_with(type) ⇒ Object
2149
2150
2151
2152
|
# File 'lib/adlint/cc1/type.rb', line 2149
def arithmetic_type_with(type)
type._arithmetic_type_with_void(self)
end
|
#array? ⇒ Boolean
1989
1990
1991
|
# File 'lib/adlint/cc1/type.rb', line 1989
def array?
false
end
|
#base_type ⇒ Object
1949
1950
1951
|
# File 'lib/adlint/cc1/type.rb', line 1949
def base_type
nil
end
|
#bit_alignment ⇒ Object
1941
1942
1943
|
# File 'lib/adlint/cc1/type.rb', line 1941
def bit_alignment
0
end
|
1937
1938
1939
|
# File 'lib/adlint/cc1/type.rb', line 1937
def bit_size
0
end
|
#bitfield? ⇒ Boolean
2049
2050
2051
|
# File 'lib/adlint/cc1/type.rb', line 2049
def bitfield?
false
end
|
#brief_image ⇒ Object
1925
1926
1927
|
# File 'lib/adlint/cc1/type.rb', line 1925
def brief_image
name
end
|
#coerce_array_value(val) ⇒ Object
2129
2130
2131
|
# File 'lib/adlint/cc1/type.rb', line 2129
def coerce_array_value(val)
ScalarValue.of_nil(logical_right_shift?) end
|
#coerce_composite_value(val) ⇒ Object
2133
2134
2135
|
# File 'lib/adlint/cc1/type.rb', line 2133
def coerce_composite_value(val)
ScalarValue.of_nil(logical_right_shift?) end
|
#coerce_scalar_value(val) ⇒ Object
2125
2126
2127
|
# File 'lib/adlint/cc1/type.rb', line 2125
def coerce_scalar_value(val)
ScalarValue.of_nil(logical_right_shift?) end
|
#coercible?(to_type) ⇒ Boolean
1965
1966
1967
|
# File 'lib/adlint/cc1/type.rb', line 1965
def coercible?(to_type)
false
end
|
#compatible?(to_type) ⇒ Boolean
1961
1962
1963
|
# File 'lib/adlint/cc1/type.rb', line 1961
def compatible?(to_type)
false
end
|
#const? ⇒ Boolean
2037
2038
2039
|
# File 'lib/adlint/cc1/type.rb', line 2037
def const?
false
end
|
#convertible?(to_type) ⇒ Boolean
1969
1970
1971
|
# File 'lib/adlint/cc1/type.rb', line 1969
def convertible?(to_type)
to_type.void?
end
|
#corresponding_signed_type ⇒ Object
2407
2408
2409
|
# File 'lib/adlint/cc1/type.rb', line 2407
def corresponding_signed_type
self end
|
#corresponding_unsigned_type ⇒ Object
2411
2412
2413
|
# File 'lib/adlint/cc1/type.rb', line 2411
def corresponding_unsigned_type
self end
|
2415
2416
2417
|
# File 'lib/adlint/cc1/type.rb', line 2415
def dup
VoidType.new(type_table)
end
|
#enum? ⇒ Boolean
2013
2014
2015
|
# File 'lib/adlint/cc1/type.rb', line 2013
def enum?
false
end
|
#enumerators ⇒ Object
2073
2074
2075
|
# File 'lib/adlint/cc1/type.rb', line 2073
def enumerators
[]
end
|
#explicitly_signed? ⇒ Boolean
2057
2058
2059
|
# File 'lib/adlint/cc1/type.rb', line 2057
def explicitly_signed?
false
end
|
#floating? ⇒ Boolean
1985
1986
1987
|
# File 'lib/adlint/cc1/type.rb', line 1985
def floating?
false
end
|
#function? ⇒ Boolean
2009
2010
2011
|
# File 'lib/adlint/cc1/type.rb', line 2009
def function?
false
end
|
#have_va_list? ⇒ Boolean
2061
2062
2063
|
# File 'lib/adlint/cc1/type.rb', line 2061
def have_va_list?
false
end
|
1917
1918
1919
|
# File 'lib/adlint/cc1/type.rb', line 1917
def id
@id ||= StandardTypeId.new("void")
end
|
1921
1922
1923
|
# File 'lib/adlint/cc1/type.rb', line 1921
def image
name
end
|
#impl_length ⇒ Object
2081
2082
2083
|
# File 'lib/adlint/cc1/type.rb', line 2081
def impl_length
0
end
|
#incomplete? ⇒ Boolean
1957
1958
1959
|
# File 'lib/adlint/cc1/type.rb', line 1957
def incomplete?
true
end
|
#integer? ⇒ Boolean
1981
1982
1983
|
# File 'lib/adlint/cc1/type.rb', line 1981
def integer?
false
end
|
#integer_conversion_rank ⇒ Object
2137
2138
2139
|
# File 'lib/adlint/cc1/type.rb', line 2137
def integer_conversion_rank
0 end
|
2141
2142
2143
|
# File 'lib/adlint/cc1/type.rb', line 2141
def integer_promoted_type
self end
|
2077
2078
2079
|
# File 'lib/adlint/cc1/type.rb', line 2077
def length
0
end
|
1929
1930
1931
|
# File 'lib/adlint/cc1/type.rb', line 1929
def location
nil
end
|
2097
2098
2099
|
# File 'lib/adlint/cc1/type.rb', line 2097
def max
0
end
|
#member_named(name) ⇒ Object
2089
2090
2091
|
# File 'lib/adlint/cc1/type.rb', line 2089
def member_named(name)
nil
end
|
2085
2086
2087
|
# File 'lib/adlint/cc1/type.rb', line 2085
def members
[]
end
|
2093
2094
2095
|
# File 'lib/adlint/cc1/type.rb', line 2093
def min
0
end
|
#named? ⇒ Boolean
1933
1934
1935
|
# File 'lib/adlint/cc1/type.rb', line 1933
def named?
true
end
|
#nil_value ⇒ Object
2101
2102
2103
|
# File 'lib/adlint/cc1/type.rb', line 2101
def nil_value
ScalarValue.of_nil(logical_right_shift?) end
|
#parameter_types ⇒ Object
2069
2070
2071
|
# File 'lib/adlint/cc1/type.rb', line 2069
def parameter_types
[]
end
|
#parameter_value ⇒ Object
2117
2118
2119
|
# File 'lib/adlint/cc1/type.rb', line 2117
def parameter_value
ScalarValue.of_nil(logical_right_shift?) end
|
#pointer? ⇒ Boolean
2001
2002
2003
|
# File 'lib/adlint/cc1/type.rb', line 2001
def pointer?
false
end
|
#qualified? ⇒ Boolean
2005
2006
2007
|
# File 'lib/adlint/cc1/type.rb', line 2005
def qualified?
false
end
|
#real_type ⇒ Object
1945
1946
1947
|
# File 'lib/adlint/cc1/type.rb', line 1945
def real_type
self
end
|
#restrict? ⇒ Boolean
2045
2046
2047
|
# File 'lib/adlint/cc1/type.rb', line 2045
def restrict?
false
end
|
#return_type ⇒ Object
2065
2066
2067
|
# File 'lib/adlint/cc1/type.rb', line 2065
def return_type
self
end
|
#return_value ⇒ Object
2121
2122
2123
|
# File 'lib/adlint/cc1/type.rb', line 2121
def return_value
ScalarValue.of_nil(logical_right_shift?) end
|
#same_as?(type) ⇒ Boolean
1973
1974
1975
|
# File 'lib/adlint/cc1/type.rb', line 1973
def same_as?(type)
false
end
|
#scalar? ⇒ Boolean
1977
1978
1979
|
# File 'lib/adlint/cc1/type.rb', line 1977
def scalar?
false
end
|
#signed? ⇒ Boolean
2053
2054
2055
|
# File 'lib/adlint/cc1/type.rb', line 2053
def signed?
false
end
|
#standard? ⇒ Boolean
2025
2026
2027
|
# File 'lib/adlint/cc1/type.rb', line 2025
def standard?
true
end
|
#struct? ⇒ Boolean
1993
1994
1995
|
# File 'lib/adlint/cc1/type.rb', line 1993
def struct?
false
end
|
#undeclared? ⇒ Boolean
2029
2030
2031
|
# File 'lib/adlint/cc1/type.rb', line 2029
def undeclared?
false
end
|
#undefined_value ⇒ Object
2113
2114
2115
|
# File 'lib/adlint/cc1/type.rb', line 2113
def undefined_value
ScalarValue.of_nil(logical_right_shift?) end
|
#union? ⇒ Boolean
1997
1998
1999
|
# File 'lib/adlint/cc1/type.rb', line 1997
def union?
false
end
|
#unqualify ⇒ Object
1953
1954
1955
|
# File 'lib/adlint/cc1/type.rb', line 1953
def unqualify
self
end
|
#unresolved? ⇒ Boolean
2033
2034
2035
|
# File 'lib/adlint/cc1/type.rb', line 2033
def unresolved?
false
end
|
#user? ⇒ Boolean
2017
2018
2019
|
# File 'lib/adlint/cc1/type.rb', line 2017
def user?
false
end
|
#void? ⇒ Boolean
2021
2022
2023
|
# File 'lib/adlint/cc1/type.rb', line 2021
def void?
true
end
|
#volatile? ⇒ Boolean
2041
2042
2043
|
# File 'lib/adlint/cc1/type.rb', line 2041
def volatile?
false
end
|
#zero_value ⇒ Object
2105
2106
2107
|
# File 'lib/adlint/cc1/type.rb', line 2105
def zero_value
ScalarValue.of_nil(logical_right_shift?) end
|