Skip to content

Commit

Permalink
Warning message multiple mainpages
Browse files Browse the repository at this point in the history
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 17fdd71
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/doxygen.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 17fdd71

Please sign in to comment.