GCC Middle and Back End API Reference
|
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "version.h"
#include "intl.h"
#include "libgdiagnostics++.h"
#include "libsarifreplay.h"
Data Structures | |
struct | options |
Macros | |
#define | INCLUDE_VECTOR |
Functions | |
static void | set_defaults (replay_options &replay_opts) |
static void | print_version () |
static void | print_usage () |
static bool | parse_options (int argc, char **argv, options &opts, libgdiagnostics::text_sink control_text_sink) |
static const char * | get_progname (const char *argv0) |
int | main (int argc, char **argv) |
Variables | |
static const char * | progname |
static const char *const | usage_msg |
#define INCLUDE_VECTOR |
A program for re-emitting diagnostics saved in SARIF form. Copyright (C) 2022-2024 Free Software Foundation, Inc. Contributed by David Malcolm <dmalcolm@redhat.com>. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
|
static |
Referenced by main().
int main | ( | int | argc, |
char ** | argv ) |
Entrypoint to sarif-replay command-line tool.
References libgdiagnostics::manager::add_text_sink(), libgdiagnostics::manager::begin_diagnostic(), DIAGNOSTIC_COLORIZE_IF_TTY, DIAGNOSTIC_LEVEL_NOTE, libgdiagnostics::diagnostic::finish(), get_progname(), replay_options::m_diagnostics_colorize, libgdiagnostics::manager::m_inner, options::m_replay_opts, options::m_sarif_filenames, replay_options::m_verbose, parse_options(), print_usage(), progname, sarif_replay_path(), and libgdiagnostics::manager::set_tool_name().
|
static |
References libgdiagnostics::manager::add_text_sink(), libgdiagnostics::manager::begin_diagnostic(), DIAGNOSTIC_COLORIZE_IF_TTY, DIAGNOSTIC_COLORIZE_NO, DIAGNOSTIC_COLORIZE_YES, DIAGNOSTIC_LEVEL_ERROR, libgdiagnostics::diagnostic::finish(), i, replay_options::m_diagnostics_colorize, replay_options::m_echo_file, replay_options::m_json_comments, options::m_replay_opts, options::m_sarif_filenames, replay_options::m_verbose, option(), print_usage(), print_version(), libgdiagnostics::text_sink::set_colorize(), and libgdiagnostics::manager::set_tool_name().
Referenced by main().
|
static |
References usage_msg.
Referenced by main(), and parse_options().
|
static |
Referenced by parse_options().
|
static |
|
static |
Referenced by main(), and print_version().
|
static |
Referenced by print_usage().