class AdLint::Exam::CBuiltin::W0440
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 9298 def initialize(phase_ctxt) super trav = phase_ctxt[:cc1_ast_traversal] trav.enter_compound_statement += T(:check) end
Private Instance Methods
check(node)
click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 9305 def check(node) return if indent_style == INDENT_STYLE_K_AND_R unless node.head_location.appearance_column_no == node.tail_location.appearance_column_no W(node.tail_location) end end