class AdLint::Exam::CBuiltin::W0110

Public Class Methods

new(phase_ctxt) click to toggle source
Calls superclass method AdLint::Examination::new
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 2748
def initialize(phase_ctxt)
  super
  @interp = phase_ctxt[:cc1_interpreter]
  @interp.on_for_stmt_started     += T(:handle_for_statement)
  @interp.on_c99_for_stmt_started += T(:handle_for_statement)
end

Private Instance Methods

handle_for_statement(stmt) click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 2756
def handle_for_statement(stmt)
  stmt.accept(ForStatementAnalyzer.new(@phase_ctxt, @interp))
end