class AdLint::Exam::CBuiltin::W0634

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 1111
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)
  trav.enter_system_include_line      += T(:check)
  trav.enter_system_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 1121
def check(include_line)
  if include_line.header_name.value.include?("\\")
    W(include_line.location)
  end
end