class AdLint::Exam::CBuiltin::W0654
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 15337 def initialize(phase_ctxt) super interp = phase_ctxt[:cc1_interpreter] interp.on_variable_initialized += T(:check) end
Private Instance Methods
check(var_def, var, init_var)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 15344 def check(var_def, var, init_var) type = var.type if type.struct? || type.union? and !type.same_as?(init_var.type) W(var_def.location) end end