class AdLint::Exam::CBuiltin::W0783
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 19245 def initialize(phase_ctxt) super interp = phase_ctxt[:cc1_interpreter] interp.on_explicit_conv_performed += T(:check) end
Private Instance Methods
check(expr, orig_var, rslt_var)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 19252 def check(expr, orig_var, rslt_var) from_type = orig_var.type.unqualify to_type = rslt_var.type.unqualify return unless from_type.pointer? && to_type.pointer? unless from_type.base_type.void? || to_type.base_type.void? if from_type.base_type.incomplete? || to_type.base_type.incomplete? W(expr.location) end end end