summaryrefslogtreecommitdiffstats
path: root/src/doc.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-08-26 17:33:07 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-08-26 17:33:07 (GMT)
commit55d2ef8412008e1560b0d5a2ecc2031f269af4a1 (patch)
tree6d5ee0db5c717ebabc57f2d2a15a1365d5e3fa19 /src/doc.l
parent17e35fd285d98df3c7fe59ee8805152726c3572e (diff)
downloadDoxygen-55d2ef8412008e1560b0d5a2ecc2031f269af4a1.zip
Doxygen-55d2ef8412008e1560b0d5a2ecc2031f269af4a1.tar.gz
Doxygen-55d2ef8412008e1560b0d5a2ecc2031f269af4a1.tar.bz2
Release-1.2.17-20020826
Diffstat (limited to 'src/doc.l')
-rw-r--r--src/doc.l106
1 files changed, 58 insertions, 48 deletions
diff --git a/src/doc.l b/src/doc.l
index 23b96ec..009cfb2 100644
--- a/src/doc.l
+++ b/src/doc.l
@@ -982,7 +982,7 @@ static void checkArgName(const QCString &name,bool isParam)
* @retval TRUE if name was found.
* @retval FALSE if name was not found.
*/
-bool findDocsForMemberOrCompound(const char *commandName,
+static bool findDocsForMemberOrCompound(const char *commandName,
QCString *pDoc,
Definition **pDef)
{
@@ -1919,11 +1919,16 @@ LINKMASK [a-z_A-Z0-9:#.,~&*/\[\]<>()\-\+]+({B}*("const"|"volatile"))?
QCString secName=&yytext[8];
secName=secName.left(secName.length()-1);
SectionInfo *sec;
+ //printf("secName=%s\n",secName.data());
if ((sec=Doxygen::sectionDict[secName]))
{
//printf("writeAnchor %s_%s\n",sec->fileName.data(),sec->label.data());
outDoc->writeAnchor(sec->fileName,sec->label);
}
+ else
+ {
+ //printf("Section %s not found!\n",secName.data());
+ }
}
<DocScan>"\\_internalref"{B}+ { // for internal use only!
internalRefFile.resize(0);
@@ -2128,6 +2133,7 @@ LINKMASK [a-z_A-Z0-9:#.,~&*/\[\]<>()\-\+]+({B}*("const"|"volatile"))?
}
<DocRtfImageOpt>\n {
writeImage(IT_RTF,0);
+ BEGIN(DocScan);
}
<DocRtfImageOpt>\"[^\n"]*\" {
curImageCaption=stripQuotes(yytext);
@@ -2947,64 +2953,68 @@ void parseDoc(OutputDocInterface &od,const char *fileName,int startLine,
const char *clName,MemberDef *md,const QCString &docStr)
{
+ //printf("parseDoc doc=`%s'\n",docStr.data());
+
if (Debug::isFlagSet(Debug::Validate))
{
od.parseDoc(fileName,startLine,clName,md,docStr);
}
-
- strcpy(yyFileName,fileName);
- yyLineNr = startLine;
-
- QCString docString=docStr;
- resolveCopyDocCommands(clName,docString);
-
- yyLineNr = startLine;
- //printf("parseDoc(file=`%s',line=%d)\n",fileName,startLine);
- initParser();
- initParseCodeContext();
- exampleDoc=FALSE; // do not cross reference with member docs
- className=clName;
- memberDef = md;
- hasParamCommand = FALSE;
- paramsFound.setAutoDelete(FALSE);
- paramsFound.clear();
- parseDocument(od,docString);
-
- if (md && hasParamCommand && Config_getBool("WARN_IF_UNDOCUMENTED"))
+ else
{
- ArgumentList *al=memberDef->isDocsForDefinition() ?
- memberDef->argumentList() :
- memberDef->declArgumentList();
- if (al)
+ strcpy(yyFileName,fileName);
+ yyLineNr = startLine;
+
+ QCString docString=docStr;
+ resolveCopyDocCommands(clName,docString);
+
+ yyLineNr = startLine;
+ //printf("parseDoc(file=`%s',line=%d)\n",fileName,startLine);
+ initParser();
+ initParseCodeContext();
+ exampleDoc=FALSE; // do not cross reference with member docs
+ className=clName;
+ memberDef = md;
+ hasParamCommand = FALSE;
+ paramsFound.setAutoDelete(FALSE);
+ paramsFound.clear();
+ parseDocument(od,docString);
+
+ if (md && hasParamCommand && Config_getBool("WARN_IF_UNDOCUMENTED"))
{
- ArgumentListIterator ali(*al);
- Argument *a;
- bool found=FALSE;
- for (ali.toFirst();(a=ali.current());++ali)
- {
- QCString argName = memberDef->isDefine() ? a->type : a->name;
- if (argName.right(3)=="...") argName=argName.left(argName.length()-3);
- if (!argName.isEmpty() && paramsFound.find(argName)==0)
- {
- found = TRUE;
- break;
- }
- }
- if (found)
+ ArgumentList *al=memberDef->isDocsForDefinition() ?
+ memberDef->argumentList() :
+ memberDef->declArgumentList();
+ if (al)
{
- QCString scope=memberDef->getScopeString();
- if (!scope.isEmpty()) scope+="::"; else scope="";
- warn(memberDef->docFile(),memberDef->docLine(),
- "Warning: The following parameters of "
- "%s%s%s are not documented:",
- scope.data(),memberDef->name().data(),
- argListToString(al).data());
+ ArgumentListIterator ali(*al);
+ Argument *a;
+ bool found=FALSE;
for (ali.toFirst();(a=ali.current());++ali)
{
- QCString argName = memberDef->isDefine() ? a->type : a->name;
+ QCString argName = memberDef->isDefine() ? a->type : a->name;
+ if (argName.right(3)=="...") argName=argName.left(argName.length()-3);
if (!argName.isEmpty() && paramsFound.find(argName)==0)
{
- warn_cont( " parameter %s\n",argName.data());
+ found = TRUE;
+ break;
+ }
+ }
+ if (found)
+ {
+ QCString scope=memberDef->getScopeString();
+ if (!scope.isEmpty()) scope+="::"; else scope="";
+ warn(memberDef->docFile(),memberDef->docLine(),
+ "Warning: The following parameters of "
+ "%s%s%s are not documented:",
+ scope.data(),memberDef->name().data(),
+ argListToString(al).data());
+ for (ali.toFirst();(a=ali.current());++ali)
+ {
+ QCString argName = memberDef->isDefine() ? a->type : a->name;
+ if (!argName.isEmpty() && paramsFound.find(argName)==0)
+ {
+ warn_cont( " parameter %s\n",argName.data());
+ }
}
}
}