class AdLint::Exam::CBuiltin::W0553
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 12741 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 12748 def check(expr, orig_var, rslt_var) lhs_type = orig_var.type.unqualify rhs_type = rslt_var.type.unqualify return unless lhs_type.pointer? && lhs_type.base_type.function? return unless rhs_type.pointer? && rhs_type.base_type.function? unless lhs_type.base_type.same_as?(rhs_type.base_type) W(expr.location) end end