summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2015-03-19 18:56:14 (GMT)
committeralbert-github <albert.tests@gmail.com>2015-03-19 18:56:14 (GMT)
commit17fdd71a0f7a02e8b72eaf86d67bc142210a7059 (patch)
tree499e506bfb7efa20a769956e906fe215ee5046a1 /src
parent1c8bbb64e7e6f72789dd0df5c22c5840f858be75 (diff)
downloadDoxygen-17fdd71a0f7a02e8b72eaf86d67bc142210a7059.zip
Doxygen-17fdd71a0f7a02e8b72eaf86d67bc142210a7059.tar.gz
Doxygen-17fdd71a0f7a02e8b72eaf86d67bc142210a7059.tar.bz2
Warning message multiple mainpages
Based on the report in the doxygen forum (http://doxygen.10944.n7.nabble.com/WARNING-Found-more-than-one-mainpage-comment-block-td7092.html) about the hard to find multiple occurrences of a mainpage definition. This patch also outputs the name (and approximate line) of the first found mainpage.
Diffstat (limited to 'src')
-rw-r--r--src/doxygen.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index fbad9d1..17ec15d 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -8726,9 +8726,8 @@ static void findMainPage(EntryNav *rootNav)
{
Entry *root = rootNav->entry();
warn(root->fileName,root->startLine,
- "found more than one \\mainpage comment block! Skipping this "
- "block."
- );
+ "found more than one \\mainpage comment block! (first occurrence: %s, line %d), Skipping current block!",
+ Doxygen::mainPage->docFile().data(),Doxygen::mainPage->docLine());
}
rootNav->releaseEntry();