class AdLint::Exam::CBuiltin::W0800
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 19950 def initialize(phase_ctxt) super interp = phase_ctxt[:cc1_interpreter] interp.on_variable_defined += T(:check) end
Private Instance Methods
check(var_def, var)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 19957 def check(var_def, var) unless var.declared_as_extern? W(var_def.location, var.name) if var.type.incomplete? end end