class AdLint::Cc1::ScopedVariable
Attributes
scope[RW]
Public Class Methods
new(mem, dcl_or_def, type, scope)
click to toggle source
Calls superclass method
AdLint::Cc1::Variable::new
# File lib/adlint/cc1/object.rb, line 311 def initialize(mem, dcl_or_def, type, scope) super(mem, dcl_or_def, type) @scope = scope end
Public Instance Methods
declared_as_auto?()
click to toggle source
Calls superclass method
AdLint::Cc1::Object#declared_as_auto?
# File lib/adlint/cc1/object.rb, line 326 def declared_as_auto? if @scope.global? super else sc_spec = first_storage_class_specifier sc_spec.nil? || sc_spec.type == :AUTO end end
declared_as_extern?()
click to toggle source
Calls superclass method
AdLint::Cc1::Object#declared_as_extern?
# File lib/adlint/cc1/object.rb, line 318 def declared_as_extern? if @scope.global? super else sc_spec = first_storage_class_specifier and sc_spec.type == :EXTERN end end