diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-01-08 09:41:28 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-01-08 09:41:28 (GMT) |
commit | 7f30d0afbeb9565bced1439f86ce9f862de5282e (patch) | |
tree | e52c349c5bf23564370a111fb54ca49cb0b78c13 | |
parent | 1bdbbc60982f2f61f4e0423c9fc8c4a24cfb2e94 (diff) | |
download | Doxygen-7f30d0afbeb9565bced1439f86ce9f862de5282e.zip Doxygen-7f30d0afbeb9565bced1439f86ce9f862de5282e.tar.gz Doxygen-7f30d0afbeb9565bced1439f86ce9f862de5282e.tar.bz2 |
Add warning when encountering a nested comment start (/*) without matching end (*/).
-rw-r--r-- | src/commentcnv.l | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l index da5a0a8..daec1e2 100644 --- a/src/commentcnv.l +++ b/src/commentcnv.l @@ -977,6 +977,11 @@ void convertCppComments(BufStr *inBuf,BufStr *outBuf,const char *fileName) warn(g_fileName,ctx->lineNr,"Conditional section%sdoes not have " "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)) { g_outBuf->at(g_outBuf->curPos())='\0'; |