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