class AdLint::Exam::CBuiltin::W0632
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 1067 def initialize(phase_ctxt) super trav = phase_ctxt[:cpp_ast_traversal] 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 1075 def check(include_line) if include_line.header_name.value =~ /['"]/ W(include_line.location, include_line.header_name.value) end end