diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-12-22 11:30:59 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-12-22 11:30:59 (GMT) |
commit | 78fd02dc41384d81baddf17ff0bb3431267452fc (patch) | |
tree | 767e8bfc6cf52cdac5f4a03a1bce2116fdc680f5 /src/docparser.cpp | |
parent | 045cc72569de540fd5292f889a918a96cc2c45a6 (diff) | |
download | Doxygen-78fd02dc41384d81baddf17ff0bb3431267452fc.zip Doxygen-78fd02dc41384d81baddf17ff0bb3431267452fc.tar.gz Doxygen-78fd02dc41384d81baddf17ff0bb3431267452fc.tar.bz2 |
Bug 741778 - \cite confused by labels ending with a dot (improved warning message)
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r-- | src/docparser.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index f73ef7e..cd7a118 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -2576,6 +2576,7 @@ DocCite::DocCite(DocNode *parent,const QCString &target,const QCString &) //cont ASSERT(!target.isEmpty()); m_relPath = g_relPath; CiteInfo *cite = Doxygen::citeDict->find(target); + //printf("cite=%p text='%s' numBibFiles=%d\n",cite,cite?cite->text.data():"<null>",numBibFiles); if (numBibFiles>0 && cite && !cite->text.isEmpty()) // ref to citation { m_text = cite->text; @@ -2587,8 +2588,20 @@ DocCite::DocCite(DocNode *parent,const QCString &target,const QCString &) //cont return; } m_text = target; - warn_doc_error(g_fileName,doctokenizerYYlineno,"unable to resolve reference to `%s' for \\cite command", - qPrint(target)); + if (numBibFiles==0) + { + warn_doc_error(g_fileName,doctokenizerYYlineno,"\\cite command found but no bib files specified via CITE_BIB_FILES!"); + } + else if (cite==0) + { + warn_doc_error(g_fileName,doctokenizerYYlineno,"unable to resolve reference to `%s' for \\cite command", + qPrint(target)); + } + else + { + warn_doc_error(g_fileName,doctokenizerYYlineno,"\\cite command to '%s' does not have an associated number", + qPrint(target)); + } } //--------------------------------------------------------------------------- |