From 5248bdee7055056a9e30201da528990f90fd6850 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Tue, 10 Aug 2010 17:53:32 +0200 Subject: Added warning(), error, and fatal() to Parser.cpp --- src/shared/cplusplus/Parser.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared/cplusplus/Parser.h') diff --git a/src/shared/cplusplus/Parser.h b/src/shared/cplusplus/Parser.h index c383c2bda9..ec8a74538b 100644 --- a/src/shared/cplusplus/Parser.h +++ b/src/shared/cplusplus/Parser.h @@ -296,7 +296,11 @@ public: int peekAtQtContextKeyword() const; bool switchTemplateArguments(bool templateArguments); + bool blockErrors(bool block); + void warning(unsigned index, const char *format, ...); + void error(unsigned index, const char *format, ...); + void fatal(unsigned index, const char *format, ...); inline const Token &tok(int i = 1) const { return _translationUnit->tokenAt(_tokenIndex + i - 1); } -- cgit v1.2.1