class AdLint::Cc1::SignedCharType

Public Class Methods

new(type_tbl) click to toggle source
Calls superclass method AdLint::Cc1::IntegerType::new
# File lib/adlint/cc1/type.rb, line 3706
def initialize(type_tbl)
  # FIXME: StandardTypesAccessor is not ready until @type_table is
  #        initialized.
  @type_table = type_tbl
  super(type_tbl, "signed char", char_size, char_alignment, true, true)
end

Public Instance Methods

arithmetic_type_with(type) click to toggle source
# File lib/adlint/cc1/type.rb, line 3724
def arithmetic_type_with(type)
  type._arithmetic_type_with_signed_char(self)
end
corresponding_signed_type() click to toggle source
# File lib/adlint/cc1/type.rb, line 3728
def corresponding_signed_type
  self
end
corresponding_unsigned_type() click to toggle source
# File lib/adlint/cc1/type.rb, line 3732
def corresponding_unsigned_type
  unsigned_char_t
end
id() click to toggle source
# File lib/adlint/cc1/type.rb, line 3713
def id
  # NOTE: `char' type may be treated as `unsigned char'.
  #       Specialized type comparison is implemented in CharTypeId,
  #       SignedCharTypeId and UnsignedCharTypeId.
  @id ||= SignedCharTypeId.new(char_as_unsigned_char?)
end
integer_conversion_rank() click to toggle source
# File lib/adlint/cc1/type.rb, line 3720
def integer_conversion_rank
  1
end