class AdLint::Exam::CBuiltin::W0528
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 843 def initialize(phase_ctxt) super interp = phase_ctxt[:cpp_interpreter] interp.on_object_like_macro_defined += T(:check) end
Private Instance Methods
check(*, macro)
click to toggle source
# File lib/adlint/exam/c_builtin/cpp_check.rb, line 850 def check(*, macro) if repl_list = macro.replacement_list octal_tok = repl_list.tokens.find { |pp_tok| pp_tok.value =~ /\A0[0-9]+[UL]*\z/i } W(octal_tok.location) if octal_tok end end