]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/diagnostic-url.h
pretty-print: support URL escape sequences (PR 87488)
[thirdparty/gcc.git] / gcc / diagnostic-url.h
CommitLineData
d2608235
DM
1/* Copyright (C) 2019 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. */
27typedef enum
28{
29 DIAGNOSTICS_URL_NO = 0,
30 DIAGNOSTICS_URL_YES = 1,
31 DIAGNOSTICS_URL_AUTO = 2
32} diagnostic_url_rule_t;
33
34extern bool diagnostic_urls_enabled_p (diagnostic_url_rule_t);
35
36#endif /* ! GCC_DIAGNOSTIC_URL_H */