X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=diagnostic.h;h=8b5ef7767c5b549c9669494b6548668e9f22e53a;hb=2fb66fd8bd2a5956ab2cad26978ccfb7e105d45f;hp=dec29d757d0679ba705b9266a3efd24379c30d32;hpb=e7471c9f3359738c01307ba5a3ec646839ec760d;p=cparser diff --git a/diagnostic.h b/diagnostic.h index dec29d7..8b5ef77 100644 --- a/diagnostic.h +++ b/diagnostic.h @@ -22,6 +22,7 @@ #include #include "token_t.h" +#include "warning.h" /* define a NORETURN attribute */ #ifndef NORETURN @@ -48,6 +49,8 @@ * %K token_t const* * %k token_kind_t * %#k va_list*, char const* + * %N entity_t const* + * %#N entity_t const* * %P source_position_t const* * %Q unsigned (qualifier) * %S string_t const* @@ -57,12 +60,12 @@ */ void diagnosticf(const char *fmt, ...); void errorf(const source_position_t *pos, const char *fmt, ...); -void warningf(const source_position_t *pos, const char *fmt, ...); +void warningf(warning_t, const source_position_t *pos, const char *fmt, ...); NORETURN internal_errorf(const source_position_t *pos, const char *fmt, ...); -extern unsigned diagnostic_count; extern unsigned error_count; extern unsigned warning_count; -extern bool show_column; /**< Show column in diagnostic messages */ +extern bool show_column; /**< Show column in diagnostic messages */ +extern bool diagnostics_show_option; /**< Show the switch, which controls a warning. */ #endif