Skip to content

Commit

Permalink
Bug 746614 - Bogus warning regarding nested comments
Browse files Browse the repository at this point in the history
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 e4c0036
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commentcnv.l
Expand Up @@ -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';
Expand Down

0 comments on commit e4c0036

Please sign in to comment.