Class: AdLint::Cc1::StandardIntegerType

Inherits:
IntegerType show all
Defined in:
lib/adlint/cc1/type.rb

Instance Attribute Summary

Attributes inherited from ScalarDataType

#bit_alignment, #bit_size

Attributes inherited from Type

#declarations, #name, #type_table

Instance Method Summary collapse

Methods inherited from IntegerType

#argument_promoted_type, #brief_image, #compatible?, #explicitly_signed?, #floating?, #image, #initialize, #integer?, #integer_promoted_type, #location, #max, #min, #signed?

Methods inherited from ScalarDataType

#_arithmetic_type_with_array, #_arithmetic_type_with_bitfield, #_arithmetic_type_with_char, #_arithmetic_type_with_double, #_arithmetic_type_with_enum, #_arithmetic_type_with_extended_big_int, #_arithmetic_type_with_float, #_arithmetic_type_with_function, #_arithmetic_type_with_int, #_arithmetic_type_with_long, #_arithmetic_type_with_long_double, #_arithmetic_type_with_long_int, #_arithmetic_type_with_long_long, #_arithmetic_type_with_long_long_int, #_arithmetic_type_with_pointer, #_arithmetic_type_with_short, #_arithmetic_type_with_short_int, #_arithmetic_type_with_signed, #_arithmetic_type_with_signed_char, #_arithmetic_type_with_signed_int, #_arithmetic_type_with_signed_long, #_arithmetic_type_with_signed_long_int, #_arithmetic_type_with_signed_long_long, #_arithmetic_type_with_signed_long_long_int, #_arithmetic_type_with_signed_short, #_arithmetic_type_with_signed_short_int, #_arithmetic_type_with_struct, #_arithmetic_type_with_undeclared, #_arithmetic_type_with_union, #_arithmetic_type_with_unresolved, #_arithmetic_type_with_unsigned, #_arithmetic_type_with_unsigned_char, #_arithmetic_type_with_unsigned_int, #_arithmetic_type_with_unsigned_long, #_arithmetic_type_with_unsigned_long_int, #_arithmetic_type_with_unsigned_long_long, #_arithmetic_type_with_unsigned_long_long_int, #_arithmetic_type_with_unsigned_short, #_arithmetic_type_with_unsigned_short_int, #_arithmetic_type_with_void, #arbitrary_value, #argument_promoted_type, #array?, #base_type, #brief_image, #coerce_array_value, #coerce_composite_value, #coerce_scalar_value, #coercible?, #compatible?, #const?, #explicitly_signed?, #floating?, #function?, #have_va_list?, #image, #impl_length, #initialize, #integer?, #integer_promoted_type, #length, #location, #max, #member_named, #members, #min, #nil_value, #parameter_types, #parameter_value, #qualified?, #real_type, #restrict?, #return_type, #return_value, #scalar?, #signed?, #struct?, #undeclared?, #undefined_value, #union?, #unqualify, #unresolved?, #user?, #void?, #volatile?, #zero_value

Methods included from UsualArithmeticTypeConversion

#do_usual_arithmetic_type_conversion

Methods inherited from Type

#==, #_arithmetic_type_with_array, #_arithmetic_type_with_bitfield, #_arithmetic_type_with_char, #_arithmetic_type_with_double, #_arithmetic_type_with_enum, #_arithmetic_type_with_extended_big_int, #_arithmetic_type_with_float, #_arithmetic_type_with_function, #_arithmetic_type_with_int, #_arithmetic_type_with_long, #_arithmetic_type_with_long_double, #_arithmetic_type_with_long_int, #_arithmetic_type_with_long_long, #_arithmetic_type_with_long_long_int, #_arithmetic_type_with_pointer, #_arithmetic_type_with_short, #_arithmetic_type_with_short_int, #_arithmetic_type_with_signed, #_arithmetic_type_with_signed_char, #_arithmetic_type_with_signed_int, #_arithmetic_type_with_signed_long, #_arithmetic_type_with_signed_long_int, #_arithmetic_type_with_signed_long_long, #_arithmetic_type_with_signed_long_long_int, #_arithmetic_type_with_signed_short, #_arithmetic_type_with_signed_short_int, #_arithmetic_type_with_struct, #_arithmetic_type_with_undeclared, #_arithmetic_type_with_union, #_arithmetic_type_with_unresolved, #_arithmetic_type_with_unsigned, #_arithmetic_type_with_unsigned_char, #_arithmetic_type_with_unsigned_int, #_arithmetic_type_with_unsigned_long, #_arithmetic_type_with_unsigned_long_int, #_arithmetic_type_with_unsigned_long_long, #_arithmetic_type_with_unsigned_long_long_int, #_arithmetic_type_with_unsigned_short, #_arithmetic_type_with_unsigned_short_int, #_arithmetic_type_with_void, #aligned_bit_size, #aligned_byte_size, #arbitrary_value, #argument_promoted_type, #array?, #base_type, #bit_alignment, #bit_size, #brief_image, #byte_alignment, #byte_size, #coerce_array_value, #coerce_composite_value, #coerce_scalar_value, #coercible?, #compatible?, #composite?, #const?, #convertible?, #explicitly_signed?, #floating?, #function?, #have_va_list?, #image, #impl_length, #initialize, #inspect, #integer?, #integer_promoted_type, #length, #length=, #location, #max, #member_named, #members, #min, #more_cv_qualified?, #nil_value, #parameter?, #parameter_types, #parameter_value, #qualified?, #real_type, #restrict?, #return_type, #return_value, #same_as?, #scalar?, #signed?, #struct?, #undeclared?, #undefined_value, #union?, #unqualify, #unresolved?, #unsigned?, #user?, #void?, #volatile?, #zero_value

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

This class inherits a constructor from AdLint::Cc1::IntegerType

Instance Method Details

#arithmetic_type_with(type) ⇒ Object



3599
3600
3601
# File 'lib/adlint/cc1/type.rb', line 3599

def arithmetic_type_with(type)
  subclass_responsibility
end

#bitfield?Boolean

Returns:

  • (Boolean)


3587
3588
3589
# File 'lib/adlint/cc1/type.rb', line 3587

def bitfield?
  false
end

#corresponding_signed_typeObject



3603
3604
3605
# File 'lib/adlint/cc1/type.rb', line 3603

def corresponding_signed_type
  subclass_responsibility
end

#corresponding_unsigned_typeObject



3607
3608
3609
# File 'lib/adlint/cc1/type.rb', line 3607

def corresponding_unsigned_type
  subclass_responsibility
end

#dupObject



3611
3612
3613
# File 'lib/adlint/cc1/type.rb', line 3611

def dup
  self.class.new(type_table)
end

#enum?Boolean

Returns:

  • (Boolean)


3579
3580
3581
# File 'lib/adlint/cc1/type.rb', line 3579

def enum?
  false
end

#enumeratorsObject



3591
3592
3593
# File 'lib/adlint/cc1/type.rb', line 3591

def enumerators
  []
end

#idObject



3563
3564
3565
# File 'lib/adlint/cc1/type.rb', line 3563

def id
  subclass_responsibility
end

#incomplete?Boolean

Returns:

  • (Boolean)


3571
3572
3573
# File 'lib/adlint/cc1/type.rb', line 3571

def incomplete?
  false
end

#integer_conversion_rankObject



3595
3596
3597
# File 'lib/adlint/cc1/type.rb', line 3595

def integer_conversion_rank
  subclass_responsibility
end

#named?Boolean

Returns:

  • (Boolean)


3567
3568
3569
# File 'lib/adlint/cc1/type.rb', line 3567

def named?
  true
end

#pointer?Boolean

Returns:

  • (Boolean)


3575
3576
3577
# File 'lib/adlint/cc1/type.rb', line 3575

def pointer?
  false
end

#standard?Boolean

Returns:

  • (Boolean)


3583
3584
3585
# File 'lib/adlint/cc1/type.rb', line 3583

def standard?
  true
end