Class: AdLint::Cc1::ShortIntTypeId

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

Instance Method Summary collapse

Methods inherited from TypeId

#eql?, #hash

Constructor Details

#initializeShortIntTypeId

Returns a new instance of ShortIntTypeId.



3976
3977
3978
# File 'lib/adlint/cc1/type.rb', line 3976

def initialize
  super("short int")
end

Instance Method Details

#==(rhs_id) ⇒ Object



3980
3981
3982
3983
3984
3985
3986
3987
# File 'lib/adlint/cc1/type.rb', line 3980

def ==(rhs_id)
  case rhs_id
  when ShortIntTypeId, ShortTypeId, SignedShortTypeId, SignedShortIntTypeId
    true
  else
    false
  end
end