summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2015-03-22 17:53:24 (GMT)
committeralbert-github <albert.tests@gmail.com>2015-03-22 17:53:24 (GMT)
commite4c0036962d8fa0ea9c1e38dbdb5e91168201f22 (patch)
tree7688f80b4a1e2503717a80a2b1c9e06962f19602
parentf0934859ee0c93cbbcfcd48e313dc18c18ac9b0c (diff)
downloadDoxygen-e4c0036962d8fa0ea9c1e38dbdb5e91168201f22.zip
Doxygen-e4c0036962d8fa0ea9c1e38dbdb5e91168201f22.tar.gz
Doxygen-e4c0036962d8fa0ea9c1e38dbdb5e91168201f22.tar.bz2
Bug 746614 - Bogus warning regarding nested comments
In case the previous file gives a warning regarding the wrong used nested comments and the next file does not have any doxygen comment there is still the message that there is a nested comment but even without probable line numbers. The variable counting the nested comment level was not reset, this has been corrected with this patch.
-rw-r--r--src/commentcnv.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index 8c73ecb..979e6ee 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -1028,6 +1028,7 @@ void convertCppComments(BufStr *inBuf,BufStr *outBuf,const char *fileName)
"Nesting level %d %s",g_nestingCount+1,tmp.data()); // add one for "normal" expected end of comment
}
g_commentStack.clear();
+ g_nestingCount = 0;
if (Debug::isFlagSet(Debug::CommentCnv))
{
g_outBuf->at(g_outBuf->curPos())='\0';