Mercurial > hg > CbC > CbC_gcc
diff gcc/diagnostic.h @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 84e7813d76e9 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/diagnostic.h Thu Oct 25 08:08:40 2018 +0900 +++ b/gcc/diagnostic.h Thu Oct 25 10:21:07 2018 +0900 @@ -1,5 +1,5 @@ /* Various declarations for language-independent diagnostics subroutines. - Copyright (C) 2000-2017 Free Software Foundation, Inc. + Copyright (C) 2000-2018 Free Software Foundation, Inc. Contributed by Gabriel Dos Reis <gdr@codesourcery.com> This file is part of GCC. @@ -204,6 +204,17 @@ a token, which would look strange). */ bool colorize_source_p; + /* When printing source code, should labelled ranges be printed? */ + bool show_labels_p; + + /* When printing source code, should there be a left-hand margin + showing line numbers? */ + bool show_line_numbers_p; + + /* If printing source code, what should the minimum width of the margin + be? Line numbers will be right-aligned, and padded to this width. */ + int min_margin_width; + /* Usable by plugins; if true, print a debugging ruler above the source output. */ bool show_ruler_p; @@ -215,6 +226,23 @@ /* If non-NULL, an edit_context to which fix-it hints should be applied, for generating patches. */ edit_context *edit_context_ptr; + + /* How many diagnostic_group instances are currently alive. */ + int diagnostic_group_nesting_depth; + + /* How many diagnostics have been emitted since the bottommost + diagnostic_group was pushed. */ + int diagnostic_group_emission_count; + + /* Optional callbacks for handling diagnostic groups. */ + + /* If non-NULL, this will be called immediately before the first + time a diagnostic is emitted within a stack of groups. */ + void (*begin_group_cb) (diagnostic_context * context); + + /* If non-NULL, this will be called when a stack of groups is + popped if any diagnostics were emitted within that group. */ + void (*end_group_cb) (diagnostic_context * context); }; static inline void @@ -250,6 +278,10 @@ and similar functions. */ extern diagnostic_context *global_dc; +/* Returns whether the diagnostic framework has been intialized already and is + ready for use. */ +#define diagnostic_ready_p() (global_dc->printer != NULL) + /* The total count of a KIND of diagnostics emitted so far. */ #define diagnostic_kind_count(DC, DK) (DC)->diagnostic_count[(int) (DK)]