class AdLint::Exam::CBuiltin::W1070

Private Instance Methods

add_exec_path(*) click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 21632
def add_exec_path(*)
  @exec_path_nums[-1] += 1
end
check(node) click to toggle source
# File lib/adlint/exam/c_builtin/cc1_check.rb, line 21625
def check(node)
  if exec_path_num = @exec_path_nums.last and exec_path_num == 2
    W(node.location)
  end
  @exec_path_nums.pop
end