From 17fdd71a0f7a02e8b72eaf86d67bc142210a7059 Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 19 Mar 2015 19:56:14 +0100 Subject: 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. --- src/doxygen.cpp | 5 ++--- 1 file 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(); -- cgit v0.12