class AdLint::Exam::CBuiltin::W1033
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 20712 def initialize(phase_ctxt) super trav = phase_ctxt[:cc1_ast_traversal] trav.enter_ansi_function_definition += T(:check) trav.enter_kandr_function_definition += T(:check) trav.enter_function_declaration += T(:check) end
Private Instance Methods
check(dcl_or_def)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 20721 def check(dcl_or_def) if ret_type = dcl_or_def.type.return_type if ret_type.const? || ret_type.volatile? W(dcl_or_def.location) end end end