#include <stdbool.h>
#include "token_t.h"
+#include "warning.h"
/* define a NORETURN attribute */
#ifndef NORETURN
/**
* Issue a diagnostic message.
* Format types:
- * %Y const symbol_t *
- * %E const expression_t *
- * %Q unsigned (qualifier)
- * %T const type_t*
- * %K const token_t*
- * %k token_kind_t
- * %P const source_position_t *
- * %S const string_t *
+ * %E expression_t const*
+ * %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*
+ * %T type_t const*
+ * %#T type_t const*, symbol_t const*
+ * %Y symbol_t const*
*/
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;