Class: AdLint::Cc1::IntTypeId

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

Instance Method Summary collapse

Methods inherited from TypeId

#eql?, #hash

Constructor Details

#initializeIntTypeId

Returns a new instance of IntTypeId.



4110
4111
4112
# File 'lib/adlint/cc1/type.rb', line 4110

def initialize
  super("int")
end

Instance Method Details

#==(rhs_id) ⇒ Object



4114
4115
4116
4117
4118
4119
4120
4121
# File 'lib/adlint/cc1/type.rb', line 4114

def ==(rhs_id)
  case rhs_id
  when IntTypeId, SignedTypeId, SignedIntTypeId
    true
  else
    false
  end
end