Commit 7d9d4320 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 734727 - GENERATE_TAGFILE no longer includes any @*section links

parent 14f88af1
...@@ -665,11 +665,11 @@ static void addSection() ...@@ -665,11 +665,11 @@ static void addSection()
{ {
if (si->lineNr != -1) if (si->lineNr != -1)
{ {
warn(yyFileName,yyLineNr,"multiple use of section label '%s', (first occurrence: %s, line %d)",g_sectionLabel.data(),si->fileName.data(),si->lineNr); warn(yyFileName,yyLineNr,"multiple use of section label '%s' while adding section, (first occurrence: %s, line %d)",g_sectionLabel.data(),si->fileName.data(),si->lineNr);
} }
else else
{ {
warn(yyFileName,yyLineNr,"multiple use of section label '%s', (first occurrence: %s)",g_sectionLabel.data(),si->fileName.data()); warn(yyFileName,yyLineNr,"multiple use of section label '%s' while adding section, (first occurrence: %s)",g_sectionLabel.data(),si->fileName.data());
} }
} }
else else
...@@ -1745,11 +1745,11 @@ RCSTAG "$"{ID}":"[^\n$]+"$" ...@@ -1745,11 +1745,11 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
{ {
if (si->lineNr != -1) if (si->lineNr != -1)
{ {
warn(yyFileName,yyLineNr,"multiple use of section label '%s', (first occurrence: %s, line %d)",yytext,si->fileName.data(),si->lineNr); warn(yyFileName,yyLineNr,"multiple use of section label '%s' while adding anchor, (first occurrence: %s, line %d)",yytext,si->fileName.data(),si->lineNr);
} }
else else
{ {
warn(yyFileName,yyLineNr,"multiple use of section label '%s', (first occurrence: %s)",yytext,si->fileName.data()); warn(yyFileName,yyLineNr,"multiple use of section label '%s' while adding anchor, (first occurrence: %s)",yytext,si->fileName.data());
} }
} }
else else
......
...@@ -515,7 +515,7 @@ void Definition::writeDocAnchorsToTagFile() ...@@ -515,7 +515,7 @@ void Definition::writeDocAnchorsToTagFile()
{ {
if (!Config_getString("GENERATE_TAGFILE").isEmpty() && m_impl->sectionDict) if (!Config_getString("GENERATE_TAGFILE").isEmpty() && m_impl->sectionDict)
{ {
//printf("%s: writeDocAnchorsToTagFile(%d)\n",name().data(),m_sectionDict->count()); //printf("%s: writeDocAnchorsToTagFile(%d)\n",name().data(),m_impl->sectionDict->count());
SDict<SectionInfo>::Iterator sdi(*m_impl->sectionDict); SDict<SectionInfo>::Iterator sdi(*m_impl->sectionDict);
SectionInfo *si; SectionInfo *si;
for (;(si=sdi.current());++sdi) for (;(si=sdi.current());++sdi)
......
...@@ -8653,11 +8653,11 @@ static void findMainPage(EntryNav *rootNav) ...@@ -8653,11 +8653,11 @@ static void findMainPage(EntryNav *rootNav)
{ {
if (si->lineNr != -1) if (si->lineNr != -1)
{ {
warn(root->fileName,root->startLine,"multiple use of section label '%s', (first occurrence: %s, line %d)",Doxygen::mainPage->name().data(),si->fileName.data(),si->lineNr); warn(root->fileName,root->startLine,"multiple use of section label '%s' for main page, (first occurrence: %s, line %d)",Doxygen::mainPage->name().data(),si->fileName.data(),si->lineNr);
} }
else else
{ {
warn(root->fileName,root->startLine,"multiple use of section label '%s', (first occurrence: %s)",Doxygen::mainPage->name().data(),si->fileName.data()); warn(root->fileName,root->startLine,"multiple use of section label '%s' for main page, (first occurrence: %s)",Doxygen::mainPage->name().data(),si->fileName.data());
} }
} }
else else
......
...@@ -1431,17 +1431,19 @@ void TagFileParser::buildLists(Entry *root) ...@@ -1431,17 +1431,19 @@ void TagFileParser::buildLists(Entry *root)
TagPageInfo *tpi; TagPageInfo *tpi;
for (pgit.toFirst();(tpi=pgit.current());++pgit) for (pgit.toFirst();(tpi=pgit.current());++pgit)
{ {
Entry *pe = new Entry; if (tpi->filename!="index") // skip mainpage, there can be only one (see bug734727)
pe->section = Entry::PAGEDOC_SEC; {
pe->name = tpi->name; Entry *pe = new Entry;
pe->args = tpi->title; pe->section = Entry::PAGEDOC_SEC;
addDocAnchors(pe,tpi->docAnchors); pe->name = tpi->name;
TagInfo *ti = new TagInfo; pe->args = tpi->title;
ti->tagName = m_tagName; addDocAnchors(pe,tpi->docAnchors);
ti->fileName = tpi->filename; TagInfo *ti = new TagInfo;
pe->tagInfo = ti; ti->tagName = m_tagName;
ti->fileName = tpi->filename;
root->addSubEntry(pe); pe->tagInfo = ti;
root->addSubEntry(pe);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment