class AdLint::Exam::CBuiltin::W0457
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 9523 def initialize(phase_ctxt) super trav = phase_ctxt[:cc1_ast_traversal] trav.enter_function_declaration += T(:check_function) trav.enter_ansi_function_definition += T(:check_function) trav.enter_kandr_function_definition += T(:check_function) end
Private Instance Methods
check_function(node)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 9532 def check_function(node) W(node.location) if node.implicitly_typed? end