GCC Middle and Back End API Reference
diagnostic-format-html.h
Go to the documentation of this file.
1/* HTML output for diagnostics.
2 Copyright (C) 2024-2025 Free Software Foundation, Inc.
3 Contributed by David Malcolm <dmalcolm@redhat.com>.
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 3, or (at your option) any later
10version.
11
12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING3. If not see
19<http://www.gnu.org/licenses/>. */
20
21#ifndef GCC_DIAGNOSTIC_FORMAT_HTML_H
22#define GCC_DIAGNOSTIC_FORMAT_HTML_H
23
24#include "diagnostic-format.h"
26
28{
30
31 bool m_css;
33
34 // Debugging options:
35
36 // If true, attempt to show state diagrams at events
38
39 // If true, show the XML form of the state with such diagrams
41
42 // If true, show the .dot source used for the diagram
44};
45
48 line_maps *line_maps,
49 const char *base_file_name);
50
51extern std::unique_ptr<diagnostic_output_format>
53 const line_maps &line_maps,
54 const html_generation_options &html_gen_opts,
56
57extern void
59 const diagnostic_path &path,
61 html_label_writer *event_label_writer,
63
64#endif /* ! GCC_DIAGNOSTIC_FORMAT_HTML_H */
Definition diagnostic.h:545
Definition diagnostic-output-file.h:28
Definition diagnostic-path.h:198
Definition diagnostic.h:430
Definition diagnostic.h:418
Definition xml-printer.h:33
static const char * output_file
Definition collect2.cc:215
static struct path_prefix cpath path
Definition collect2.cc:514
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)
Definition diagnostic-path-output.cc:1383
diagnostic_output_file diagnostic_output_format_open_html_file(diagnostic_context &context, line_maps *line_maps, const char *base_file_name)
Definition diagnostic-format-html.cc:1396
std::unique_ptr< diagnostic_output_format > make_html_sink(diagnostic_context &context, const line_maps &line_maps, const html_generation_options &html_gen_opts, diagnostic_output_file output_file)
Definition diagnostic-format-html.cc:1426
static const char * base_file_name(const char *file_name)
Definition genautomata.cc:9229
Definition diagnostic-format-html.h:28
bool m_css
Definition diagnostic-format-html.h:31
bool m_javascript
Definition diagnostic-format-html.h:32
bool m_show_state_diagram_xml
Definition diagnostic-format-html.h:40
bool m_show_state_diagrams
Definition diagnostic-format-html.h:37
html_generation_options()
Definition diagnostic-format-html.cc:51
bool m_show_state_diagram_dot_src
Definition diagnostic-format-html.h:43