GCC Middle and Back End API Reference
html-sink.cc File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "diagnostic.h"
#include "diagnostics/metadata.h"
#include "diagnostics/sink.h"
#include "diagnostics/html-sink.h"
#include "diagnostics/text-sink.h"
#include "diagnostics/sarif-sink.h"
#include "diagnostics/output-file.h"
#include "diagnostics/buffering.h"
#include "diagnostics/paths.h"
#include "diagnostics/dumping.h"
#include "diagnostics/logging.h"
#include "diagnostics/client-data-hooks.h"
#include "selftest.h"
#include "diagnostics/selftest-context.h"
#include "pretty-print-format-impl.h"
#include "pretty-print-urlifier.h"
#include "diagnostics/changes.h"
#include "intl.h"
#include "xml.h"
#include "xml-printer.h"
#include "diagnostics/digraphs.h"
#include "diagnostics/state-graphs.h"
#include "graphviz.h"
#include "json.h"
#include "selftest-xml.h"
Include dependency graph for html-sink.cc:

Data Structures

class  diagnostics::html_sink_buffer
class  diagnostics::html_builder
struct  diagnostics::html_doctypedecl
class  diagnostics::html_path_label_writer
class  diagnostics::html_token_printer
class  diagnostics::html_sink
class  diagnostics::html_file_sink

Namespaces

namespace  diagnostics

Macros

#define INCLUDE_MAP
#define INCLUDE_STRING
#define INCLUDE_VECTOR

Functions

static std::unique_ptr< xml::elementdiagnostics::make_div (std::string class_)
static std::unique_ptr< xml::elementdiagnostics::make_span (std::string class_)
static void diagnostics::add_nesting_level_attr (xml::element &element, int nesting_level)
static void diagnostics::print_pre_source (xml::printer &xp, const char *text)
static const char * diagnostics::get_pf_class_for_alert_div (enum kind diag_kind)
static const char * diagnostics::get_pf_class_for_alert_icon (enum kind diag_kind)
static const char * diagnostics::get_label_for_logical_location_kind (enum logical_locations::kind kind)
static void diagnostics::add_labelled_value (xml::printer &xp, std::string id, std::string label, std::string value, bool quote_value)
output_file diagnostics::open_html_output_file (context &dc, line_maps *line_maps, const char *base_file_name)
std::unique_ptr< sinkdiagnostics::make_html_sink (context &dc, const line_maps &line_maps, const html_generation_options &html_gen_opts, output_file output_file_)

Variables

static const char *const diagnostics::HTML_STYLE
const char *const diagnostics::HTML_SCRIPT

Macro Definition Documentation

◆ INCLUDE_MAP

#define INCLUDE_MAP
HTML output for diagnostics.
   Copyright (C) 2024-2025 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/>.   

◆ INCLUDE_STRING

#define INCLUDE_STRING

◆ INCLUDE_VECTOR

#define INCLUDE_VECTOR