class RuboCop::Formatter::ClangStyleFormatter

def report_offense(file, offense)

def report_offense(file, offense)
  output.printf("%s:%d:%d: %s: %s\n",
                cyan(smart_path(file)), offense.line, offense.real_column,
                colored_severity_code(offense), message(offense))
  # rubocop:disable Lint/HandleExceptions
  begin
    return unless valid_line?(offense)
    report_line(offense.location)
    report_highlighted_area(offense.highlighted_area)
  rescue IndexError
    # range is not on a valid line; perhaps the source file is empty
  end
  # rubocop:enable Lint/HandleExceptions
end