22#ifndef GCC_DIAGNOSTIC_CORE_H
23#define GCC_DIAGNOSTIC_CORE_H
30#define DEFINE_DIAGNOSTIC_KIND(K, msgid, C) K,
31#include "diagnostic.def"
32#undef DEFINE_DIAGNOSTIC_KIND
82#define GCC_DIAG_STYLE __gcc_tdiag__
87#if (CHECKING_P && GCC_VERSION >= 4001) || GCC_VERSION == BUILDING_GCC_VERSION
88#define ATTRIBUTE_GCC_DIAG(m, n) __attribute__ ((__format__ (GCC_DIAG_STYLE, m, n))) ATTRIBUTE_NONNULL(m)
90#define ATTRIBUTE_GCC_DIAG(m, n) ATTRIBUTE_NONNULL(m)
101 unsigned HOST_WIDE_INT,
102 const
char *, const
char *, ...)
106 unsigned HOST_WIDE_INT,
107 const
char *, const
char *, ...)
123extern
void error_n (location_t,
unsigned HOST_WIDE_INT, const
char *,
127extern
void error_at (rich_location *, const
char *, ...)
158extern
void inform_n (location_t,
unsigned HOST_WIDE_INT, const
char *,
173 const
char *, va_list *)
186extern void fnotice (FILE *,
const char *, ...)
Definition diagnostic-core.h:45
~auto_diagnostic_group()
Definition diagnostic-global-context.cc:576
auto_diagnostic_group()
Definition diagnostic-global-context.cc:569
bool bool bool bool bool bool void void sorry_at(location_t, const char *,...) ATTRIBUTE_GCC_DIAG(2
void internal_error(const char *,...) ATTRIBUTE_GCC_DIAG(1
void bool emit_diagnostic(diagnostic_t, location_t, diagnostic_option_id, const char *,...) ATTRIBUTE_GCC_DIAG(4
bool pedwarn(location_t, diagnostic_option_id, const char *,...) ATTRIBUTE_GCC_DIAG(3
void internal_error_no_backtrace(const char *,...) ATTRIBUTE_GCC_DIAG(1
bool bool bool void void error_n(location_t, unsigned HOST_WIDE_INT, const char *, const char *,...) ATTRIBUTE_GCC_DIAG(3
const char * trim_filename(const char *)
Definition diagnostic.cc:1430
bool bool bool bool bool permerror_opt(location_t, diagnostic_option_id, const char *,...) ATTRIBUTE_GCC_DIAG(3
void bool bool bool bool emit_diagnostic_valist_meta(diagnostic_t, rich_location *, const diagnostic_metadata *, diagnostic_option_id, const char *, va_list *) ATTRIBUTE_GCC_DIAG(5
bool bool warning_n(location_t, diagnostic_option_id, unsigned HOST_WIDE_INT, const char *, const char *,...) ATTRIBUTE_GCC_DIAG(4
void void void void fatal_error(location_t, const char *,...) ATTRIBUTE_GCC_DIAG(2
void bool bool bool emit_diagnostic_valist(diagnostic_t, location_t, diagnostic_option_id, const char *, va_list *) ATTRIBUTE_GCC_DIAG(4
void verbatim(const char *,...) ATTRIBUTE_GCC_DIAG(1
bool bool bool void error(const char *,...) ATTRIBUTE_GCC_DIAG(1
void ATTRIBUTE_NORETURN
Definition diagnostic-core.h:93
void bool bool bool bool bool seen_error(void)
Definition diagnostic-global-context.cc:487
bool warning(diagnostic_option_id, const char *,...) ATTRIBUTE_GCC_DIAG(2
bool bool bool bool bool bool void sorry(const char *,...) ATTRIBUTE_GCC_DIAG(1
bool bool bool permerror(location_t, const char *,...) ATTRIBUTE_GCC_DIAG(2
void void void error_meta(rich_location *, const diagnostic_metadata &, const char *,...) ATTRIBUTE_GCC_DIAG(3
const char * progname
Definition diagnostic.cc:72
diagnostic_t
Definition diagnostic-core.h:29
@ DK_LAST_DIAGNOSTIC_KIND
Definition diagnostic-core.h:90
@ DK_ANY
Definition diagnostic-core.h:96
@ DK_POP
Definition diagnostic-core.h:93
bool bool bool bool bool bool void void void void void inform_n(location_t, unsigned HOST_WIDE_INT, const char *, const char *,...) ATTRIBUTE_GCC_DIAG(3
#define ATTRIBUTE_GCC_DIAG(m, n)
Definition diagnostic-core.h:88
bool bool bool bool bool bool void void void inform(location_t, const char *,...) ATTRIBUTE_GCC_DIAG(2
void error_at(location_t, const char *,...) ATTRIBUTE_GCC_DIAG(2
bool bool bool warning_meta(rich_location *, const diagnostic_metadata &, diagnostic_option_id, const char *,...) ATTRIBUTE_GCC_DIAG(4
bool warning_at(location_t, diagnostic_option_id, const char *,...) ATTRIBUTE_GCC_DIAG(3
void fnotice(FILE *file, const char *cmsgid,...)
Definition diagnostic-global-context.cc:546
Definition diagnostic-core.h:60
bool operator==(diagnostic_option_id other) const
Definition diagnostic-core.h:67
diagnostic_option_id()
Definition diagnostic-core.h:61
diagnostic_option_id(int idx)
Definition diagnostic-core.h:63
int m_idx
Definition diagnostic-core.h:72