summaryrefslogtreecommitdiffstats
path: root/src/vhdljjparser.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-03-27 16:22:58 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-03-27 16:22:58 (GMT)
commit12ea0367d27b47280e8d768d04c8c332e9657491 (patch)
treeab80c9b5357b12716ee6331a1e6bb2e8c48d05ed /src/vhdljjparser.cpp
parent7e2fcd305c8c9377aa958a3d812cc31bc81c0e32 (diff)
downloadDoxygen-12ea0367d27b47280e8d768d04c8c332e9657491.zip
Doxygen-12ea0367d27b47280e8d768d04c8c332e9657491.tar.gz
Doxygen-12ea0367d27b47280e8d768d04c8c332e9657491.tar.bz2
Making VHDL error messages more doxygen like
Diffstat (limited to 'src/vhdljjparser.cpp')
-rw-r--r--src/vhdljjparser.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vhdljjparser.cpp b/src/vhdljjparser.cpp
index 953cd6b..34391b5 100644
--- a/src/vhdljjparser.cpp
+++ b/src/vhdljjparser.cpp
@@ -83,6 +83,7 @@ static struct
static bool doxComment=FALSE; // doxygen comment ?
static QCString strComment;
static int iCodeLen;
+static const char *vhdlFileName = 0;
bool checkMultiComment(QCString& qcs,int line);
QList<Entry>* getEntryAtLine(const Entry* ce,int line);
@@ -200,6 +201,7 @@ void VHDLLanguageScanner::parseInput(const char *fileName,const char *fileBuf,En
VhdlParser::current=new Entry();
VhdlParser::initEntry(VhdlParser::current);
groupEnterFile(fileName,yyLineNr);
+ vhdlFileName = fileName;
lineParse=new int[200]; // Dimitri: dangerous constant: should be bigger than largest token id in VhdlParserConstants.h
VhdlParserIF::parseVhdlfile(fileBuf,inLine);
@@ -213,6 +215,7 @@ void VHDLLanguageScanner::parseInput(const char *fileName,const char *fileBuf,En
yyFileName.resize(0);
libUse.clear();
VhdlDocGen::resetCodeVhdlParserState();
+ vhdlFileName = 0;
}
void VhdlParser::lineCount()
@@ -851,3 +854,7 @@ QList<Entry>* getEntryAtLine(const Entry* ce,int line)
return &lineEntry;
}
+const char *getVhdlFileName(void)
+{
+ return vhdlFileName;
+}