class AdLint::Exam::CBuiltin::W0689

Private Instance Methods

check(line_line) click to toggle source
# File lib/adlint/exam/c_builtin/cpp_check.rb, line 1205
def check(line_line)
  if fname_arg = file_name_argument(line_line)
    unless fname_arg.value =~ /\A".*"\z/
      W(fname_arg.location)
    end
  end
end
file_name_argument(line_line) click to toggle source
# File lib/adlint/exam/c_builtin/cpp_check.rb, line 1213
def file_name_argument(line_line)
  line_line.pp_tokens ? line_line.pp_tokens.tokens[1] : nil
end