module AdLint::Cc1::VariableTableMediator

Public Instance Methods

create_tmpvar(type = undeclared_type, val = type.undefined_value) click to toggle source
# File lib/adlint/cc1/mediator.rb, line 106
def create_tmpvar(type = undeclared_type, val = type.undefined_value)
  variable_table.define_temporary(type, val)
end
local_variables() click to toggle source
# File lib/adlint/cc1/mediator.rb, line 102
def local_variables
  variable_table.all_named_variables.select { |var| var.scope.local? }
end