class AdLint::Exam::CBuiltin::W1072

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 21686
def initialize(phase_ctxt)
  super
  trav = phase_ctxt[:cc1_ast_traversal]
  trav.enter_goto_statement += T(:warn_goto)
end

Private Instance Methods

warn_goto(node) click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 21693
def warn_goto(node)
   W(node.location)
end