class AdLint::Exam::CBuiltin::W0694
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 16026 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, *)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 16033 def check(funcall_expr, fun, *) W(funcall_expr.location) if fun.named? && fun.name == "assert" end