diff options
author | albert-github <albert.tests@gmail.com> | 2020-02-08 14:07:32 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-02-08 14:07:32 (GMT) |
commit | 4281a6cb105c3b57bb8f866ec55e8ef13060c401 (patch) | |
tree | 15c911b459623f6ed211195014dbad788ca009a4 | |
parent | 93245ad926ce01720eb35b9cf000992a44ac85c0 (diff) | |
download | Doxygen-4281a6cb105c3b57bb8f866ec55e8ef13060c401.zip Doxygen-4281a6cb105c3b57bb8f866ec55e8ef13060c401.tar.gz Doxygen-4281a6cb105c3b57bb8f866ec55e8ef13060c401.tar.bz2 |
More indicative warning for wrong nesting of sections
In case we have a "*section" outside the hierarchy it is useful also have the id of the misbehaving "*section" even though line numbers are given , they might be misleading.
-rw-r--r-- | src/docparser.cpp | 6 |
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) { |