summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-08-07 13:12:34 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-08-07 13:12:34 (GMT)
commitcf4617ee1dc5b25b3e063863e886ac79a78d475c (patch)
treedab9c10e5a8b087b010aef85d8573e151adc0ac3
parentb51aa6497c579fcfce0fb3b261e7ca9418e48fe7 (diff)
downloadDoxygen-cf4617ee1dc5b25b3e063863e886ac79a78d475c.zip
Doxygen-cf4617ee1dc5b25b3e063863e886ac79a78d475c.tar.gz
Doxygen-cf4617ee1dc5b25b3e063863e886ac79a78d475c.tar.bz2
issue #7147: No warning when same page created
Creating warning when adding documentation to an already existing page.
-rw-r--r--src/util.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 5808815..f5e43a4 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6754,6 +6754,8 @@ PageDef *addRelatedPage(const char *name,const QCString &ptitle,
//printf("addRelatedPage(name=%s gd=%p)\n",name,gd);
if ((pd=Doxygen::pageSDict->find(name)) && !tagInfo)
{
+ warn(fileName,startLine,"multiple use of page label '%s', (other occurrence: %s, line: %d)",
+ name,pd->docFile().data(),pd->docLine());
// append documentation block to the page.
pd->setDocumentation(doc,fileName,startLine);
//printf("Adding page docs '%s' pi=%p name=%s\n",doc.data(),pd,name);