class AdLint::Exam::CBuiltin::W0808
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 1388 def initialize(phase_ctxt) super interp = phase_ctxt[:cpp_interpreter] interp.on_object_like_macro_defined += T(:check) @macro_tbl = phase_ctxt[:cpp_macro_table] end
Private Instance Methods
check(define_line, *)
click to toggle source
# File lib/adlint/exam/c_builtin/cpp_check.rb, line 1396 def check(define_line, *) id = define_line.identifier W(id.location, id.value) if @macro_tbl.lookup(id.value) end