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