class AdLint::Exam::CBuiltin::W0687
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 1154 def initialize(phase_ctxt) super interp = phase_ctxt[:cpp_interpreter] interp.on_macro_undefined += T(:check) end
Private Instance Methods
check(undef_line, *)
click to toggle source
# File lib/adlint/exam/c_builtin/cpp_check.rb, line 1161 def check(undef_line, *) if undef_line.identifier.value == "defined" W(undef_line.identifier.location) end end