22 #ifndef GCC_DIAGNOSTIC_CORE_H
23 #define GCC_DIAGNOSTIC_CORE_H
31 #define DEFINE_DIAGNOSTIC_KIND(K, msgid, C) K,
32 #include "diagnostic.def"
33 #undef DEFINE_DIAGNOSTIC_KIND
34 DK_LAST_DIAGNOSTIC_KIND,
46 #ifndef GCC_DIAG_STYLE
47 #define GCC_DIAG_STYLE __gcc_tdiag__
52 #if (ENABLE_CHECKING && GCC_VERSION >= 4001) || GCC_VERSION == BUILDING_GCC_VERSION
53 #define ATTRIBUTE_GCC_DIAG(m, n) __attribute__ ((__format__ (GCC_DIAG_STYLE, m, n))) ATTRIBUTE_NONNULL(m)
55 #define ATTRIBUTE_GCC_DIAG(m, n) ATTRIBUTE_NONNULL(m)
62 ATTRIBUTE_GCC_DIAG(3,4);
63 extern
void error (const
char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
64 extern
void error_n (location_t,
int, const
char *, const
char *, ...)
65 ATTRIBUTE_GCC_DIAG(3,5) ATTRIBUTE_GCC_DIAG(4,5);
66 extern
void error_at (location_t, const
char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
67 extern
void fatal_error (const
char *, ...) ATTRIBUTE_GCC_DIAG(1,2)
70 extern
bool pedwarn (location_t,
int, const
char *, ...)
71 ATTRIBUTE_GCC_DIAG(3,4);
72 extern
bool permerror (location_t, const
char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
73 extern
void sorry (const
char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
74 extern
void inform (location_t, const
char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
75 extern
void inform_n (location_t,
int, const
char *, const
char *, ...)
76 ATTRIBUTE_GCC_DIAG(3,5) ATTRIBUTE_GCC_DIAG(4,5);
77 extern
void verbatim (const
char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
79 const
char *, ...) ATTRIBUTE_GCC_DIAG(4,5);
85 extern void fnotice (FILE *,
const char *, ...)