GCC Middle and Back End API Reference
html-sink.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_DIAGNOSTICS_HTML_SINK_H
22#define GCC_DIAGNOSTICS_HTML_SINK_H
23
24#include "diagnostics/sink.h"
26
27namespace diagnostics {
28
30{
32
33 void dump (FILE *out, int indent) const;
34
35 bool m_css;
37
38 // Debugging options:
39
40 // If true, attempt to show state diagrams at events
42
43 /* If true, show the SARIF form of the state with such diagrams,
44 and of other graphs. */
46
47 // If true, show the .dot source used for such graphs
49};
50
53 line_maps *line_maps,
54 const char *base_file_name);
55
56extern std::unique_ptr<sink>
58 const line_maps &line_maps,
59 const html_generation_options &html_gen_opts,
60 output_file output_file_);
61
62extern void
64 const paths::path &path,
65 context &dc,
66 html_label_writer *event_label_writer,
67 const source_print_policy &dspp);
68
69} // namespace diagnostics
70
71#endif /* ! GCC_DIAGNOSTICS_HTML_SINK_H */
Definition diagnostics/context.h:254
Definition diagnostics/context.h:146
Definition output-file.h:32
Definition paths.h:207
Definition diagnostics/context.h:158
Definition xml-printer.h:33
static struct path_prefix cpath path
Definition collect2.cc:514
static const char * base_file_name(const char *file_name)
Definition genautomata.cc:9229
Definition coretypes.h:169
void print_path_as_html(xml::printer &xp, const paths::path &path, context &dc, html_label_writer *event_label_writer, const source_print_policy &dspp)
Definition paths-output.cc:1386
output_file open_html_output_file(context &dc, line_maps *line_maps, const char *base_file_name)
Definition html-sink.cc:1509
std::unique_ptr< sink > make_html_sink(context &dc, const line_maps &line_maps, const html_generation_options &html_gen_opts, output_file output_file_)
Definition html-sink.cc:1539
Definition html-sink.h:30
html_generation_options()
Definition html-sink.cc:56
bool m_show_graph_dot_src
Definition html-sink.h:48
bool m_show_state_diagrams
Definition html-sink.h:41
void dump(FILE *out, int indent) const
Definition html-sink.cc:66
bool m_css
Definition html-sink.h:35
bool m_javascript
Definition html-sink.h:36
bool m_show_graph_sarif
Definition html-sink.h:45