summaryrefslogtreecommitdiffstats
path: root/src/doc.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-01-28 18:16:38 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-01-28 18:16:38 (GMT)
commit9d98e802c931c7d358c55c2f69dabdef78b1fb62 (patch)
tree26b976ebd24f845a5cf88ab76f81f928c47c4548 /src/doc.l
parentcbf50dc79a88d3710287b312996da56f97154c56 (diff)
downloadDoxygen-9d98e802c931c7d358c55c2f69dabdef78b1fb62.zip
Doxygen-9d98e802c931c7d358c55c2f69dabdef78b1fb62.tar.gz
Doxygen-9d98e802c931c7d358c55c2f69dabdef78b1fb62.tar.bz2
Release-1.2.4-20010128
Diffstat (limited to 'src/doc.l')
-rw-r--r--src/doc.l18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/doc.l b/src/doc.l
index b66a960..5c449b3 100644
--- a/src/doc.l
+++ b/src/doc.l
@@ -1514,6 +1514,10 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG})
outDoc->endSection(sec->label,
sec->type==SectionInfo::Subsection);
}
+ else
+ {
+ warn(yyFileName,yyLineNr,"Warning: reference to unknown section %s in the documentation of this entity!",yytext);
+ }
}
<DocScan>{CMD}"anchor "{ID}"\n" {
QCString secName=&yytext[8];
@@ -1580,8 +1584,10 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG})
<DocRefName>{SCOPENAME}|{FILE} {
QCString ref=yytext;
SectionInfo *sec;
+ //printf(">>> ref `%s'\n",yytext);
if ((sec=Doxygen::sectionDict[ref]))
{
+ //printf("Is a section!\n");
QCString text;
if (sec->title.isEmpty())
text=sec->label;
@@ -1598,7 +1604,7 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG})
else
{
//printf(" ref sec=%p sec->fileName=%s text=%s\n",sec,sec->fileName.data(),text.data());
- outDoc->writeSectionRef(sec->fileName,sec->label,text,sec->ref);
+ outDoc->writeSectionRef(sec->ref,sec->fileName,sec->label,text);
}
}
else if (!generateLink(*outDoc,className,yytext,TRUE,0))
@@ -1631,7 +1637,7 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG})
}
else
{
- outDoc->writeSectionRef(sec->fileName,sec->label,text,sec->ref);
+ outDoc->writeSectionRef(sec->ref,sec->fileName,sec->label,text);
}
}
else if (!generateLink(*outDoc,className,sectionRef,TRUE,text))
@@ -1744,18 +1750,12 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG})
generateRef(*outDoc,className,yytext,inSeeBlock);
BEGIN(DocScan);
}
-<DocScan,DocRefName>({SCOPEMASK}"::")?"operator()"("("[a-z_A-Z0-9,\<\> \t\*\&]*")")? {
+<DocScan,DocRefName>({SCOPEMASK}"::")?"operator"{OPMASK} {
QCString oName=yytext;
generateRef(*outDoc,className,
removeRedundantWhiteSpace(oName),inSeeBlock);
BEGIN(DocScan);
}
-<DocScan,DocRefName>({SCOPEMASK}"::")?"operator"[^(\r\n.,]+("("[a-z_A-Z0-9,\<\> \t\*\&]*")")? {
- QCString oName=yytext;
- generateRef(*outDoc,className,
- removeRedundantWhiteSpace(oName),inSeeBlock);
- BEGIN(DocScan);
- }
<DocScan>("http:"|"https:"|"ftp:"|"file:"){URLMASK} { outDoc->writeHtmlLink(yytext,yytext); }
<DocScan>[a-zA-Z_0-9\.\-]+"@"[0-9a-z_A-Z\.\-]+ { outDoc->writeMailLink(yytext); }
<DocScan>{FILEMASK} {