class AdLint::CompilerTraits::StandardTypes

DESCRIPTION

Traits information of standard types.

Attributes

char_alignment[R]
char_as_unsigned_char[R]

VALUE

Boolean – The flag indicates ‘char’ is ‘unsigned char’.

char_size[R]

VALUE

Integer – Bit length of the ‘char’ type.

code_ptr_alignment[R]
code_ptr_size[R]
data_ptr_alignment[R]
data_ptr_size[R]
double_alignment[R]
double_size[R]

VALUE

Integer – Bit length of the ‘double’ type.

float_alignment[R]
float_size[R]

VALUE

Integer – Bit length of the ‘float’ type.

int_alignment[R]
int_size[R]

VALUE

Integer – Bit length of the ‘int’ type.

long_alignment[R]
long_double_alignment[R]
long_double_size[R]

VALUE

Integer – Bit length of the ‘long double’ type.

long_long_alignment[R]
long_long_size[R]

VALUE

Integer – Bit length of the ‘long long’ type.

long_size[R]

VALUE

Integer – Bit length of the ‘long’ type.

short_alignment[R]
short_size[R]

VALUE

Integer – Bit length of the ‘short’ type.

Public Class Methods

new(doc) click to toggle source
# File lib/adlint/traits.rb, line 270
def initialize(doc)
  @char_size             = doc["char_size"]
  @char_alignment        = doc["char_alignment"]
  @short_size            = doc["short_size"]
  @short_alignment       = doc["short_alignment"]
  @int_size              = doc["int_size"]
  @int_alignment         = doc["int_alignment"]
  @long_size             = doc["long_size"]
  @long_alignment        = doc["long_alignment"]
  @long_long_size        = doc["long_long_size"]
  @long_long_alignment   = doc["long_long_alignment"]
  @float_size            = doc["float_size"]
  @float_alignment       = doc["float_alignment"]
  @double_size           = doc["double_size"]
  @double_alignment      = doc["double_alignment"]
  @long_double_size      = doc["long_double_size"]
  @long_double_alignment = doc["long_double_alignment"]

  @code_ptr_size         = doc["code_ptr_size"]
  @code_ptr_alignment    = doc["code_ptr_alignment"]
  @data_ptr_size         = doc["data_ptr_size"]
  @data_ptr_alignment    = doc["data_ptr_alignment"]

  @char_as_unsigned_char = doc["char_as_unsigned_char"]
end

Public Instance Methods

entity_name() click to toggle source
# File lib/adlint/traits.rb, line 296
def entity_name
  "compiler_traits:standard_types"
end
freeze() click to toggle source
Calls superclass method
# File lib/adlint/traits.rb, line 396
def freeze
  @char_size.freeze
  @char_alignment.freeze
  @short_size.freeze
  @short_alignment.freeze
  @int_size.freeze
  @int_alignment.freeze
  @long_size.freeze
  @long_alignment.freeze
  @long_long_size.freeze
  @long_long_alignment.freeze
  @float_size.freeze
  @float_alignment.freeze
  @double_size.freeze
  @double_alignment.freeze
  @long_double_size.freeze
  @long_double_alignment.freeze
  @code_ptr_size.freeze
  @code_ptr_alignment.freeze
  @data_ptr_size.freeze
  @data_ptr_alignment.freeze
  @char_as_unsigned_char.freeze
  super
end