class AdLint::Cc1::UnsignedShortIntType

Public Class Methods

new(type_tbl) click to toggle source
Calls superclass method AdLint::Cc1::IntegerType::new
# File lib/adlint/cc1/type.rb, line 4036
def initialize(type_tbl)
  # FIXME: StandardTypesAccessor is not ready until @type_table is
  #        initialized.
  @type_table = type_tbl
  super(type_tbl, "unsigned short int",
        short_size, short_alignment, false, true)
end

Public Instance Methods

arithmetic_type_with(type) click to toggle source
# File lib/adlint/cc1/type.rb, line 4052
def arithmetic_type_with(type)
  type._arithmetic_type_with_unsigned_short_int(self)
end
corresponding_signed_type() click to toggle source
# File lib/adlint/cc1/type.rb, line 4056
def corresponding_signed_type
  signed_short_int_t
end
corresponding_unsigned_type() click to toggle source
# File lib/adlint/cc1/type.rb, line 4060
def corresponding_unsigned_type
  self
end
id() click to toggle source
# File lib/adlint/cc1/type.rb, line 4044
def id
  @id ||= UnsignedShortIntTypeId.new
end
integer_conversion_rank() click to toggle source
# File lib/adlint/cc1/type.rb, line 4048
def integer_conversion_rank
  2
end