diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-03-03 15:36:07 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-03-03 15:36:07 (GMT) |
commit | 6cc93683450399fe9ff1d36c5ed6fcf1a294a8bd (patch) | |
tree | 3940511c23ef646f2346c9dc861951f5f0fd96fe | |
parent | abe69bd634fea9554a84d93e31db889ee589661f (diff) | |
parent | 0a4d11d3e17a23a0b20a2873b32fddfa56d8227e (diff) | |
download | Doxygen-6cc93683450399fe9ff1d36c5ed6fcf1a294a8bd.zip Doxygen-6cc93683450399fe9ff1d36c5ed6fcf1a294a8bd.tar.gz Doxygen-6cc93683450399fe9ff1d36c5ed6fcf1a294a8bd.tar.bz2 |
Merge branch 'albert-github-feature/bug_warn_nofile_incl'
-rw-r--r-- | src/docparser.cpp | 7 | ||||
-rw-r--r-- | src/docparser.h | 13 |
2 files changed, 19 insertions, 1 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index f1ac262..8aae275 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -2048,6 +2048,13 @@ void DocInclude::parse() void DocIncOperator::parse() { + if (g_includeFileName.isEmpty()) + { + warn_doc_error(g_fileName,doctokenizerYYlineno, + "No previous '\\include' or \\dontinclude' command for '\\%s' present", + typeAsString()); + } + m_includeFileName = g_includeFileName; const char *p = g_includeFileText; uint l = g_includeFileLength; diff --git a/src/docparser.h b/src/docparser.h index d36ed6c..0b8073c 100644 --- a/src/docparser.h +++ b/src/docparser.h @@ -607,11 +607,22 @@ class DocIncOperator : public DocNode enum Type { Line, SkipLine, Skip, Until }; DocIncOperator(DocNode *parent,Type t,const QCString &pat, const QCString &context,bool isExample,const QCString &exampleFile) : - m_type(t), m_pattern(pat), m_context(context), + m_type(t), m_pattern(pat), m_context(context), m_isFirst(FALSE), m_isLast(FALSE), m_isExample(isExample), m_exampleFile(exampleFile) { m_parent = parent; } Kind kind() const { return Kind_IncOperator; } Type type() const { return m_type; } + const char *typeAsString() const + { + switch(m_type) + { + case Line: return "line"; + case SkipLine: return "skipline"; + case Skip: return "skip"; + case Until: return "until"; + } + return ""; + } QCString text() const { return m_text; } QCString pattern() const { return m_pattern; } QCString context() const { return m_context; } |