class AdLint::Exam::CBuiltin::W0692
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 1261 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, args, *)
click to toggle source
# File lib/adlint/exam/c_builtin/cpp_check.rb, line 1268 def check(macro, repl_toks, args, *) unless macro.parameter_names.empty? if args.any? { |arg| arg.empty? } W(repl_toks.first.location, macro.name.value) end end end