summaryrefslogtreecommitdiffstats
path: root/src/vhdljjparser.cpp
diff options
context:
space:
mode:
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 deca239..706e8db 100644
--- a/src/vhdljjparser.cpp
+++ b/src/vhdljjparser.cpp
@@ -82,6 +82,7 @@ static struct
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);
@@ -146,6 +147,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);
@@ -159,6 +161,7 @@ void VHDLLanguageScanner::parseInput(const char *fileName,const char *fileBuf,En
yyFileName.resize(0);
libUse.clear();
VhdlDocGen::resetCodeVhdlParserState();
+ vhdlFileName = 0;
}
void VhdlParser::lineCount()
@@ -747,3 +750,7 @@ QList<Entry>* getEntryAtLine(const Entry* ce,int line)
return &lineEntry;
}
+const char *getVhdlFileName(void)
+{
+ return vhdlFileName;
+}