diff options
author | David Malcolm <dmalcolm@redhat.com> | 2022-07-21 18:35:01 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-09-07 11:31:55 +0200 |
commit | 1ad5ae5a45f2e3fc6948b35a3b052fdd48453704 (patch) | |
tree | 6bab68c5a94c85bd7470ae6f2e991f0b2864fd00 /gcc/diagnostic-core.h | |
parent | 18c90eaa25363d34b5bef444fbbad04f5da2522d (diff) | |
download | gcc-1ad5ae5a45f2e3fc6948b35a3b052fdd48453704.zip gcc-1ad5ae5a45f2e3fc6948b35a3b052fdd48453704.tar.gz gcc-1ad5ae5a45f2e3fc6948b35a3b052fdd48453704.tar.bz2 |
diagnostics: add error_meta
gcc/ChangeLog:
* diagnostic-core.h (error_meta): New decl.
* diagnostic.cc (error_meta): New.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/diagnostic-core.h')
-rw-r--r-- | gcc/diagnostic-core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/diagnostic-core.h b/gcc/diagnostic-core.h index 7334c79..c9e27fd 100644 --- a/gcc/diagnostic-core.h +++ b/gcc/diagnostic-core.h @@ -92,6 +92,9 @@ extern void error_n (location_t, unsigned HOST_WIDE_INT, const char *, extern void error_at (location_t, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3); extern void error_at (rich_location *, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3); +extern void error_meta (rich_location *, const diagnostic_metadata &, + const char *, ...) + ATTRIBUTE_GCC_DIAG(3,4); extern void fatal_error (location_t, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3) ATTRIBUTE_NORETURN; /* Pass one of the OPT_W* from options.h as the second parameter. */ |