class AdLint::Exam::CBuiltin::W0633

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 1089
def initialize(phase_ctxt)
  super
  trav = phase_ctxt[:cpp_ast_traversal]
  trav.enter_user_include_line      += T(:check)
  trav.enter_user_include_next_line += T(:check)
end

Private Instance Methods

check(include_line) click to toggle source
# File lib/adlint/exam/c_builtin/cpp_check.rb, line 1097
def check(include_line)
  if include_line.header_name.value =~ /'/
    W(include_line.location, include_line.header_name.value)
  end
end