diff options
author | hake <mkreis@gmx.net> | 2020-02-04 16:14:38 (GMT) |
---|---|---|
committer | hake <mkreis@gmx.net> | 2020-02-04 16:14:38 (GMT) |
commit | abd887af5cb3e70f801848adb87c70642e6fb1dc (patch) | |
tree | 826e45f63e77927655561a40341a475180b7730f /src/vhdljjparser.cpp | |
parent | 59fc1a94e84278dedc80569b72756f336a705693 (diff) | |
download | Doxygen-abd887af5cb3e70f801848adb87c70642e6fb1dc.zip Doxygen-abd887af5cb3e70f801848adb87c70642e6fb1dc.tar.gz Doxygen-abd887af5cb3e70f801848adb87c70642e6fb1dc.tar.bz2 |
vhdl-fixed-bug-7432
Diffstat (limited to 'src/vhdljjparser.cpp')
-rw-r--r-- | src/vhdljjparser.cpp | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/src/vhdljjparser.cpp b/src/vhdljjparser.cpp index 6e5f318..cf6e294 100644 --- a/src/vhdljjparser.cpp +++ b/src/vhdljjparser.cpp @@ -233,6 +233,23 @@ void VHDLOutlineParser::newEntry() initEntry(s->current.get()); } +static int idCounter; + +/** returns a unique id for each record member. +* +* type first_rec is record +* RE: data_type; +* end; +* +* type second_rec is record +* RE: data_type; +* end; +*/ + +QString VHDLOutlineParser::getNameID(){ + return QString::number(idCounter++,10); +} + void VHDLOutlineParser::handleFlowComment(const char* doc) { lineCount(doc); @@ -251,7 +268,6 @@ void VHDLOutlineParser::handleCommentBlock(const char* doc1,bool brief) { VhdlParser::SharedState *s = &p->shared; QCString doc = doc1; - // fprintf(stderr,"\n %s",doc.data()); if (doc.isEmpty()) return; if (checkMultiComment(doc,p->yyLineNr)) @@ -284,8 +300,7 @@ void VHDLOutlineParser::handleCommentBlock(const char* doc1,bool brief) { s->current->docLine = p->yyLineNr; } - // printf("parseCommentBlock file<%s>\n [%s]\n at line [%d] \n ",yyFileName.data(),doc.data(),p->iDocLine); - + int j=doc.find("[plant]"); if (j>=0) { @@ -296,7 +311,7 @@ void VHDLOutlineParser::handleCommentBlock(const char* doc1,bool brief) int position=0; bool needsEntry=FALSE; QCString processedDoc = processMarkdownForCommentBlock(doc,p->yyFileName,p->iDocLine); - while (p->commentScanner.parseCommentBlock( + while (p->commentScanner.parseCommentBlock( p->thisParser, s->current.get(), processedDoc, // text @@ -311,7 +326,6 @@ void VHDLOutlineParser::handleCommentBlock(const char* doc1,bool brief) ) ) { - //printf("parseCommentBlock position=%d [%s]\n",position,doc.data()+position); if (needsEntry) newEntry(); } if (needsEntry) |