GCC Middle and Back End API Reference
diagnostic-url.h
Go to the documentation of this file.
1/* Copyright (C) 2019-2024 Free Software Foundation, Inc.
2 Contributed by David Malcolm <dmalcolm@redhat.com>.
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
8Software Foundation; either version 3, or (at your option) any later
9version.
10
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
19
20#ifndef GCC_DIAGNOSTIC_URL_H
21#define GCC_DIAGNOSTIC_URL_H
22
23/* Whether to add URLs to diagnostics:
24 - DIAGNOSTICS_URL_NO: never
25 - DIAGNOSTICS_URL_YES: always
26 - DIAGNOSTICS_URL_AUTO: depending on the output stream. */
33
34/* Tells whether URLs should be emitted, and, if so, how to
35 terminate strings within the escape sequence. */
37{
38 /* No URLs shall be emitted. */
40
41 /* Use ST string termination. */
43
44 /* Use BEL string termination. */
46};
47
49
51
52#endif /* ! GCC_DIAGNOSTIC_URL_H */
diagnostic_url_rule_t
Definition diagnostic-url.h:28
@ DIAGNOSTICS_URL_NO
Definition diagnostic-url.h:29
@ DIAGNOSTICS_URL_AUTO
Definition diagnostic-url.h:31
@ DIAGNOSTICS_URL_YES
Definition diagnostic-url.h:30
const diagnostic_url_format URL_FORMAT_DEFAULT
Definition diagnostic-url.h:48
diagnostic_url_format determine_url_format(diagnostic_url_rule_t)
Definition diagnostic-color.cc:337
diagnostic_url_format
Definition diagnostic-url.h:37
@ URL_FORMAT_NONE
Definition diagnostic-url.h:39
@ URL_FORMAT_ST
Definition diagnostic-url.h:42
@ URL_FORMAT_BEL
Definition diagnostic-url.h:45