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
94#define GCC_DIAG_STYLE __gcc_tdiag__
99#if (CHECKING_P && GCC_VERSION >= 4001) || GCC_VERSION == BUILDING_GCC_VERSION
100#define ATTRIBUTE_GCC_DIAG(m, n) __attribute__ ((__format__ (GCC_DIAG_STYLE, m, n))) ATTRIBUTE_NONNULL(m)
102#define ATTRIBUTE_GCC_DIAG(m, n) ATTRIBUTE_NONNULL(m)
113 unsigned HOST_WIDE_INT,
114 const
char *, const
char *, ...)
118 unsigned HOST_WIDE_INT,
119 const
char *, const
char *, ...)
135extern
void error_n (location_t,
unsigned HOST_WIDE_INT, const
char *,
139extern
void error_at (rich_location *, const
char *, ...)
170extern
void inform_n (location_t,
unsigned HOST_WIDE_INT, const
char *,
185 const
char *, va_list *)
198extern void fnotice (FILE *,
const char *, ...)
Definition diagnostic-core.h:45
~auto_diagnostic_group()
Definition diagnostic-global-context.cc:574
auto_diagnostic_group()
Definition diagnostic-global-context.cc:567
Definition diagnostic-core.h:57
auto_diagnostic_nesting_level()
Definition diagnostic-global-context.cc:581
~auto_diagnostic_nesting_level()
Definition diagnostic-global-context.cc:586
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:1548
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:105
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:73
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:100
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:72
bool operator==(diagnostic_option_id other) const
Definition diagnostic-core.h:79
diagnostic_option_id()
Definition diagnostic-core.h:73
diagnostic_option_id(int idx)
Definition diagnostic-core.h:75
int m_idx
Definition diagnostic-core.h:84