class AdLint::Exam::CBuiltin::W0458

Public Class Methods

new(phase_ctxt) click to toggle source
Calls superclass method AdLint::Examination::new
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 9544
def initialize(phase_ctxt)
  super
  trav = phase_ctxt[:cc1_ast_traversal]
  trav.enter_variable_declaration += T(:check_variable)
  trav.enter_variable_definition  += T(:check_variable)
  trav.enter_parameter_definition += T(:check_variable)
end

Private Instance Methods

check_variable(node) click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 9553
def check_variable(node)
  W(node.location) if node.implicitly_typed?
end