From 52fb4cd5bb085960476e0cd256cc81db1370839d Mon Sep 17 00:00:00 2001 From: Andreas Regel Date: Mon, 4 Dec 2017 08:34:17 +0100 Subject: Fix not initialized pointer when parser is starting on a new file. The pointer oldEntry holds the last value of VhdlParser::current and is compared to detect comment blocks that belong together. This could lead to false positives when a new file is parsed and the new entry in VhdlParser::current has by change the same pointer value as the old entry. Doxygen warning like "warning: Found unknown command `\brief'" are the consequence that leads to concatenated brief and detailed description in the resulting output. --- src/vhdljjparser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vhdljjparser.cpp b/src/vhdljjparser.cpp index fdba5e2..953cd6b 100644 --- a/src/vhdljjparser.cpp +++ b/src/vhdljjparser.cpp @@ -196,6 +196,7 @@ void VHDLLanguageScanner::parseInput(const char *fileName,const char *fileBuf,En VhdlParser::lastEntity=0; VhdlParser::currentCompound=0; VhdlParser::lastEntity=0; + oldEntry = 0; VhdlParser::current=new Entry(); VhdlParser::initEntry(VhdlParser::current); groupEnterFile(fileName,yyLineNr); -- cgit v0.12