class AdLint::Exam::CBuiltin::W0493

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 10625
def initialize(phase_ctxt)
  super
  interp = phase_ctxt[:cc1_interpreter]
  interp.on_function_call_expr_evaled += T(:check)
end

Private Instance Methods

check(funcall_expr, fun, arg_vars, *) click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 10632
def check(funcall_expr, fun, arg_vars, *)
  if arg_vars.any? { |arg| arg.type.composite? }
    W(funcall_expr.location)
  end
end