GCC Middle and Back End API Reference
|
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "diagnostic.h"
#include "diagnostic-macro-unwinding.h"
#include "intl.h"
#include "diagnostic-path.h"
#include "gcc-rich-location.h"
#include "diagnostic-color.h"
#include "diagnostic-event-id.h"
#include "diagnostic-label-effects.h"
#include "pretty-print-markup.h"
#include "selftest.h"
#include "selftest-diagnostic.h"
#include "selftest-diagnostic-path.h"
#include "text-art/theme.h"
#include "diagnostic-format-text.h"
#include "diagnostic-format-html.h"
#include "xml.h"
#include "xml-printer.h"
Data Structures | |
class | element_event_desc |
Macros | |
#define | INCLUDE_ALGORITHM |
#define | INCLUDE_MAP |
#define | INCLUDE_STRING |
#define | INCLUDE_VECTOR |
Functions | |
void | print_path_as_html (xml::printer &xp, const diagnostic_path &path, diagnostic_context &dc, html_label_writer *event_label_writer, const diagnostic_source_print_policy &dspp) |
#define INCLUDE_ALGORITHM |
Printing paths through the code associated with a diagnostic. Copyright (C) 2019-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/>.
#define INCLUDE_MAP |
#define INCLUDE_STRING |
#define INCLUDE_VECTOR |
void print_path_as_html | ( | xml::printer & | xp, |
const diagnostic_path & | path, | ||
diagnostic_context & | dc, | ||
html_label_writer * | event_label_writer, | ||
const diagnostic_source_print_policy & | dspp ) |
Print PATH as HTML to XP, using DC and DSPP for settings. If non-null, use EVENT_LABEL_WRITER when writing events.
References diagnostic_source_print_policy::get_options(), diagnostic_context::get_reference_printer(), path, diagnostic_source_printing_options::show_event_links_p, and diagnostic_context::show_path_depths_p().
Referenced by html_builder::make_element_for_diagnostic().