Class: AdLint::Cc1::TemporaryVariable

Inherits:
OuterVariable show all
Defined in:
lib/adlint/cc1/object.rb

Instance Attribute Summary

Attributes inherited from OuterVariable

#representative_element

Attributes inherited from ScopedVariable

#scope

Attributes inherited from TypedObject

#type

Attributes inherited from Object

#declarations_and_definitions

Attributes included from Bindable

#binding

Instance Method Summary collapse

Methods inherited from OuterVariable

#assign!, #begin_value_versioning, #end_value_versioning, #enter_value_versioning_group, #inner?, #inner_variable_at, #inner_variable_named, #leave_value_versioning_group, #rollback_all_value_versions!, #thin_latest_value_version!

Methods inherited from ScopedVariable

#declared_as_auto?, #declared_as_extern?

Methods inherited from Variable

#assign!, #begin_value_versioning, #end_value_versioning, #enter_value_versioning_group, #function?, #inner?, #leave_value_versioning_group, #name, #narrow_value_domain!, #outer?, #rollback_all_value_versions!, #thin_latest_value_version!, #uninitialize!, #value, #variable?, #widen_value_domain!

Methods inherited from TypedObject

#to_pointer, #to_pointer_value, #to_value, #to_variable

Methods inherited from Object

#declared_as_auto?, #declared_as_extern?, #declared_as_register?, #declared_as_static?, #function?, #storage_class_specifiers, #variable?

Methods included from Bindable

#be_alias_to, #bind_to

Constructor Details

#initialize(mem, type, scope) ⇒ TemporaryVariable

Returns a new instance of TemporaryVariable.



542
543
544
# File 'lib/adlint/cc1/object.rb', line 542

def initialize(mem, type, scope)
  super(mem, nil, type, scope)
end

Instance Method Details

#designated_by_lvalue?Boolean

Returns:

  • (Boolean)


550
551
552
# File 'lib/adlint/cc1/object.rb', line 550

def designated_by_lvalue?
  false
end

#named?Boolean

Returns:

  • (Boolean)


554
555
556
# File 'lib/adlint/cc1/object.rb', line 554

def named?
  false
end

#pretty_print(pp) ⇒ Object



558
559
560
# File 'lib/adlint/cc1/object.rb', line 558

def pretty_print(pp)
  Summary.new(object_id, type, binding.memory).pretty_print(pp)
end

#temporary?Boolean

Returns:

  • (Boolean)


546
547
548
# File 'lib/adlint/cc1/object.rb', line 546

def temporary?
  true
end