summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-02-08 17:58:37 (GMT)
committerGitHub <noreply@github.com>2020-02-08 17:58:37 (GMT)
commit1469b92b3f0925ead7ec2dfb16a25709880f829e (patch)
tree278628fa19380b31d5a0c3b07f5538c43f9f0699
parent137328681e7dcbd07a5ec0e4b068aea96ec41b4a (diff)
parent4281a6cb105c3b57bb8f866ec55e8ef13060c401 (diff)
downloadDoxygen-1469b92b3f0925ead7ec2dfb16a25709880f829e.zip
Doxygen-1469b92b3f0925ead7ec2dfb16a25709880f829e.tar.gz
Doxygen-1469b92b3f0925ead7ec2dfb16a25709880f829e.tar.bz2
Merge pull request #7577 from albert-github/feature/bug_warn_sect
More indicative warning for wrong nesting of sections
-rw-r--r--src/docparser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 889a014..9348810 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -7133,7 +7133,7 @@ void DocRoot::parse()
{
if (!g_token->sectionId.startsWith("autotoc_md"))
{
- warn_doc_error(g_fileName,doctokenizerYYlineno,"found paragraph command outside of subsubsection context!");
+ warn_doc_error(g_fileName,doctokenizerYYlineno,"found paragraph command (id: '%s') outside of subsubsection context!",qPrint(g_token->sectionId));
}
while (retval==RetVal_Paragraph)
{
@@ -7163,7 +7163,7 @@ void DocRoot::parse()
if (retval==RetVal_Subsubsection)
{
if (!(g_token->sectionId.startsWith("autotoc_md")))
- warn_doc_error(g_fileName,doctokenizerYYlineno,"found subsubsection command outside of subsection context!");
+ warn_doc_error(g_fileName,doctokenizerYYlineno,"found subsubsection command (id: '%s') outside of subsection context!",qPrint(g_token->sectionId));
while (retval==RetVal_Subsubsection)
{
if (!g_token->sectionId.isEmpty())
@@ -7193,7 +7193,7 @@ void DocRoot::parse()
{
if (!g_token->sectionId.startsWith("autotoc_md"))
{
- warn_doc_error(g_fileName,doctokenizerYYlineno,"found subsection command outside of section context!");
+ warn_doc_error(g_fileName,doctokenizerYYlineno,"found subsection command (id: '%s') outside of section context!",qPrint(g_token->sectionId));
}
while (retval==RetVal_Subsection)
{