Commit 7f30d0af authored by Dimitri van Heesch's avatar Dimitri van Heesch
Browse files

Add warning when encountering a nested comment start (/*) without matching end (*/).

parent 1bdbbc60
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -977,6 +977,11 @@ void convertCppComments(BufStr *inBuf,BufStr *outBuf,const char *fileName)
    warn(g_fileName,ctx->lineNr,"Conditional section%sdoes not have "
    warn(g_fileName,ctx->lineNr,"Conditional section%sdoes not have "
	"a corresponding \\endcond command within this file.",sectionInfo.data());
	"a corresponding \\endcond command within this file.",sectionInfo.data());
  }
  }
  if (g_nestingCount>0 || YY_START==CComment)
  {
    warn(g_fileName,g_lineNr,"Reached end of file while still inside a (nested) comment. "
        "Nesting level %d",g_nestingCount+1); // add one for "normal" expected end of comment
  }
  if (Debug::isFlagSet(Debug::CommentCnv))
  if (Debug::isFlagSet(Debug::CommentCnv))
  {
  {
    g_outBuf->at(g_outBuf->curPos())='\0';
    g_outBuf->at(g_outBuf->curPos())='\0';