Class: AdLint::Cc1::TemporaryVariable
- Inherits:
-
OuterVariable
- Object
- Object
- TypedObject
- Variable
- ScopedVariable
- OuterVariable
- AdLint::Cc1::TemporaryVariable
- Defined in:
- lib/adlint/cc1/object.rb
Instance Attribute Summary
Attributes inherited from OuterVariable
Attributes inherited from ScopedVariable
Attributes inherited from TypedObject
Attributes inherited from Object
Attributes included from Bindable
Instance Method Summary collapse
- #designated_by_lvalue? ⇒ Boolean
-
#initialize(mem, type, scope) ⇒ TemporaryVariable
constructor
A new instance of TemporaryVariable.
- #named? ⇒ Boolean
- #pretty_print(pp) ⇒ Object
- #temporary? ⇒ Boolean
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
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
550 551 552 |
# File 'lib/adlint/cc1/object.rb', line 550 def designated_by_lvalue? false end |
#named? ⇒ 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
546 547 548 |
# File 'lib/adlint/cc1/object.rb', line 546 def temporary? true end |