diff options
-rw-r--r-- | src/docparser.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index f1ac262..ff253e5 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -2048,6 +2048,29 @@ void DocInclude::parse() void DocIncOperator::parse() { + if (g_includeFileName.isEmpty()) + { + QCString cmd; + switch(type()) + { + case Line: + cmd = "\\line"; + break; + case SkipLine: + cmd = "\\skipLine"; + break; + case Skip: + cmd = "\\skip"; + break; + case Until: + cmd = "\\until"; + break; + } + warn_doc_error(g_fileName,doctokenizerYYlineno, + "No previous '\\include' or \\dontinclude' command for '%s' present", + cmd.data()); + } + m_includeFileName = g_includeFileName; const char *p = g_includeFileText; uint l = g_includeFileLength; |