class AdLint::Exam::CBuiltin::W0057
Public Class Methods
new(phase_ctxt)
click to toggle source
Calls superclass method
AdLint::Examination::new
# File lib/adlint/exam/c_builtin/cpp_check.rb, line 246 def initialize(phase_ctxt) super macro_table = phase_ctxt[:cpp_macro_table] macro_table.on_function_like_macro_replacement += T(:check) end
Private Instance Methods
check(macro, repl_toks, *)
click to toggle source
# File lib/adlint/exam/c_builtin/cpp_check.rb, line 253 def check(macro, repl_toks, *) W(repl_toks.first.location) if macro.parameter_names.size > 31 end