class AdLint::Exam::CBuiltin::W1076
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 21840 def initialize(phase_ctxt) super interp = phase_ctxt[:cc1_interpreter] interp.on_explicit_function_defined += T(:define_function) end
Private Instance Methods
define_function(fun_def, fun)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 21847 def define_function(fun_def, fun) if fun.named? && fun.declared_as_static? anterior_dcls = fun.declarations_and_definitions.reject { |dcl| dcl == fun_def } if anterior_dcls.empty? W(fun_def.location, fun.name) end end end