Permalink
Browse files

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.
  • Loading branch information...
albert-github committed Mar 19, 2015
1 parent 1c8bbb6 commit 17fdd71a0f7a02e8b72eaf86d67bc142210a7059
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/doxygen.cpp
View
@@ -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();

0 comments on commit 17fdd71

Please sign in to comment.