class AdLint::Exam::CBuiltin::W0577
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 1042 def initialize(phase_ctxt) super interp = phase_ctxt[:cpp_interpreter] interp.on_unlexable_char_found += M(:check) @warned = false end
Private Instance Methods
check(*, loc)
click to toggle source
# File lib/adlint/exam/c_builtin/cpp_check.rb, line 1050 def check(*, loc) if loc.in_analysis_target?(traits) unless @warned W(loc, loc.fpath) @warned = true end end end