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
45
46 // If true, show the .dot source used for the diagram
48};
49
52 line_maps *line_maps,
53 const char *base_file_name);
54
55extern std::unique_ptr<sink>
57 const line_maps &line_maps,
58 const html_generation_options &html_gen_opts,
59 output_file output_file_);
60
61extern void
63 const paths::path &path,
64 context &dc,
65 html_label_writer *event_label_writer,
66 const source_print_policy &dspp);
67
68} // namespace diagnostics
69
70#endif /* ! GCC_DIAGNOSTICS_HTML_SINK_H */
Definition diagnostics/context.h:253
Definition diagnostics/context.h:145
Definition output-file.h:32
Definition paths.h:207
Definition diagnostics/context.h:157
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:167
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:1490
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:1520
Definition html-sink.h:30
html_generation_options()
Definition html-sink.cc:57
bool m_show_state_diagrams
Definition html-sink.h:41
bool m_show_state_diagrams_sarif
Definition html-sink.h:44
void dump(FILE *out, int indent) const
Definition html-sink.cc:67
bool m_show_state_diagrams_dot_src
Definition html-sink.h:47
bool m_css
Definition html-sink.h:35
bool m_javascript
Definition html-sink.h:36