summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-02-16 15:19:37 (GMT)
committerGitHub <noreply@github.com>2020-02-16 15:19:37 (GMT)
commit47f449c5f94b14cc6fe9081212a5ecdb61964233 (patch)
treef285a5aa0df439b15c6dc7bd6994b2ecf4a75e87
parent80bcbbb8702634d0078a37e44a1ab263b8f8336f (diff)
parent5bda6a19dcb48720ee57fc099f7ad14e4ad15b0a (diff)
downloadDoxygen-47f449c5f94b14cc6fe9081212a5ecdb61964233.zip
Doxygen-47f449c5f94b14cc6fe9081212a5ecdb61964233.tar.gz
Doxygen-47f449c5f94b14cc6fe9081212a5ecdb61964233.tar.bz2
Merge pull request #7599 from albert-github/feature/bug_vhdl_warnings
Warnings in case of a VHDL error
-rw-r--r--vhdlparser/VhdlParserErrorHandler.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/vhdlparser/VhdlParserErrorHandler.hpp b/vhdlparser/VhdlParserErrorHandler.hpp
index 0337f1f..efdf20e 100644
--- a/vhdlparser/VhdlParserErrorHandler.hpp
+++ b/vhdlparser/VhdlParserErrorHandler.hpp
@@ -18,21 +18,21 @@ class VhdlErrorHandler: public ErrorHandler
public:
VhdlErrorHandler(const char *fileName) : m_fileName(fileName) {}
- virtual void handleUnexpectedToken(int expectedKind, JAVACC_STRING_TYPE expectedToken, Token *actual, VhdlParser *parser)
+ virtual void handleUnexpectedToken(int expectedKind, const JJString& expectedToken, Token *actual, VhdlParser *parser)
{
warn(m_fileName,actual->beginLine,"syntax error '%s'",actual->image.data());
error_count++;
throw std::exception();
}
- virtual void handleParseError(Token *last, Token *unexpected, JAVACC_SIMPLE_STRING production, VhdlParser *parser)
+ virtual void handleParseError(Token *last, Token *unexpected, const JJSimpleString& production, VhdlParser *parser)
{
warn(m_fileName,last->beginLine,"unexpected token: '%s'", unexpected->image.data());
error_count++;
throw std::exception();
}
- virtual void handleOtherError(JAVACC_STRING_TYPE message, VhdlParser *parser)
+ virtual void handleOtherError(const JJString& message, VhdlParser *parser)
{
warn(m_fileName, -1, "unexpected error: '%s'", (char*)message.c_str());
error_count++;
@@ -48,12 +48,12 @@ class VhdlTokenManagerErrorHandler: public TokenManagerErrorHandler
public:
VhdlTokenManagerErrorHandler(const char *fileName) : m_fileName(fileName) {}
- virtual void lexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, JAVACC_STRING_TYPE errorAfter, JAVACC_CHAR_TYPE curChar, VhdlParserTokenManager* token_manager)
+ virtual void lexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, const JJString& errorAfter, JJChar curChar, VhdlParserTokenManager* token_manager)
{
warn(m_fileName,errorLine,"Lexical error, Encountered: '%c' after: '%s'",curChar, (EOFSeen? "EOF" : (const char*)errorAfter.c_str()));
}
- virtual void lexicalError(JAVACC_STRING_TYPE errorMessage, VhdlParserTokenManager* token_manager)
+ virtual void lexicalError(const JJString& errorMessage, VhdlParserTokenManager* token_manager)
{
warn(m_fileName,-1,"Unknown error: '%s'", (char*)errorMessage.c_str());
}