Permalink
Browse files

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.
  • Loading branch information...
albert-github committed Mar 22, 2015
1 parent f093485 commit e4c0036962d8fa0ea9c1e38dbdb5e91168201f22
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/commentcnv.l
View
@@ -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';

0 comments on commit e4c0036

Please sign in to comment.