Class: AdLint::Cc1::VoidType

Inherits:
Type
  • Object
show all
Defined in:
lib/adlint/cc1/type.rb

Instance Attribute Summary

Attributes inherited from Type

#declarations, #name, #type_table

Instance Method Summary collapse

Methods inherited from Type

#==, #aligned_bit_size, #aligned_byte_size, #byte_alignment, #byte_size, #composite?, #inspect, #length=, #more_cv_qualified?, #parameter?, #unsigned?

Methods included from StandardTypesAccessor

#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

Methods included from ArithmeticAccessor

#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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with BitfieldType and `void'
  #       makes integer-promoted type of BitfieldType.
  lhs_type.integer_promoted_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `char' and `void'
  #       makes integer-promoted type of `char'.
  lhs_type.integer_promoted_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `double' and `void' makes `double'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with EnumType and `void' makes EnumType.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with ExtendedBigIntType and `void'
  #       makes ExtendedBigIntType.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `float' and `void' makes `float'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `int' and `void' makes `int'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `long' and `void' makes `long'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `long double' and `void'
  #       makes `long double'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `long int' and `void' makes `long int'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `long long' and `void' makes `long long'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `long long int' and `void'
  #       makes `long long int'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with PointerType and `void' makes PointerType.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `short' and `void'
  #       makes integer-promoted type of `short'.
  lhs_type.integer_promoted_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `short int' and `void'
  #       makes integer-promoted type of `short int'.
  lhs_type.integer_promoted_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `signed' and `void' makes `signed'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `signed char' and `void'
  #       makes integer-promoted type of `signed char'.
  lhs_type.integer_promoted_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `signed int' and `void' makes `signed int'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `signed long' and `void'
  #       makes `signed long'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `signed long int' and `void'
  #       makes `signed long int'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `signed long long' and `void'
  #       makes `signed long long'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `signed long long int' and `void'
  #       makes `signed long long int'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `signed short' and `void'
  #       makes integer-promoted type of `signed short'.
  lhs_type.integer_promoted_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `signed short int' and `void'
  #       makes integer-promoted type of `signed short int'.
  lhs_type.integer_promoted_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `unsigned' and `void' makes `unsigned'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `unsigned char' and `void'
  #       makes integer-promoted type of `unsigned char'.
  lhs_type.integer_promoted_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `unsigned int' and `void'
  #       makes `unsigned int'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `unsigned long' and `void'
  #       makes `unsigned long'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `unsigned long int' and `void'
  #       makes `unsigned long int'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `unsigned long long' and `void'
  #       makes `unsigned long long'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `unsigned long long int' and `void'
  #       makes `unsigned long long int'.
  lhs_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `unsigned short' and `void'
  #       makes integer-promoted type of `unsigned short'.
  lhs_type.integer_promoted_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  # NOTE: Binary operation with `unsigned short int' and `void'
  #       makes integer-promoted type of `unsigned short int'.
  lhs_type.integer_promoted_type # NOTREACHED
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)
  # NOTE: An arithmetic operation with `void' must not be executed!
  lhs_type # NOTREACHED
end

#arbitrary_valueObject



2109
2110
2111
# File 'lib/adlint/cc1/type.rb', line 2109

def arbitrary_value
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end

#argument_promoted_typeObject



2145
2146
2147
# File 'lib/adlint/cc1/type.rb', line 2145

def argument_promoted_type
  self # NOTREACHED
end

#arithmetic_type_with(type) ⇒ Object



2149
2150
2151
2152
# File 'lib/adlint/cc1/type.rb', line 2149

def arithmetic_type_with(type)
  # NOTE: An arithmetic operation with `void' must not be executed!
  type._arithmetic_type_with_void(self)
end

#array?Boolean

Returns:

  • (Boolean)


1989
1990
1991
# File 'lib/adlint/cc1/type.rb', line 1989

def array?
  false
end

#base_typeObject



1949
1950
1951
# File 'lib/adlint/cc1/type.rb', line 1949

def base_type
  nil
end

#bit_alignmentObject



1941
1942
1943
# File 'lib/adlint/cc1/type.rb', line 1941

def bit_alignment
  0
end

#bit_sizeObject



1937
1938
1939
# File 'lib/adlint/cc1/type.rb', line 1937

def bit_size
  0
end

#bitfield?Boolean

Returns:

  • (Boolean)


2049
2050
2051
# File 'lib/adlint/cc1/type.rb', line 2049

def bitfield?
  false
end

#brief_imageObject



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?) # NOTREACHED
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?) # NOTREACHED
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?) # NOTREACHED
end

#coercible?(to_type) ⇒ Boolean

Returns:

  • (Boolean)


1965
1966
1967
# File 'lib/adlint/cc1/type.rb', line 1965

def coercible?(to_type)
  false
end

#compatible?(to_type) ⇒ Boolean

Returns:

  • (Boolean)


1961
1962
1963
# File 'lib/adlint/cc1/type.rb', line 1961

def compatible?(to_type)
  false
end

#const?Boolean

Returns:

  • (Boolean)


2037
2038
2039
# File 'lib/adlint/cc1/type.rb', line 2037

def const?
  false
end

#convertible?(to_type) ⇒ Boolean

Returns:

  • (Boolean)


1969
1970
1971
# File 'lib/adlint/cc1/type.rb', line 1969

def convertible?(to_type)
  to_type.void?
end

#corresponding_signed_typeObject



2407
2408
2409
# File 'lib/adlint/cc1/type.rb', line 2407

def corresponding_signed_type
  self # NOTREACHED
end

#corresponding_unsigned_typeObject



2411
2412
2413
# File 'lib/adlint/cc1/type.rb', line 2411

def corresponding_unsigned_type
  self # NOTREACHED
end

#dupObject



2415
2416
2417
# File 'lib/adlint/cc1/type.rb', line 2415

def dup
  VoidType.new(type_table)
end

#enum?Boolean

Returns:

  • (Boolean)


2013
2014
2015
# File 'lib/adlint/cc1/type.rb', line 2013

def enum?
  false
end

#enumeratorsObject



2073
2074
2075
# File 'lib/adlint/cc1/type.rb', line 2073

def enumerators
  []
end

#explicitly_signed?Boolean

Returns:

  • (Boolean)


2057
2058
2059
# File 'lib/adlint/cc1/type.rb', line 2057

def explicitly_signed?
  false
end

#floating?Boolean

Returns:

  • (Boolean)


1985
1986
1987
# File 'lib/adlint/cc1/type.rb', line 1985

def floating?
  false
end

#function?Boolean

Returns:

  • (Boolean)


2009
2010
2011
# File 'lib/adlint/cc1/type.rb', line 2009

def function?
  false
end

#have_va_list?Boolean

Returns:

  • (Boolean)


2061
2062
2063
# File 'lib/adlint/cc1/type.rb', line 2061

def have_va_list?
  false
end

#idObject



1917
1918
1919
# File 'lib/adlint/cc1/type.rb', line 1917

def id
  @id ||= StandardTypeId.new("void")
end

#imageObject



1921
1922
1923
# File 'lib/adlint/cc1/type.rb', line 1921

def image
  name
end

#impl_lengthObject



2081
2082
2083
# File 'lib/adlint/cc1/type.rb', line 2081

def impl_length
  0
end

#incomplete?Boolean

Returns:

  • (Boolean)


1957
1958
1959
# File 'lib/adlint/cc1/type.rb', line 1957

def incomplete?
  true
end

#integer?Boolean

Returns:

  • (Boolean)


1981
1982
1983
# File 'lib/adlint/cc1/type.rb', line 1981

def integer?
  false
end

#integer_conversion_rankObject



2137
2138
2139
# File 'lib/adlint/cc1/type.rb', line 2137

def integer_conversion_rank
  0 # NOTREACHED
end

#integer_promoted_typeObject



2141
2142
2143
# File 'lib/adlint/cc1/type.rb', line 2141

def integer_promoted_type
  self # NOTREACHED
end

#lengthObject



2077
2078
2079
# File 'lib/adlint/cc1/type.rb', line 2077

def length
  0
end

#locationObject



1929
1930
1931
# File 'lib/adlint/cc1/type.rb', line 1929

def location
  nil
end

#maxObject



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

#membersObject



2085
2086
2087
# File 'lib/adlint/cc1/type.rb', line 2085

def members
  []
end

#minObject



2093
2094
2095
# File 'lib/adlint/cc1/type.rb', line 2093

def min
  0
end

#named?Boolean

Returns:

  • (Boolean)


1933
1934
1935
# File 'lib/adlint/cc1/type.rb', line 1933

def named?
  true
end

#nil_valueObject



2101
2102
2103
# File 'lib/adlint/cc1/type.rb', line 2101

def nil_value
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end

#parameter_typesObject



2069
2070
2071
# File 'lib/adlint/cc1/type.rb', line 2069

def parameter_types
  []
end

#parameter_valueObject



2117
2118
2119
# File 'lib/adlint/cc1/type.rb', line 2117

def parameter_value
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end

#pointer?Boolean

Returns:

  • (Boolean)


2001
2002
2003
# File 'lib/adlint/cc1/type.rb', line 2001

def pointer?
  false
end

#qualified?Boolean

Returns:

  • (Boolean)


2005
2006
2007
# File 'lib/adlint/cc1/type.rb', line 2005

def qualified?
  false
end

#real_typeObject



1945
1946
1947
# File 'lib/adlint/cc1/type.rb', line 1945

def real_type
  self
end

#restrict?Boolean

Returns:

  • (Boolean)


2045
2046
2047
# File 'lib/adlint/cc1/type.rb', line 2045

def restrict?
  false
end

#return_typeObject



2065
2066
2067
# File 'lib/adlint/cc1/type.rb', line 2065

def return_type
  self
end

#return_valueObject



2121
2122
2123
# File 'lib/adlint/cc1/type.rb', line 2121

def return_value
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end

#same_as?(type) ⇒ Boolean

Returns:

  • (Boolean)


1973
1974
1975
# File 'lib/adlint/cc1/type.rb', line 1973

def same_as?(type)
  false
end

#scalar?Boolean

Returns:

  • (Boolean)


1977
1978
1979
# File 'lib/adlint/cc1/type.rb', line 1977

def scalar?
  false
end

#signed?Boolean

Returns:

  • (Boolean)


2053
2054
2055
# File 'lib/adlint/cc1/type.rb', line 2053

def signed?
  false
end

#standard?Boolean

Returns:

  • (Boolean)


2025
2026
2027
# File 'lib/adlint/cc1/type.rb', line 2025

def standard?
  true
end

#struct?Boolean

Returns:

  • (Boolean)


1993
1994
1995
# File 'lib/adlint/cc1/type.rb', line 1993

def struct?
  false
end

#undeclared?Boolean

Returns:

  • (Boolean)


2029
2030
2031
# File 'lib/adlint/cc1/type.rb', line 2029

def undeclared?
  false
end

#undefined_valueObject



2113
2114
2115
# File 'lib/adlint/cc1/type.rb', line 2113

def undefined_value
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end

#union?Boolean

Returns:

  • (Boolean)


1997
1998
1999
# File 'lib/adlint/cc1/type.rb', line 1997

def union?
  false
end

#unqualifyObject



1953
1954
1955
# File 'lib/adlint/cc1/type.rb', line 1953

def unqualify
  self
end

#unresolved?Boolean

Returns:

  • (Boolean)


2033
2034
2035
# File 'lib/adlint/cc1/type.rb', line 2033

def unresolved?
  false
end

#user?Boolean

Returns:

  • (Boolean)


2017
2018
2019
# File 'lib/adlint/cc1/type.rb', line 2017

def user?
  false
end

#void?Boolean

Returns:

  • (Boolean)


2021
2022
2023
# File 'lib/adlint/cc1/type.rb', line 2021

def void?
  true
end

#volatile?Boolean

Returns:

  • (Boolean)


2041
2042
2043
# File 'lib/adlint/cc1/type.rb', line 2041

def volatile?
  false
end

#zero_valueObject



2105
2106
2107
# File 'lib/adlint/cc1/type.rb', line 2105

def zero_value
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end